question_score
stringclasses
21 values
title
stringlengths
6
119
question_userid
stringlengths
4
10
question_user
stringlengths
3
20
question_user_score
stringclasses
496 values
question_datetime
stringdate
2014-02-01 23:57:31
2023-04-02 01:40:15
question
stringlengths
0
11k
question_id
stringlengths
1
6
answer_count
stringclasses
8 values
answer_id
stringlengths
0
6
answer_score
stringclasses
18 values
answer_userid
stringclasses
946 values
answer_user
stringclasses
963 values
answer_user_score
stringclasses
692 values
answer_datetime
stringlengths
0
19
answer
stringlengths
0
10.7k
0
Gathering Strings from a TextBox
4338714
OniiCh_n
410
2014-02-27 02:45:04
<p>How do I get the string that is entered into a TextBox?</p>
325
2
593
2
21682877
GoldenPhysics
474
2014-02-27 02:50:22
<p>The Text property of the TextBox. When someone types in some text, it updates the Text property.</p>
0
How do I get this Remote Event I made to work?
37745860
BunjiBloxxer
46
2022-11-06 13:30:30
<p>I'm confused how Remote Events work. I made a remote event in replicated storage named "GearGet" and I have a local script in starter player scripts. The local scripts job is, when a part (pointPart) is touched, it should turn pointPart green, make a model transparent, and give a point to the player who touches poin...
132171
1
119430
1
148527490
manith513
101
2022-11-10 17:00:12
<p>You are on the right track! you have a few mistakes however. First, I recommend adding the color changes in your server script, however if you are doing something different and need it in the local script, that is fine. In your server script, the remote is being fired, except the function above it isn't because the ...
0
How do I make a GUI close after a set time?
18929555
TurboFusion
1821
2014-04-30 22:47:28
<p>Ok so I've made a help script that automatically closes 10 seconds after you open it, and it works fine. But the problem I've been having is that if I closed it manually and then opened it manually while the script was waiting 10 seconds to close the gui, the time doesn't reset, so it closes when it would've closed ...
4018
0
Value is not updating?
64788197
MysticalMod
0
2015-03-15 12:29:05
<p>So basically what I wanted to happen was when this "Zombie"'s health is to 0, the zombie will update a set score of how many zombies have been killed, but it wont update :/ ?</p> <pre class="brush: lua">wait(5) if script.Parent.Zombie.Health ~= 0 then game.Workspace.ZombieKill.Value = game.Workspace.ZombeKill.Value ...
15787
2
What's wrong with this script?
27572935
Slazerick
55
2014-03-22 00:10:29
<p>Hi, Today I just made this script but whenever I try to test it playing the game it won't work, am I doing something wrong?</p> <pre class='brush: lua'>--[Variables]-- GroupId = 1009344 RankId = 255 Maps = game.ServerStorage.Maps --[Debounces]-- Intermission = false SimulationStarted = false Locked = false --[functi...
847
1
How do I detect when a player stops sitting?
2966752
Validark
1580
2014-08-19 03:03:26
<p>So I have this script:</p> <pre class="brush: lua">seat = script.Parent function c(Player) Player.Character.Humanoid.Sit = true Player.Character.Torso.CFrame = CFrame.new(seat.Position + Vector3.new(0,seat.Size.X / 2.4,0)) Player.Character.Torso.CFrame = Player.Character.Torso.CFrame * CFrame.Angles(0,3.1416 / 2,0) ...
9965
2
12744
2
36267651
BlackJPI
2658
2014-08-19 20:51:23
<p>When the player clicks on the block, the Sit property of it's Humanoid changes to true. As soon as the player jumps to exit the seat, the Sit property changes back to false. So if you simply add in the line <code>repeat wait() until not Player.Character.Humanoid.Sit</code> we can determine when the player is no long...
0
Datastore attempts to index number with number and fails?
1998193337
MrBucketOfficial
39
2022-11-13 00:06:46
<p>So when the datastore script tries to get the Cubes value from the Datastore, it gives me an error saying "ServerScriptService.Datastore:9: Attempted to index number with number" which I have no idea on how to fix.</p> <p>Datastore script:</p> <pre class="brush: lua">local datastore = game:GetService("DataStoreServi...
132259
2
How do I round numbers in Lua? [Answered]
18039437
FieryEvent
185
2014-05-14 16:16:41
<p>I'm using percentage on one of my tasks... But there's something very annoying...</p> <p>I get long decimals numbers...</p> <p>29.86577181281</p> <p>I would like to truncate...</p> <p>Could someone help me?</p>
4850
3
6562
3
386992
BlueTaslem
18071
2014-05-14 19:29:52
<p>Kenetec's answer <em>is different from the standard definition of "rounding."</em></p> <p>Generally, <code>round(0.5)</code> is considered to be <code>1</code>, not <code>0</code>, <em>but Kenetec's will return 0 because it uses <code>&gt; 0.5</code> instead of <code>&gt;= 0.5</code></em></p> <p>Nevertheless, the te...
0
how do i make a sound play in a player's torso when they touch a part?
140399066
Uniplier
13
2022-05-02 00:24:40
<p>I am trying to make a hitbox for a sword I'm making, the hitbox is working fine, but I would like a hit sound to play in the player's torso when they touch the hitbox, how can I do this?</p> <pre class='brush: lua'>local debounce = false script.Parent.Touched:connect(function(hit) if debounce == false then ...
129886
0
How to use a server script to give cash to the player with most kills?
473052976
nkminion
21
2020-02-01 08:28:08
<p>Hi, I am making a game where the person with the number of kills gets awarded with cash. The catch is : I do not know how to do that.</p> <p>I used table.sort() and it did not work</p> <pre class='brush: lua'>if i == 0 then local player = game.Players:GetPlayers() local kills= player.leaderstats.Kills.Value ...
93921
1
86757
0
151564166
karlo_tr10
1228
2020-02-01 11:52:15
<p>This is not a request site but I was bored so I made a simple script that would do that.</p> <pre class='brush: lua'>local Best = function() local best local bestkills local Players = game:GetService("Players"):GetPlayers() for i,Player in pairs(Players) do local Kills = Player.leaderstats.Ki...
1
How to send data from one server script to another without remote events?
76734233
generalYURASKO
99
2020-12-12 00:01:55
<p>I'm creating is gun, and each bullet has its own individual script for hit detection and bullet physics and stuff like that. However, the problem is I'm trying to pass the data from the gun the player is holding to the bullet, that way I can tell the bullet to ignore the player when it comes to hitting detection. Th...
117077
1
107344
0
1126954614
Lord_WitherAlt
186
2020-12-12 08:15:49
<p>You could use ObjectValues for this, example: Main Tool Script:</p> <pre class='brush: lua'>local BulletScript = bullet:FindFirstChild("Script") local ObjValue = BulletScript:FindFirstChild("Player") ObjValue.Value = Player </pre> <p>Bullet Script:</p> <pre class='brush: lua'>local PlrValue = script:FindFirstChild("...
0
User keeps dying from Its own attack why?
1961959172
imnotaguest1121
287
2022-08-08 03:36:29
<p>I made a custom character that Is a furnace, and one of Its attacks Is to grab on Into a victim and burn them, dealing 750 damage, the problem Is that It dies from Its own attack which Is pretty annoying and weird</p> <p>Script:</p> <pre class='brush: lua'>local Troll = script.Parent local Grab = Troll.GrabAnim loca...
131143
0
How to make temporary variable not reset?
323565609
18890miki
4
2023-03-26 14:52:00
<p>Here is better explanation</p> <p>I am making equip uniform (shirt + pants) system, where when you click on a button, you get uniform and when you die/reset (<strong>not fricking leave, so databases are not neccessary</strong>), uniform you wore stays, until you leave/change them (if change, temporary value changes)...
133240
0
How do i put functions in if statements?
484273808
fluff_162
7
2022-05-17 17:05:08
<p>For Example:</p> <pre class="brush: lua">local cam = game.workspace.CurrentCamera local FocusPart = game.Workspace.FocusPart local function funct() wait(5) cam.CameraType = "Fixed" cam.Focus = FocusPart.CFrame print("Poo") end funct() </pre> <p>how would i put funct() into an if statements so i can do someth...
130029
0
Why is the Player Not Teleporting But The code runs?
86742235
cpcrafter365
0
2020-08-01 13:40:10
<pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(plr) plr.CharacterAdded:Connect(function(character) local char = plr.character or character print(char.Name) if MiniGameIsPlaying.Value == false then if game.Workspace:FindFirstChild("MainSpawn")then ...
110466
0
GetPlayerFromCharacter is not a valid member of Model?
149094523
Crimsonknightzone
38
2021-02-22 15:57:47
<p>I have recently discovered a bug in one of my infection games that cause all players to have the infection animation play when one of the players touches a hazard. I am currently reworking the code, this time attempting it with the <code>GetPlayerFromCharacter()</code> function. However, now that I implemented this,...
120517
1
Finding midpoint between two Vector3 values?
80027973
KoreanBBQ
301
2015-06-29 14:44:48
<p>Context: I'm making a pathfinding script and I want it to create a path. To get the size of the path brick I'm doing (Size1-Size2).magnitude But I dont know for the position, because if the values are (1,1,7) and (5,1,5) than it's going to end up negative although the mid point is positive.</p> <p>Help?</p>
19076
3
22686
1
3864673
funyun
958
2015-06-29 16:33:18
<p>There's another way you could do this, and it's called "linear interpolation", or lerping.</p> <pre class='brush: lua'>pointA = Vector3.new(234, 3456, 1) pointB = Vector3.new(34, 867, 1123) midpoint = pointA:Lerp(pointB, .5) print(midpoint) </pre>
0
AutoButtonColor property is not working does anyone know why?
1017846707
Overseer_Prince
174
2022-11-14 04:23:43
<p>So a lot of you if you have been working with GUI's know about the AutoButtonColor property of a ImageButton</p> <p>The purpose of this is to change color when a players mouse drags over it</p> <p>however for some reason I have set it to true yet it is not working</p> <p>can anyone help me or is this a bug?</p>
132277
1
119457
1
1014156252
Puppynniko
983
2022-11-14 04:26:17
<p>did you even read the docs "Please note that this property will not have an effect on an ImageButton if it's ImageButton.Image property is set to an image and is not null. Additionally, the property will not affect an ImageButton element on mouse hover when its ImageButton.HoverImage is not null nor on mouse click i...
0
How Do I Teleport A Player To Another Game After Death?
161950547
Minecrafter09031031
16
2019-06-21 03:46:00
<p>Is Like from camping, If a player dies, he will teleport to another game and that game is a lobby, please help me know the script, I'm not good at scripting, so I need help, please, Advanced Thanks!</p>
82181
1
76438
0
1864878
Arkrei
389
2019-06-21 13:55:50
<p>You can use the <a target="_blank" href="https://developer.roblox.com/api-reference/event/Humanoid/Died">Humanoid.Died</a> event and the <a target="_blank" href="https://developer.roblox.com/api-reference/class/TeleportService">TeleportService</a></p> <pre class='brush: lua'>local player = game.Players.LocalPlayer l...
23
How would I use GetSortedAsync To make a leaderboard?
16826035
YellowoTide
1992
2015-04-06 16:27:28
<pre class='brush: lua'>Instance GetSortedAsync ( bool ascending, int pagesize, Variant minValue, Variant maxValue ) </pre> <p>This is all the wiki says about Instance GetSortedAsync. How would I use it? How can I turn the Page it returns into a table? Anyone answers for any of these would help a lot! T...
16401
2
Trying to change all the parts color but isn't responded to the &quot;v.Material == &quot;Grass&quot; line?
28384148
Adryin
120
2015-02-07 16:23:08
<p>Heres the script, it's responding to print the part's name but couldn't find the part's material.</p> <pre class='brush: lua'>for i,v in pairs(game.Workspace:GetChildren()) do if v.Name == "P1" and v:IsA("WedgePart") then print(v.Name) if v.Material == "Grass" then -- Not working here ...
14793
1
17863
2
120210266
0xDEADC0DE
310
2015-02-07 16:49:25
<p>use this:</p> <p>if v.Material == Enum.Material.Grass then</p>
2
Key opens when chatting. Could anyone help me out?
117096778
toompske
12
2020-05-25 13:23:25
<p>Hi, I recently hired a scripter to make me a Gui that opens when I press "B". Now everything works fine but there's just one thing, When I type B for example: "Big" in chat it opens the Gui. I asked him if he could fix the issue but he hasn't replied in 4 weeks. Could anyone please help me out with this?</p> <pre cl...
104298
1
96268
3
245864252
xInfinityBear
1777
2020-05-25 13:38:54
<p>If you don't want it to fire the RemoteEvent when you press B while typing in chat, then you could add this:</p> <pre class='brush: lua'>local InputService = game:GetService("UserInputService") InputService.InputBegan:Connect(function(Input, IsTyping) if IsTyping then return end if Input.UserInputType == Enu...
0
Chat script not working correctly? (Chat filter broken)
1261252204
Office_Bucket
29
2022-07-13 03:35:06
<p>In my game I have a script where it disables the chat while you're in the main menu. When you exit the menu by clicking a button, the chat enables. It works, but when the chat is enabled the chat filter is removed. I'm not sure how to fix this, could somebody help me with this? Script that disables the chat is shown...
130767
1
118070
1
2064359146
GamerLighting23233
63
2022-07-13 09:10:56
<p>Normally in Roblox Studio test the chat filter doesn't work because you are in singleplayer mode. That is not a bug or something.</p>
0
how do i resize the r15 character with this script?
140547318
Aeike
9
2017-06-01 02:51:42
<pre class='brush: lua'><br />-- changes height when u respawn game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(funtion(c) local bHeight = hum:WaitForChild('BodyHeightScale') local bDepth = hum:WaitForChild('BodyDepthScale') local bWidth = hum:WaitForChild('BodyWidthScal...
43454
1
44823
2
9646556
Simnico99
206
2017-06-01 03:00:51
<p>U forgot to set the Variable hum and put it in ServerScriptService</p> <pre class='brush: lua'>game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(c) local hum = p.Character:WaitForChild("Humanoid") -- U forgot that variable local bHeight = hum:WaitForChild('BodyHeightScale...
1
How to make this script invisiblize you when you sit in a seat??
845235190
blue_bunny0fficl
43
2022-09-20 15:38:00
<p>Hi I want this script to invisible people when you sit in a seat. And when you not touch it uninvisibles you. Script:</p> <pre class='brush: lua'>script.Parent.Touched:Connect(function(plr) if plr.Parent:FindFirstChild("Humanoid") then for i, v in pairs(plr.Parent:GetChildren()) do if v:IsA("...
131679
1
118935
1
110029109
loowa_yawn
281
2022-09-21 19:08:35
<p>You can use a seat's <code>Occupant</code> property and the <code>GetPropertyChangedSignal</code> signal to detect when a player starts to sit in a seat:</p> <pre class='brush: lua'>local seat = script.Parent local PreviousHumanoid = nil local function Sat() local Humanoid = seat.Occupant if (Humanoid ~= nil...
0
Why does my snow deformation appear delayed and break when the instance goes nil?
575273760
DayLighter_09
20
2022-07-29 22:54:04
<p>I made snow deformation and accomplished it, but I have 2 problems arising from it.</p> <ol> <li><p>When the player jumps or walks too fast, the result turns nil and breaks the whole script. Error Data: Workspace.Player1.Deform:29: attempt to index nil with 'Instance'</p></li> <li><p>The deformation appears to be de...
131001
0
My ability for a sword is killing both the player and the opponent, can someone help?
264630904
DriBowser
55
2022-11-12 17:04:04
<p>Basically, I made an ability on the sword where you stab them with the sword, they stick to the sword(using weld) and then you slam them multiple times on the ground. The ability works properly, but for some reason when you actually kill the opponent using the ability, it kills you as well which isnt supposed to hap...
132251
0
how can i move my files in order in explorer?
377591837
OctavianH0310
0
2021-02-22 20:14:48
<p>i am trying to do an obby and i did some stages. how can i order them from explorer to be from the best to the worst?</p>
120527
0
Having trouble with turn based combat system?
725284688
Silvanatri
24
2022-11-13 21:44:52
<p>Im making a card/magic game that is turned based where you can have up to 4 people and 4 enemies fighting against each other. So far im separating the battles to invisible platforms throughout the map when you initiate battles to npcs in the game. My biggest problem is when its the players turn to choose a card and ...
132272
0
best way to spawn alot of new threads?
128325709
0hsa
119
2021-04-06 03:30:02
<p>cant find a way to spawn threads without a downside. coroutines are nice, but sometimes when using them too much they just dont run in my experience. spawn() doesn't do this but it has delays (along with delay(), ironically) i've heard about using bindable events (<a target="_blank" href="https://github.com/Quenty/N...
122057
0
event Changed(Property property) - How To
3409793
goldenggamper
10
2014-03-10 19:51:28
<p>Hi guys; I have a script that I want to be fired when a numbervalue changes from 0 to 1 however I cannot find any good tuts on how to use the Changed event. The value is kept in an another group called values from the script.</p> <p>Script > Values > Value 1 (This has the number value)</p> <p>Thanks for your time gu...
610
3
971
1
64408300
RaverKiller
668
2014-03-10 21:21:37
<p>To use the change event, you should use it on a part/value, I will use an IntValue as an example:</p> <pre class="brush: lua">game.Workspace.IntValue.Changed:connect(function() -- do stuff end) </pre> <p>The above function will run every time a property of the object has been modified. Hope I helped.</p>
0
What is a script for that makes you touch something and it dissapears?
56566414
JustARegularGuy804
25
2014-06-04 22:51:40
<p>And once the player who touches it leaves, it regens? Example: You eat something. I touch it, and it goes away. When I leave about 5-10 inches (or feet, if I'm wrong), it comes back. Anyone know?</p>
6175
2
8197
0
29814376
systematicaddict
295
2014-06-04 23:33:42
<p>You can figure out the 5-10 inches thing yourself, but roblox isn't measured in inches, it's studs. Also, here's how to make it regen:</p> <p>Put a copy of it in lighting, and make this script inside it, and the copy:</p> <pre class='brush: lua'>local timebr =10 -- time before it regens script.Parent.Touched:connect...
0
How to i pass instances through a remote event?
9671422
CALEB2020
30
2015-09-24 15:45:23
<p>I am making a drag tool for filtering enabled, but i can't pass rays or instances (the part that i want to move) through a remote event. I managed to decompile the rays in to the six numbers, but i still cant grab the part.</p> <p>before i separated the client and server, the grabber worked fine on solo mode, so the...
22950
1
26547
1
64408300
RaverKiller
668
2015-09-24 19:44:37
<pre class='brush: lua'>script.StartDrag.OnServerEvent:connect(function(Player, Args) if true then local mousePart = Args['mousePart']; local hitPoint = Args['hitPoint']; local collection = Args['collection']; print(mousePart, hitPoint); loca...
0
Autosave script (stat saving script)?
1346725747
shadow93126
10
2021-02-10 20:29:07
<p>I am making a stat saving script but it just says ServerScriptService.Script:38: Expected ')' (to close '(' at line 34), got 'end' when i test the game... I turned on HTTP and API... Heres the script:</p> <p>**game.Players.PlayerAdded:connect(function(player)</p> <pre class="brush: lua">local StartingMoney = (0) ---...
119940
2
109487
0
125718500
TaxesArentAwesome
514
2021-02-10 22:21:16
<p>Howdy!</p> <p>You're missing a parenthesis at the very bottom of your script. Replace your <code>PlayerRemoving</code> function with what I got below.</p> <pre class='brush: lua'>game.Players.PlayerRemoving:Connect(function(plr) dataStore:SetAsync(plr.UserId, plr.leaderstats.Sticks.Value) end) </pre> <p>You're a...
0
the transparency in a transformation in my game is broken?
124020867
CaptainGreenSeals
23
2021-07-03 17:35:31
<p>you can transform to 2 different stages, 1st stage and 2nd stage with a simple script but when i transform into the 1st stage the character from 2nd stage also shows up, while it should only appear in the second transformation.</p> <p>the second transformation works normally</p> <pre class='brush: lua'>local awakeni...
125020
0
How do I make a sound continuously play when pressing keys?
103919802
TheBuliderMC
80
2021-04-07 03:54:58
<p>can someone help me how I can have a sound continuously playing when pressing keys</p> <pre class='brush: lua'>function inputStart(obj, gameProcessed, plr) if gameProcessed then return end local equiped = player.Character:FindFirstChild(script.Parent.Name) if obj.KeyCode == Enum.KeyCode.W then if...
122097
0
Why doesn't it work ? Mute/Unmute song gui
61265064
Bulvyte
388
2015-08-27 17:34:46
<pre class='brush: lua'>local player = game.Players.LocalPlayer local sound = player.Aviici function Click() player.sound.Volume = 0 end function Click() player.sound.Volume = 0.25 end script.Parent.MouseButton1Down:connect(Click) script.Parent.MouseButton1Down:connect(Click) </pre> <p>so, i want the player mak...
21973
2
25578
0
16642148
DragonOfWar900
397
2015-08-27 17:41:47
<p>At line 1-2:</p> <pre class='brush: lua'>local player = game.Players.LocalPlayer.Aviici local sound = player.Aviici </pre> <p>You already set <code>player</code> as the sound. So at line 2, the script will see if there's a other sound inside the sound on player.</p> <p>In line 6 and 11, it's when the script will ge...
0
how do i make my gui use the entire screen in roblox studio and gui hotkey?
1018234839
GhxstIyDQ
0
2019-05-12 12:56:38
<p>im making a gui in roblox studio but when i try to use it ingame it takes up 2/4 of the screen how do i make it take up the entire screen and also how do i make a gui open when i click a key so basically gui hotkey?</p>
80168
1
How can I make it so if you equip a tool and click a part you receive a +1 leaderstat?
301033608
creif2000
5
2022-06-18 21:46:22
<p>I am making a game which requires you to hit rocks with you tool in order to obtain rocks to sell. I need to know how I could make it where:</p> <p>1: You need to pull out your tool in order to hit the rock, if you do not have your tool out it will not work.</p> <p>2: When you click the rock with tool in hand, it wi...
130396
0
Sold items value doesn't add to leaderstat?
356006064
TheRandom_Guesty
7
2023-03-01 19:02:01
<p>I want to sell an Item by <strong>proximity promt</strong>, but I am having trouble every time I try to sell, it doesn't <strong>value</strong> to the <strong>leaderstat</strong>.</p> <p><strong>Script:</strong></p> <pre class='brush: lua'>local interact = script.Parent interact.Triggered:Connect(function(player) ...
133134
0
How can I flip a part over with CFrame.Angles?
102782207
JadensLua
12
2020-08-05 16:19:07
<p>I am trying to spawn in a cloned part from replicated storage, but it is spawning upside down.H How can I flip it?</p> <pre class='brush: lua'> local RP = game:GetService("ReplicatedStorage") local character = player.Character or player.CharacterAdded:wait() local fire = RP.effects.shockyshockwave:Clo...
110759
1
101728
0
52208338
Spiritlotus
151
2020-08-05 16:34:14
<p>you need to put numbers inside of CFrame.Angles() im not sure the exact rotation, but test it out. It requires 3 radians that represent the X,Y,Z rotation, but u can enter degrees by surrounding it with math.rad()</p> <p>maybe CFrame.Angles(0, math.rad(90), 0)</p>
0
Module scripted parented to a local script runs before player loads, have to reset for it to work?
32477251
iSidersz
70
2022-01-12 05:44:10
<p>As the title says, I have a module script which has a parent, local script but it runs before the player loads rendering it useless until you reset, then it works fine. How can I fix this?</p>
128866
1
116685
2
71530978
enes223
312
2022-01-12 08:04:37
<p>You can wait for local player's character to load with the <code>CharacterAdded</code> event on the player, you just need to wait for the event to fire, example script:</p> <pre class='brush: lua'>local plr = game.Players.LocalPlayer plr.CharacterAdded:Wait() print("Character loaded!") </pre>
0
Arrow guidance to destination? Help
148527490
manith513
121
2020-01-05 21:07:45
<p>I am trying to make an arrow spawn over the player's head when the join pointing where they need to go but i havn't really been able to figure out how to ad an arrow above them when they spawn. P.S. I also want there to be 1 arrow for every unclaimed area so the user knows how many options they have.</p>
92612
1
85811
0
1544635624
haba_nero
386
2020-01-08 20:52:19
<p>Try using beams and attatching them to the destination.You can attach a beam from one part to another. Its like a guidewire, not an arrow. Alvinblox has made a tutorial on beams, so you will have to read that. This will require some scripting creativity, but you can do it! I have started the engine, you do the drivi...
1
Input keycode triggers when I chat, I just want it when they hit the key. Can anyone help?
46714579
NortonHDD
21
2021-04-06 15:17:39
<p>Below is my code, I don't want this to trigger when the player is chatting but I do want it to when they hit the key though.</p> <pre class='brush: lua'>function onKeyPressed(inputObject, gameProcessEvent) if inputObject.KeyCode == Enum.KeyCode.E then print("E") </pre>
122076
2
111208
0
365574496
esepek
103
2021-04-06 15:49:59
<p>Hey there, there is a preatty easy solution for that! You can use the context action service in roblox, so it wont trigger when you write in chat.</p> <p>Here is the link to ContextActionService: https://developer.roblox.com/en-us/api-reference/class/ContextActionService.</p> <p>I hope I could help you out. If you n...
1
[FIXED] (I cant keep the old title cuz of the character limit) ?
376453260
MrGustavio
29
2020-09-15 21:31:36
<p>Hello. I am trying to make a Flood Escape style game where you try to escape rising lava. I've got the round system and rising part done, but the lava just stays where it is and you can't play again after that. I've tried reversing, which actually worked, but it won't come back up after that. I've tried multiple thi...
113204
1
103946
1
158811
TGazza
205
2020-09-16 11:36:37
<p>Try:</p> <pre class='brush: lua'>-- Setting variables local Lava = script.Parent local InRound = game.ReplicatedStorage.InRound -- Making the rising tween local Tween = game:GetService("TweenService") local Info1 = TweenInfo.new( 20, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, ...
0
How do I make it so that a certain part of a script only starts when touching a certain part?
1559368879
pugguy1000
3
2021-02-28 19:36:26
<p>I'm making a game with a script THAT CHANGES THE PLAYERS SCORE EVERY SECOND, AND RESETS BACK TO ZERO WHEN THE PLAYER DIES. This works fine. However, I need the timer to only start when the player isn't touching a certain part (Called "StartPart"). I still need to keep the same aspects of the script I meantioned abov...
120797
1
How do i detect if a Block/Gui is Cloned?
161950547
Minecrafter09031031
16
2019-07-12 11:01:05
<p>I was working on lucky block</p> <pre class='brush: lua'>script.Parent.Click1.MouseClick:Connect(function() script.Parent.Parent.Parent = game.ReplicatedStorage.Crates wait(2) script.Parent.Parent.Parent = workspace end) local Weapon1 = game.ReplicatedStorage.Tools.Colorless local Weapon2 = game.Replicat...
83524
1
Script not running at all not even prints?
226832508
MattVSNNL
614
2021-09-28 18:34:57
<p>So I made a script that will detect when it's a door it shows a little gui to interact, But my code isn't even running, Even prints on the top isn't working, Can anyone help me, Literally any code will not run at all, It might also be the fact it's in replicatedStorage, Can anyone help?</p> <pre class='brush: lua'>g...
127734
0
How do I make a game echo? [SOLVED]
37975956
capdog111
5
2014-04-16 23:27:26
<p>What I mean, is, sounds that are made like songs and sword slashes echo through the whole game, like in 'Stop it, Slender!'</p>
2306
3
3149
1
6064318
spyclub65
20
2014-04-16 23:30:03
<p>Open your game in edit mode using roblox studio. In the explore tab, look for "SoundScape". Find the option "AmbientReverb" and scroll through the options. This will solve your problem</p>
0
Left and Right Key doesn't work for my snake game? [SOLVED]
443615303
Filip100012
58
2020-05-05 16:52:18
<p>I was making a Snake Game. For it to work I added a Local Script in the frame. The up and down works but the left and right didn't work.</p> <p>The Local Script:</p> <pre class='brush: lua'>local chr = script.Parent.chr local plrs = game:GetService("Players") local plr = plrs.LocalPlayer local plrmouse = plr:GetMous...
102002
1
94264
0
532084574
AnasBahauddin1978
715
2020-05-05 17:14:35
<p>just gonna say that it should be <strong>if not chr.Position == UDim2.new()</strong> instead of <strong>if chr.Position == not UDim2.new()</strong> and mouse.KeyDown is deprecated, so just use UserInputService</p> <pre class='brush: lua'>local UIS = game:GetService "UserInputService" local player = game.Players.Loca...
0
How to make a button, that you can click only once after you purchased the game pass?
870196676
PAPERplay99
5
2022-05-20 16:02:34
<p>So I have a script, where player can buy in-game money for robux.</p> <pre class='brush: lua'>local mps = game:GetService("MarketplaceService") local plr = game.Players.LocalPlayer local id = 0000000 -- game pass id local me = 0000000 -- I can't buy money script.Parent.MouseButton1Click:Connect(function() if not...
130056
0
attempt to index upvalue 'setting' (a boolean value), what is this error about?
345256394
HeyItzDanniee
222
2018-11-30 19:52:49
<p><strong>I have this script right here thats is located in a ModuleScript:</strong></p> <pre class='brush: lua'>s = { weaponpPosition = CFrame.new(0.2,-1.4,0.6); } return true </pre> <p><strong>And this one is Framework for the gun view model and its located in StarterCharacterScripts as a LocalScript:</strong></...
71384
1
67791
1
34716028
cmgtotalyawesome
1129
2018-11-30 20:43:26
<p>I'm not 100% sure this is correct, but on line 12 shouldn't it be gun:SetPrimaryPartCFrame() instead of gun"DOT"SetPrimaryPartCFrame()?</p> <p>Tell me if I'm wrong cause I'll take the answer down immediately lmao</p> <p>EDIT:</p> <p>I think the error may be that you didn't require the module script? I'm not very goo...
0
I want to set team limit.How?
528894344
The_Saver31
32
2020-03-18 11:01:59
<p>I want to set the Red and Blue team limit.How to do that?</p>
96350
0
Math.Clamp, not working as expected?
1948122737
ZOOP1015
44
2020-12-19 14:42:19
<p>This returns -1 in the output.</p> <pre class='brush: lua'><br />local myVariable = 100 myVariable = math.clamp(myVariable,0,100) myVariable = -1 print(myVariable) </pre>
117363
1
107537
0
70395806
Zelt3q
31
2020-12-19 14:50:08
<p>It takes 3 values. X, min and max. If X is in the range between min and max it returns X. If X is lower than min it returns min and if X is higher than max it returns max.</p> <p>You are setting the value to -1 after your clamp therefore it prints -1.</p>
0
when i equip the tool and press Q nothing happens, what should I do?
417031766
LiamQ926
7
2022-07-30 18:36:16
<pre class='brush: lua'>--Varables local Form1 = script:WaitForChild("FirstForm") local equipped = false local UIS = game:GetService("UserInputService") local tool = game.StarterPack.Sword --Animate tool.Equipped:Connect(function() equipped = true end) tool.Unequipped:Connect(function() equipped = false end) UI...
131015
1
118360
0
85401315
bdam3000
125
2022-07-31 01:24:43
<p>You defined tool as the sword in StarterPack. Instead, define tool as the sword the player is holding.</p> <p>Change line 5 to this assuming that the script is parented to the tool</p> <pre class='brush: lua'>local tool = script.Parent </pre>
0
Can moving a part with CFrame get it automatically moved somewhere else?
47189013
farrizbb
465
2018-12-16 17:00:55
<p>I heard it can happen with position, but I'm having the problem with CFrame. The Part I'm moving has cancollide off and I'm trying to move it somewhere, but when I do the part gets moved somewhere completely different. For example I can move a part on the y axis and it might move it on the x and z axis as well. Also...
72411
0
How to make a Minecraft-style sneak system?
316739596
GreenLazer0
17
2020-03-03 04:08:13
<p>How would I create a system that prevents players from falling/walking off edges. (I'm not talking about a system that lifts player back up after they fall, I'm talking about preventing from falling, much like the "Sneak" function in Minecraft) So far the only idea I've had is constantly raycasting to see if there i...
95496
1
88223
0
871963105
GriffthouBiff
147
2020-03-03 05:34:22
<p>Use a renderstepped (fires between the physics engine and the frame update) to test if the player has a negative Y velocity. Once they do, multiply both the X and Z velocity by -1, and set the Y to 0, so the illegal movement they made gets cancelled out.</p> <p>The method above is how minecraft itself does it, altho...
0
Message that will detect if R15 is being used?
294456554
jackalota
9
2018-02-21 08:15:59
<p>So I have a dance pack, but it only works with R16. I want it so in my scripts, if someone has R15 enabled, it will prop a message. Mostly telling them to read the configuration.'</p> <p>Thanks</p>
54046
0
Speed and HighestSpeed not changing (leaderstats)?
1073917569
Puppy_lovertheawsome
32
2022-11-14 05:36:50
<p>I have been trying to make the characters speed and highest ever speed show on leaderstats but I cannot get it to work:</p> <pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(player) local character = player.Character local leaderstats = Instance.new("BoolValue",player) leaderstats.Name = ...
132278
0
How do getfenv and setfenv functions work? And what is their usages?
675757462
maumaumaumaumaumua
623
2019-12-16 19:24:20
<p><strong>What am i trying to do</strong></p> <p>Know the usage of getfenv and setfenv and know if it works for a sandbox</p> <p><strong>My problem</strong></p> <p>Don't exactly know how to use them</p> <p><strong>My attempts to resolve the problem</strong></p> <p>When i was testing getfenv i noticed that it is a tabl...
91489
1
84703
2
129574502
incapaz
195
2019-12-16 19:41:38
<h4>Just a side note: table.foreach is deprecated, use a generic for loop instead.</h4> <h1>setfenv</h1> <p><code>setfenv(f, env)</code> <em>sets</em> a function's environment. When it receives a function as the first argument, it will set <code>f</code>'s environment to <code>env</code> . The <code>env</code> table is...
1
&quot;Handcuff&quot; Tool - How to move the player?
310696583
LeHelary
87
2019-08-16 12:06:14
<p>So I am trying to make a script for a handcuff tool, I don't know much about CFrames but I managed to do this:</p> <p>[Remote Event]</p> <pre class='brush: lua'>local offset = CFrame.new(0,0,-2.2) local char1 = selectedPlr.Character --(The character of the "cuffed" player) local char2 = plr.Character -- (The charact...
85933
1
79721
1
590239026
KDarren12
705
2019-08-16 14:27:32
<p>Use a loop and a variable " cuffed". You'll have to figure out how to enable and disable the variable.</p> <pre class='brush: lua'>local offset = CFrame.new(0,0,-2.2) local char1 = selectedPlr.Character --(The character of the "cuffed" player) local char2 = plr.Character -- (The character of the player with cuffs) c...
0
startercharacter have problem with animation?
804496198
ninjacatboy51500
0
2022-05-13 01:57:33
<p>Ok let get to the point I'm trying to make a game and my character witch is R6 and my animation will just not work i try everything and they will just still not work</p>
129985
1
Why won't hat button in GUI make hat stay on player?
238838551
PadmeOragana
41
2020-02-03 16:32:41
<p>Hi there, I am still working on a player customizer GUI, and I made a hat GUI for it. Well, it was all working perfectly until I can't remember what happened. It does work, yes, but not how I want it. You see, when you press a button, the hat goes on the player, but then disappears. Here's the script:</p> <pre class...
94078
1
How do I change a player's FOV (Field of View)?
93937677
uhi_o
417
2020-04-15 01:09:02
<p>Hello,</p> <p>How would i go about changing the character or player's Field Of View with a TextBox?</p> <p>Thanks for your help</p>
99315
1
91747
4
74087102
Ziffixture
6791
2020-04-15 01:28:49
<p>You can modify the <code>.FieldOfView</code> property of <code>Camera</code>. To inherit this number from a <code>TextBox</code>, we can tie a listener to the <code>FocusLost</code> signal. By using it’s <code>EnterPressed</code> parameter, we can detect when someone presses return—simultaneously escaping the TextBo...
0
How would I make a seat lock the player who's sitting in it first person?
124963457
notfenv
171
2019-10-18 02:01:34
<p>Ignore my shirt, it's offensive. Anyway, I'm trying to find a way on how to make a seat lock the player who's sitting in it into first person, I have already done this with a chat teleport script, but it gets the character by whoever says the word. I'd like to know how to do this due to the reasons of one of the gro...
88898
1
82410
3
108528848
0_2k
496
2019-10-19 04:12:15
<pre class='brush: lua'>players = game:GetService("Players") seat = script.Parent active = false plr = nil seat.ChildAdded:Connect(function(child) if not active then if child.Name == "SeatWeld" then Active = true plr = players:GetPlayerFromCharacter(child.Part1.Parent) if...
0
Why the script isn't doing anything when i try to clone a ball?
510903860
MpAlex
2
2021-03-10 17:55:53
<p>I want to spawn a cloned part but is not spawning. I don't get any error but when i remove "wait(1000)" it works and crashes my roblox studio. Also i want it to spawn random between 2 parts, but i don't know how to do it, maybe someone could help me.</p> <p>Script:</p> <pre class='brush: lua'>local part = workspace....
121165
2
110405
0
407180563
robloxtitanic584
87
2021-03-10 23:04:06
<p>You are waiting for 1000 seconds. You need to change the</p> <pre class="brush: lua"> wait() </pre> <p>to the number you want <strong>in seconds</strong>.</p>
0
How can i dampen the force when it is still? skinned mesh
1014156252
Puppynniko
1059
2022-06-26 11:06:20
<pre class="brush: lua">local Boat = script.Parent local BodyForce = Boat:WaitForChild("Force") local WaveGenerator = require(game.ReplicatedStorage.Wave2) local DeapthBeforeSubmerged = 1 local DisplacementAmount = 3 local WaterDrag = .99 local function FixedUpdate() local WaveHight = WaveGenerator:Init().GetFloata...
130515
1
117862
0
1527823663
kickoff127
103
2022-06-26 21:34:48
<p>Roblox gravity is weird, so maybe try to lower the height and slow it down. Hope that helps!</p>
0
How to send a message in Default roblox chat?
45189905
Bertox
159
2016-05-17 23:51:07
<p>I already searched in ROBLOX Wiki but i didn't found anything. I want send a message from a Script to the default ROBLOX Chat, like in Ultimate Driving or Mad Murderer but i don't know how.</p>
30681
1
34002
1
76649634
theCJarmy7
1293
2016-05-18 01:08:30
<p>To do this, you would use <a target="_blank" href="http://wiki.roblox.com/index.php?title=API:Class/StarterGui/SetCore"><code>SetCoreGui</code></a>.</p> <pre class='brush: lua'>game.StarterGui:SetCore("ChatMakeSystemMessage", { Text = "[theCJarmy7] this can make it seem like I chatted something!" }) </pre> <p>Th...
0
Why is the wins value never updating?
503062933
NotConnorRandumb
22
2023-01-25 01:43:03
<pre class="brush: lua">local DataStore = game:GetService("DataStoreService") local WinsLeaderboard = DataStore:GetOrderedDataStore("WinsLeaderboard") local function updateLeaderboard() local success, errorMessage = pcall(function() local Data = WinsLeaderboard:GetSortedAsync(false,5) local WinsPage...
132938
0
What does ~= actually mean and what is the difference from ==?
89586581
Thepoint13
94
2019-03-03 08:45:31
<p>I have a code which checks for parts in region. But it only works with ~= and not ==. What is the difference between these two?</p>
77147
2
72372
2
132630431
louponius
74
2019-03-03 08:48:16
<p>~= is "does not equal." so.</p> <p>if 3 ~= 5 is true because 3 does not equal 5. read more about it here https://developer.roblox.com/articles/Conditional-Statements-in-Lua</p>
0
How can I make sure that my code is protected from exploiters?
10744384
xboxking2000
0
2021-01-12 21:39:59
<p>I am creating a speed run game that starts a timer on the player's screen once they touch a starting brick. The timer is saved as a stat in their leaderboard and if it is better than their fastest time, it will replace their fastest time with the timer. I have this script inside of a local script inside the player's...
118607
0
How do I use an UIAspectRatioConstraint? [SOLVED]
48393568
RichCookieGamer
7
2018-08-13 22:26:11
<p>There are no tutorials on this and I cant seem to figure out how to keep the frame onto the screen using this method. I also don't know if I have to use code to do this.</p>
65415
1
63304
1
209708098
ABK2017
406
2018-08-13 22:44:42
<p>A UIAspectRatioConstraint ensures that a GuiObject maintains a particular aspect ratio even if it’s size is set as a percentage of its parent. If an object with this constraint is also under the control of a UILayout such as UIGridLayout, then the constraint controls the object’s size and overwrites any size the lay...
0
How to add Audio During Certain Scenes in a Cutscene?
2108078
Mirror_Master
25
2014-02-17 05:31:57
<p>I've seen crazyman32 do it in his game "Terra Novus"</p> <p>I want to be able to add a sound during a cutscene scene.</p> <p>The cutscene is the camera is assumed a car. The "car" is driving, then it slips and crashes. How do I add a car crash noise to that part of the scene?</p> <p>Note: I do not know anything abou...
24
3
51
1
13416513
Merely
2117
2014-02-17 05:41:54
<p>You'll have to create a 'Sound' object and play it. I recommend placing the Sound object inside PlayerGui so that only the local player can hear the sound.</p> <p>Here's an example local script that you could place in the StarterGui that plays a sound:</p> <pre class='brush: lua'>--make sure this is in a LocalScript...
1
[Update] What does &quot;Unexpected Unicode character: U+202c.&quot; mean?
31504923
rabbi99
617
2020-04-16 11:21:41
<p>Not much to tell except that I don't know what <strong>U+202c</strong> means. This is the error: <strong>Workspace.Hall.Script:10: Unexpected Unicode character: U+202c</strong> and here is my script:</p> <pre class='brush: lua'>Hall = script.Parent PrimaryPart = Hall.PrimaryPart PrimaryPart.Position = Vector3.new(13...
99466
0
What is the difference of &quot;i, v&quot; and &quot;_, v&quot; in for loops?
493071799
DesertusX
435
2020-04-27 09:00:33
<p>Time to time, I see in for loops something like <code>for _,v in pairs (table) do</code> and I have no idea what it means. I understand that these are just defining a variable but what does the underscore mean? How is it different from <code>i,v</code>? If you can, can you also please tell me why most people use <co...
100925
3
93212
3
74087102
Ziffixture
6913
2020-04-27 11:57:55
<p>The character itself doesn’t have much significance, it just simply represents an ignorance figure—a blank space. Even though it still is supplied with the identical index data, we still use it a form to conventionally signify that the parameter is insignificant to actions we’re performing inside the iteration funct...
1
How would you convert something like this over when using the new client filtering?
23472453
TheGuyWithAShortName
673
2014-03-14 17:15:19
<p>For example, say I had something like this:</p> <pre class='brush: lua'>mouse=Game.Players.LocalPlayer:GetMouse(); mouse.KeyDown:connect(function(key) if key:lower()=='e' then Instance.new("Explosion",mouse.Target) end end) --Please note that I'm not actually using the above code for anything, it's just an example. ...
683
2
1099
3
4030068
jobro13
980
2014-03-14 18:46:51
<p>You need to use RemoteFunctions - these ARE allowed to be used with FilteringEnabled.</p> <p>This goes on the server script:</p> <pre class='brush: lua'>local RemoteFunction = Instance.new("RemoteFunction") RemoteFunction.Name = "CreateExplosion" RemoteFunction.Parent = game.ReplicatedStorage function RemoteFunction...
0
How can I get where the camera is facing?
62061300
AstrealDev
728
2017-04-10 20:33:11
<p>For example, if I move my player's camera to look at the sky how can I get that lookVector? I want to make a fly script but I want it to work based on the position of where the player is facing with his or her camera.</p> <p>NOTE: I'm not asking you to make me the script I simply want to know to find the lookVector ...
41853
1
43600
0
87138498
cabbler
1942
2017-04-10 21:01:10
<p><a href="http://wiki.roblox.com/index.php?title=Camera_manipulation">http://wiki.roblox.com/index.php?title=Camera_manipulation</a></p> <p>Camera is accessed locally with workspace.CurrentCamera, which has a CFrame, which has a lookVector. in example:</p> <pre class="brush: lua">local dir = workspace.CurrentCamera.C...
0
How to make script Loop 4ever in Roblox Studio - it's possible ?
1715586226
PPJASK
19
2021-02-03 11:34:51
<p>How to make Loop for ever in local script - Roblox Studio ? It's possible ?</p> <ul> <li>Thank you and best regards !</li> </ul> <p>-PPJASK</p>
119568
2
109158
3
32873227
shadowstorm440
590
2021-02-03 11:42:29
<p>You can do multiple ways.</p> <p>one, you can use the while do condition:</p> <pre class="brush: lua">while true do wait() -- NEEDED ELSE THE SCRIPT WILL CRASH YOUR GAME / STUDIO print('SUP') end </pre> <p><strong>alternatively you can use</strong> <code>while wait() do</code></p> <p>two, you can use runserv...
0
How do i detect when a player talks to a npc with a dialogue?
1674805834
Black_Magic2533
22
2021-07-21 01:33:28
<p>I am wondering how i can detect if a player talked with a npc using the dialogue, for context i am creating a shop that uses dialogue to buy the items.</p>
125556
0
Anyone knows how to add this script a debounce?
205456885
SuperBeeperman
30
2018-04-20 21:39:00
<pre class='brush: lua'>local Spirit = script.Parent Spirit.Touched:connect(function(entity) if entity.Parent.Name == "WaterEssence" and game.Players:FindFirstChild(entity.Parent.Parent.Name) then local Man = entity.Parent.Parent.Parent local RealMan = game.Players:FindFirstChild(entity.Parent.Pa...
57140
2
Getting parts in view on a player's screen?
60557514
Axstin
55
2014-02-21 14:31:39
<p>How would I go about getting all the parts that is within view of a players screen?</p> <p>Thanks.</p>
196
0
How do I add leaderboards?
103466946
kimbriel
19
2020-06-16 21:11:30
<p>hello, I have just started coding on roblox and i want to make a simple clicker/simulator game. why does this code not work for a leaderboard?</p> <p>game.Players.PlayersAdded:Connect(function(player) local stats = Instance.new("Folder") stats.Name = "leaderstats" stats.Parent = player</p> <pre class="brush: lua">lo...
106581
1
98094
0
1185917149
TommyHArden
101
2020-06-16 21:25:18
<pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(Player) local Leaderstats = Instance.new("IntValue") Leaderstats.Name = "leaderstats" Leaderstats.Parent = Player local Power = Instance.new("IntValue") Power.Name = "Power" Power.Parent = Leaderstats Power.Value = 0 end) </pre> <p>-- Note: It should be ...
0
How do I hide a game? - Creating Levels
1071181471
fcvrs
22
2021-01-06 15:58:28
<p>What I mean by this is I want to make a game with levels and those levels are on different game place ids, but not have that level showing up if you look on continue playing or search it. Is there a possible way of doing this?</p>
118298
1
108237
0
73170429
imKirda
4491
2021-01-06 16:10:27
<p>It's not possible with places in different Universes but places in same universe will be showing as the main place they are parented to, Universe in roblox is not a place but the universe where all the places of same game are, You add places to the universe by clicking in Studio <code>View</code> > <code>GameExplore...
0
How to regen a coin (with collectionservice), after a cooldown while making other coins work?
1507353142
Bloxyses
2
2022-08-05 00:07:04
<p>I've been trying to find out the problem but I couldn't quite think of a solution to this problem. This is my code:</p> <pre class='brush: lua'>local CollectionService = game:GetService("CollectionService") local CoinsTag = CollectionService:GetTagged("Coins") local debounce = true for _, taggedCoin in pairs (CoinsT...
131103
1
118433
0
1792778813
Xapelize
2326
2022-08-05 09:01:50
<p>Create a debounce for each of the coins!</p> <p>You can do that by moving the <code>debounce</code> variable inside the pairs loop, so in every loop, it will create a new debounce variable (for the coin!)</p> <pre class='brush: lua'>local CollectionService = game:GetService("CollectionService") local CoinsTag = Coll...
1
How would I use this Twitter API module to post a tweet?
74582692
hpenney2
53
2019-09-19 22:27:07
<p>Hello! I am attempting to make it so pressing a button will post a tweet to a bot account. I am using this API module script: https://www.roblox.com/library/458958433/Twitter-API</p> <p>I understand that I need to use something along the lines of <code>module.api_call("post", "somepath/here", {--[[data here]])</code...
87669
1
81238
0
20111088
royaltoe
5144
2019-09-20 02:23:12
<p>The api_call function sends a post request to twitter with a link we specified in the parameters. If we were to call the link ourselves, this is what the link would look like: <code>https://api.twitter.com/1.1/statuses/update.json?status=hello</code></p> <p>Anyway, since we want to update the status, we'd make the s...
8
How to create lines in strings?
41100413
BSIncorporated
640
2015-05-09 01:19:45
<p>I wanted to know how if possible I could add another line to a string, like as follows:</p> <pre class='brush: lua'>String = "BSIncorporated has killed Bluemonkey132" </pre> <p>Just an example</p>
17382
2
20767
7
13416513
Merely
2122
2015-05-09 01:24:28
<pre class='brush: lua'>String = "BSIncorporated has \n killed Bluemonkey132" </pre>
0
Why can't i use different types of fonts?
233224360
mastercheeseit
60
2021-01-12 01:58:04
<p><strong>--Other fonts work but the font Lilita One doesn't work I don't understand why it doesn't but for some reason another font I put works but instead of this and I think other more fonts don't work also--</strong></p> <pre class='brush: lua'>script.Parent.RichText = true script.Parent.Text = '&lt;font face="Li...
118575
0
HttpService Trust Check failed? (SOLVED)
417648663
3F1VE
222
2021-06-15 11:26:37
<p>apparently you need https:// before the url</p>
124419
0
How to change the player &quot;StarterCharacter&quot; depending on the player race?
438845010
Ariirael
15
2022-06-22 11:19:16
<p>im making a game that have some humanoid races and monster races(4 monsters), that i just do an if to check the player race and insert the Monster Model in the StarterPlayer and change the name for StarterCharacter, but when the player race change again, his body keep with the old one, how do i can fix it?</p> <pre ...
130462
0
Saving System (gems and rebirths are not saving)?
244447008
RoseHickman8
0
2022-09-16 15:56:04
<p>Hey Guys my Gems and rebirths are not saving but my clicks do can anyone help me ?</p> <pre class='brush: lua'>``local dataStoreService = game:GetService("DataStoreService") local clicksDataStore = dataStoreService:GetDataStore("Clicks1") local rebirthsDataStore = dataStoreService:GetDataStore("Rebirths") local gem...
131640
0
gives point to player if on red team and touch part, but debounce doesn't work. How do I fix it?
1044877460
MariamOMG090
9
2023-02-06 03:35:56
<p>local Players = game:GetService("Players")</p> <p>local Teams = game:GetService("Teams")</p> <p>local debounce = true</p> <p>game.Players.PlayerAdded:Connect(function(player)</p> <pre class="brush: lua">if player.Team == Teams["Red Team"] then script.Parent.Touched:Connect(function(hit) local player = ga...
133030
1
120129
1
245864252
xInfinityBear
1777
2023-02-06 04:07:26
<p>You need to put the if statement within the Touched event; that way, it will check if the player is on 'Red Team' when they touch the part.</p> <p>Also, the PlayerAdded event is unnecessary.</p> <pre class="brush: lua">local Players = game:GetService("Players") local Teams = game:GetService("Teams") local debounce =...
1
How to continuously loop through a model's part's until certain item is found?
215237638
LikeableEmmec
26
2021-06-07 13:14:33
<p>I feel like the title is too long, but here's what I hope my code would do:</p> <p>Actually, before I start, I would like to note this is a plugin, as I'm not sure if that will help or not. . Anyway, I hope my code would loop through a model's part's until we find the specified item (in my case, a weld), if the spec...
124167
1
113190
0
823902285
MarTieMak
39
2021-06-07 16:03:03
<p>Instead of deleting an object you can just set its parent to 'nil' and use it for later</p> <pre class='brush: lua'>local yourobj = game.Workspace:WaitForChid('Part') yourobj.Parent = nil wait(10) yourobj.Parent = game.Workspace </pre> <p>it works just fine for me</p>
3
Help with updating lobby list (like in COD lobbies)?
38498021
capinbuilda
15
2018-07-03 21:58:35
<p>This script is meant to update the player list ( much like in COD lobbies ) when a new player joins. However it says that ScreenGui is not a child of PlayerGui despite it definitely being there. Any idea whats going on?</p> <pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(plr) plr:WaitForChild("...
61764
1
60185
1
15098126
climethestair
1545
2018-07-03 23:05:35
<p>If you are on Filtering Enabled, the problem that is occurring with the infinite yield is because you are trying to look into a client's PlayerGui, which you can't do on the Server Side of a game. It works in studio because Test Play in studio ignores Filtering Enabled and allows you to cross the line between Server...
0
Maxhealth goes up with leaderstats how?
609694350
thedukke1
9
2021-09-30 13:52:25
<pre class='brush: lua'>local Player = game.Players.LocalPlayer local Maxhealth = Player:WaitForChild('leaderstats'):FindFirstChild('Health') local char = script.Parent Maxhealth.Changed:Connect(function() char:WaitForChild('Humanoid').MaxHealth = Maxhealth.Value end) </pre> <p>so this is my script Health is the le...
127754
0
IntValue doesn't change in the output?
123490931
transparens
2
2021-05-03 20:12:06
<p>So I have local Folder = Instance.new("Folder") Folder.Name = "leaderstats" Folder.Parent = player local Level = Instance.new("IntValue") Level.Name = "Level" Level.Parent = Folder</p> <p>local qoroutine = coroutine.create(function() while true do print(Level.Value) wait(.1) end end) coroutine.resume(qoroutine)</p> ...
123063
1
112159
0
532084574
AnasBahauddin1978
603
2021-05-04 05:19:58
<p>The script is fine, the reason that your IntValue isn't changing is because you aren't changing the value on the server. If you change a value on a client, it doesn't replicate to the server. This is to prevent exploiters, let's say a hacker sets their cash to 10000000, the server would still see it as 0. To fix thi...
0
Im making a m1 combo script but each time I do, My output shows these errors like?
964031717
bobdrix
0
2022-11-29 04:48:39
<p>RightGrip is not a valid member of Part "cloud_1071939507.. Right Arm" and FakeHandle is not a valid member of Tool "cloud_1071939507.. Buthersaw"</p> <p>Here's my code if you need it LOCAL SCRIPT`` local character = script.parent local humanoid = character.Humanoid local player = game.Players.LocalPlayer</p> <p>loc...
132421
0
Put a surface Gui around a cylinder?
70966634
MisterThackeryBinx
29
2017-06-08 17:21:26
<p>Hello,</p> <p>Does anyone know if it is possible to put a SurfaceGui that would wrap around a cylinder brick? If possible please let me know how you did it,</p> <p>Thanks, Anthony</p>
43793
0
How do I fix ropes teleporting parts to themselves?
62087109
Raccoonyz
893
2020-01-19 20:50:35
<p>Hi. I'm making a script that adds a rope to any unanchored objects that come by. I want the rope to make the unanchored object swing across. However, whenever I try to do it the rope just teleports the part to the position without swinging it. That isn't what I want it to do and so I was curious how to fix this. My ...
93264
1
Attempt to index nil with number, can anyone help me?
1902553017
hndcwffs
5
2022-08-01 13:33:41
<p>Can anyone please help me? It's for a character creation script. Error happens at line 48</p> <pre class='brush: lua'>local plr = script.Parent.Parent.Parent.Parent.Parent repeat wait() until plr:FindFirstChild("PlayerGui") local Datastore = game:GetService("DataStoreService"):GetDataStore("V4Slot1") local PData = D...
131040
0
Why aren't these scripts going at the same rate?
20398840
minikitkat
687
2015-02-23 00:13:04
<p>Hello! I have been putting some finishing touches on my latest model and have some flashing parts on it. Basicly there are four parts; Two have this script in it:</p> <pre class='brush: lua'>while true do wait() wait(0.1) script.Parent.Transparency = 1 wait(0.1) script.Parent.Transparency = 0 end </pre> ...
15229