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
Needing help with printing a string from a table in a table (?)
1029936360
JawBreacker_44fan
0
2022-05-09 00:51:54
<pre class='brush: lua'>local example = { ["Example"] = { ["ex1"] = "a", ["ex2"] = "b", ["ex3"] = "c", ["ex4"] = "d", } } for _,btns in pairs(script.Parent:GetChildren()) do if btns:IsA("ImageButton") then btns.MouseButton1Click:Connect(function() if table...
129963
0
How i can make a Proximity Stun Skill?
438845010
Ariirael
15
2020-09-12 01:59:32
<p>i want make a skill what i can press a key (P) and it activate, and with magnitude make it stun ppl what get close to me, i know how to make the stun thing and magnitude thing, but idk how to make it a Skill what i can just have it and when i press P it activate, if i press P again it deactivate, some help? its my s...
113047
0
Custom ROBLOX command --&gt; Discord webhook?
59723197
Starlighxt
2
2019-12-20 18:07:47
<p>There is a way to do it, just wondering how. I'm wondering how I can make a command transfer over to a discord webhook. An example of what I mean is: if someone with a <strong>certain</strong> rank in a group (or a higher rank than the certain rank) said something like ":Announce (message)" then it would ping everyo...
91650
0
AddAccessory should be passed a valid Accessory object.?
331809274
TechModel
88
2021-10-06 07:29:16
<p>I'm trying to add custom accessories added to the player onced joined when in specific teams. The problem sometimes shows this error and the accessories don't show up. On line 22, I the part removes the players custom accessories then replaced with the the team accessories. So why doesn't it work? Thanks.</p> <pre c...
127803
0
RaycastParams.FilterDescendantsInstances = {player.Character} how do i fix this?
214632828
Rareloljosh21
0
2021-06-20 17:51:03
<p>Players.RareLoljosh21.Backpack.Tool.Server:4: Attempt to modify a readonly table -error</p> <p>RaycastParams.FilterDescendantsInstances = {player.Character} the code</p>
124585
1
how to use a model as a tool to fling people? (im new to lua)
307526923
coolman2006xterra
5
2022-06-24 01:52:40
<p>How can i use a model as a tool for the player that when click LMB it triggers a animation and flings the character a certain distance if made contact with?</p>
130489
1
Is it possible to save a Players spot?
15297810
xXScorpianKillerXx
25
2014-02-27 22:47:59
<p>I am making a "Climb 14,000 Stairs" Obby, and it actually has 13,900 + Stairs. I was wondering, if it was possible that when a Player leaves, it saves where the Player's location is?</p>
338
2
623
4
64408300
RaverKiller
668
2014-02-27 22:51:28
<p>There is quite a simple way to do this, you could either use <a target="_blank" href="http://wiki.roblox.com/index.php/Data_store">DataStore</a> or <a target="_blank" href="http://wiki.roblox.com/index.php/Data_persistence">DataPersistence</a> to save the Torso's CFrame/Vector3. When you load the Vector3/CFrame of t...
0
Why does it say: Vector3 expected, got CFrame?
286997127
TheDev321
37
2020-02-16 10:51:06
<p>Error:</p> <pre class='brush: lua'>11:47:03.881 - Workspace.Model.Main.Script:57: bad argument #2 to '?' (Vector3 expected, got CFrame) 11:47:03.881 - Stack Begin 11:47:03.883 - Script 'Workspace.Model.Main.Script', Line 57 11:47:03.883 - Stack End </pre> <p>Code:</p> <pre class='brush: lua'>-- Services local UserIn...
94653
0
Can I get some help with this error that's causing my mind to fracture?
1503498860
surviarlTheJefkillre
40
2021-05-04 00:30:08
<p>I keep getting an error on a line of code that should change a string value to the name of a part, and it makes no sense to me please help.</p> <p>here's my script (Its only a small part of it to keep it simple, but i assure you everything else works):</p> <pre class='brush: lua'>UIS.InputEnded:Connect(function(inpu...
123070
1
How to stop the 'Introduction to the Game' GUI to stop reopening itself upon reset?
5229789
RAYAN1565
691
2014-07-10 01:37:40
<p>So I have an introduction GUI that introduces the game before you actually play it. But I came across a problem. Once you reset your character or if you die in-game, the GUI opens up again.. I only want it to show once and not repeat after you reset your character or die. How do I stop that?</p> <p>Here's the script...
7875
2
10215
0
10019307
Nymint
85
2014-07-10 01:53:07
<p>Woah, I suggest you to learn about <a target="_blank" href="http://wiki.roblox.com/index.php/Loops">Loops</a>.</p> <p>This happens due to the fact that adding any gui in <a target="_blank" href="http://wiki.roblox.com/index.php/StarterGui">StarterGui</a> would give that gui to every player that respawned.</p> <p>(Yo...
0
How to jump with multiple keys?
1357339884
SilverishReign
55
2021-04-07 12:50:54
<p>I want to enable jumping with multiple keys, the problem is a bug occurs where the player can infinitely jump. I don't know what is causing this problem. Here is my attempt.</p> <pre class='brush: lua'>local UserInputService = game:GetService("UserInputService") local ContextActionService = game:GetService("ContextA...
122110
0
How to use a table as a variable?
1173028351
RazorXX2
12
2021-06-07 05:39:54
<p>I tried doing this:</p> <pre class='brush: lua'>wait(0.1) plry = game.Players.LocalPlayer local highrank = { "Todesscharfschutze", "RazorXX2", "madekid" } for i, v in ipairs(highrank) do if plry.Name ~= v then script.Parent.Parent = game.Lighting end end </pre> <p>I want like a table ...
124159
1
How can I put Coordinates for a Vector3 in a list for a function?
1406209964
ElectricZooo
55
2020-05-03 19:22:45
<pre class='brush: lua'>function generateMedKit(name,chords) local MedKits = game.ServerStorage.MedKits:FindFirstChild(name) local Cords = chords local randNum = math.random(1,#Cords) local chosenValue = Cords[randNum] print(chosenValue) MedKits.Parent = game.Workspace ...
101761
4
How do I insert a script and edit the script? [Closed]
49352468
fireboltofdeath
630
2014-04-15 06:20:56
<p>I use Instance.new("Script", workspace) But how do I edit it? When I insert the script with khols admin I can not edit the script. Please tell me how.. Say if I wanted to insert a script into my character's head with khol's admin. I would do :s Instance.new("Script", game.Workspace.fireboltofdeath.Head) But how can ...
1543
1
2054
1
15619704
NinjoOnline
1147
2014-04-15 06:23:09
<p>Double click on the script in Explorer. Open explorer with the View Menu. You can also go: Insert>Advanced Objects>Script. That's how I do it.</p> <p>Hope I helped</p>
2
What can i use _G for?
39451928
digitalzer3
123
2014-05-30 22:44:51
<p>Ive seen alot of scripts with _G and i dont know whats it for can you help me?</p>
5875
2
7815
5
34209956
M39a9am3R
3209
2014-05-30 22:46:36
<p>You can use it for server-side script to server-side script tag values, so for instance I have _G.Tag = "Hello" in one script, and print(_G.Tag) in another script, the second script would print "Hello"</p>
0
Workspace.Dummy.FollowAndAttack:7: attempt to index nil with 'Humanoid'?
1169890595
ghostgamer90391
9
2023-02-18 14:17:45
<p>So I have a script that checks if the humanoid exists and then attacks it, but I get the error: Workspace.Dummy.FollowAndAttack:7: attempt to index nil with 'Humanoid' on line 7 and I don't know how to fix it. Here's the line that the error is on:</p> <p>if v and v:FindFirstChild("Humanoid") and v:FindFirstChild("Hu...
133087
0
Physics script help (baseball system) how to push the ball?
1739689185
MatiasHarders
0
2021-02-02 00:31:30
<p>Hello, i need to do something like that ? when the ball touches the red box I want it to be pushed (the ball) like the red line that i marked</p> <p>post: https://devforum.roblox.com/t/physics-script-help-baseball-system/1019839</p>
119505
0
How do you make 2 team with different items?
27745873
fall4ever
0
2014-04-17 11:07:27
<p>How do you make 2 team with different items because i want a hyperbike and a hyperlaser gun in the other but i want one as red and the other team as blue , even though i know how to change the colour i just need to know how to put it.</p> <p>Please answer ~Yours Sincerely fall4ever</p>
2412
1
Why is tonumber not converting my string?
1600676
MasterDaniel
320
2014-08-22 12:38:48
<p>-- SOLVED -- I had made a stupid mistake with "Pack1 = script.Parent" because the numbered TextButtons are actually script.Parent.Pack1!</p> <p>Hi guys. I have this script that changes a decal depending on if a player has completed a level. All of the children of Pack1 are numbered 1 through to 12. This script has b...
10070
0
How do you do a when developer product bought script?
1261252204
Office_Bucket
29
2022-07-14 16:44:20
<p>In my game I have a developer product and I want it to be where when someone buys the developer product, something happens in the server that they're in. I cannot find anything about this type of thing anywhere. Could someone help me?</p>
130790
1
118087
1
107690936
SpiritualSonicdash
67
2022-07-14 17:52:22
<p>There's a function that is a part of MarketplaceService called MarketplaceService.ProcessReceipt.</p> <p><a target="_blank" href="https://developer.roblox.com/en-us/api-reference/callback/MarketplaceService/ProcessReceipt">You can read about it here.</a></p> <p>One thing that I also recommend is using a MarketplaceS...
0
How to turn off collide between part and player?
550705045
LioshaPlay
66
2021-08-19 22:29:23
<p>I need to disable collision between player and part, but the only thing I know is how to disable collision for everything, this is not what I need.</p> <p>The thing is, I have a script to grab a part, but the problem is that the player can jump on it and fly.</p> <p>If use my script, then part can go through walls a...
126661
0
How do I make a TextBox only accept numbers?
36563329
iFireLazer
35
2016-05-24 00:33:40
<p>So I'm making a Light Placing plugin (I know, super original!) and when i click, I want a gui to appear asking you things like "How bright?". But, obviously, is someone typed letters in it, it would obviously error.</p>
30880
0
Trying to add a part to randomly generated NPC?
38194029
FlorianRL
0
2020-09-16 00:31:41
<p>So I have been trying to add glasses, hair and the like to a randomly generated NPC in my game, but I have not been able to do it successfully.</p> <p>My code goes like this:</p> <pre class='brush: lua'>room = script.Parent.Parent.Parent.Parent enums = {"The names I wrote"} enums2 = {BrickColor.new("Pastel brown"),B...
113210
0
Changing the color of Terrain Water, and making it change during night and day. ?
3128097
panichub
29
2017-12-23 03:48:34
<p><code>Okay, so I'm new to scripting (I've been playing around with it though.) I've been watching the **old** roblox tutorials on how to script, there is this one I watched for making a street light that turns on in the day, and one for night time, so I thought: "Maybe I can make the water color change blue during t...
50765
1
50580
0
36340323
Mayk728
855
2017-12-23 04:41:27
<p>You've made many mistakes here; <code>game</code> should always be lower case, W in <code>Workspace</code> should be capitalized only, and W &amp; C in <code>WaterColor</code> should be capitalized. To set the color, use <code>Color3.fromRGB(1,2,3)</code></p> <pre class='brush: lua'>game.Workspace.Terrain.WaterColor...
0
Can you increase the speed of a cframe?
335027300
PureGamerGames
16
2019-04-11 09:48:33
<p>Hello, I am trying to learn a bit of CFraming for a script. I am trying to make a rotating light using rotation and I'm currently using the following script.</p> <pre class="brush: lua">sphere = script.Parent a = 0 off = 0 repeat sphere.Rotation = Vector3.new( 0, a, 0) wait(.01) a = a+3 until off == 1 </pre> <p>Does...
78839
2
73600
0
124281858
DeceptiveCaster
3761
2019-04-11 12:43:57
<p>Use <code>CFrame.Angles()</code>:</p> <pre class="brush: lua">repeat sphere.CFrame = sphere.CFrame * CFrame.Angles(0, math.rad(a), 0) wait() -- The minimum waiting time a = a + 3 until off == 1 </pre> <p>According to your code, it goes on forever because <code>off</code> is never equal to <code>1</code>....
0
How to set up BasePart:SubtractAsync()?
1961959172
imnotaguest1121
362
2023-03-11 01:55:09
<p>Hello Developers!</p> <p>I have seen something in coding which is <code>BasePart:SubtractAsync()</code>. Now in my understandings, <code>BasePart:SubtractAsync()</code> is simply a way to create unions ingame, imagine it like slicing a piece of bread ingame without using two seperate parts. The issue however is that...
133176
1
120248
2
178628425
Jac_00b
157
2023-03-11 02:28:43
<p>To use <a target="_blank" href="https://create.roblox.com/docs/reference/engine/classes/BasePart#SubtractAsync"><code>SubtractAsync()</code></a>, the basic parameters are:</p> <pre class="brush: lua">-- an array is a table in which the key is a number and the value is any, for example {1, 2, "hi"} or {[1] = 1, [2] =...
1
How do I stop the animation when the tool is unequipped?
358294883
LegoUnicornRoblox
37
2019-11-06 15:17:54
<pre class="brush: lua">local Player = game:GetService("Players").LocalPlayer --- local Tool = script.Parent --- local Handle = Tool:WaitForChild("Handle") -- local Character = Player.Character or Player.CharacterAdded:Wait() -- local Mouse = game.Players.LocalPlayer:GetMouse() -- local Humanoid = Character:WaitForChil...
89691
2
Out of curiosity. Why can't we alter a player's name under the 'Players' folder?
5229789
RAYAN1565
691
2018-08-04 08:04:41
<p>I was messing around a little to brush up on my knowledge of lua and compiled the script shown below. When I ran the script, it displayed an error in the output (also shown below).</p> <pre class="brush: lua">game.Players.PlayerAdded:connect(function(player) if player.Name == "ROBLOX" then print("ROBLOX ...
64615
3
64782
1
7373922
RomarenemProductions
140
2018-09-15 03:34:16
<p>Roblox studio users lack the permissions to edit the player names because then that would load the character's personal avatar, BC/TBC/OBC status, and you would be using their account to play in the game. This could alter their status in the game (such as leaderstats) and if you perform abusive behavior, the owner o...
0
Is there a way I could possible access my PlayerScripts with a global script inside Workspace?
182749645
Soccerman1234Coolkid
0
2020-11-22 02:54:57
<p>I'm trying to get a Script inside one of my models to enable a local script, but I keep getting the error: Clock.Time.SurfaceGui.Time.Script:2: attempt to index nil with 'WaitForChild'.</p> <pre class='brush: lua'>local Text = script.Parent local PlayerScripts = game:GetService('Players').LocalPlayer:WaitForChild('P...
116138
0
Why do I get 15:07:07.402 - Humanoid.Touched event is not currently enabled?
127991583
LisaF854
93
2016-11-13 21:19:10
<pre class='brush: lua'>script.Parent.Touched:connect(function(hit) local h = hit.Parent:FindFirstChild('Humanoid') if h then h.Parent:Clone() end end) </pre> <p>Why do I get the error: 15:07:07.402 - Humanoid.Touched event is not currently enabled if the script's parent is a part in Workspace?</p> ...
37186
0
How to make a table every character without doing it manually?
1543400900
Pro_beatz
36
2022-08-01 15:43:07
<p>So for example, local everycharacter = { "a", "b", "c", "1", "+",} how would I get every characters without doing it manually like I said?</p>
131043
0
How to fix Incomplete statement error?
490415558
wesleylucasribeiro
0
2022-09-10 17:46:59
<p>i get an error on line 20 saying: "Incomplete statement: expected assignment or a function call"</p> <pre class='brush: lua'>--[[ Message Translator Made by Aim, updated by cli Credits to Riptxde for the sending chathook --]] if not game['Loaded'] then game['Loaded']:Wait() end; repeat wait(.06) until ga...
131575
0
How do i get variable through remote event?
1171730032
AgentViteC
58
2022-06-23 16:39:09
<p>I was spended like 20 minutes to search for an answer, but result didn't appear. You can see EXAMPLE code, that means i dont use it in game.</p> <pre class="brush: lua">--Client script-- remote = game.ReplicatedStorage:WaitForChild("RemoteEvent") rng = math.random(0,100) --Defining variable remote:FireServer(rng) --...
130482
2
117824
0
929847335
TheDude646
72
2022-06-23 16:56:26
<p>you can pass it along as a parameter, for example:</p> <p>local script:</p> <pre class="brush: lua">game.ReplicatedStorage.exampleRemoteEvent:FireServer(exampleVariable) </pre> <p>server script:</p> <pre class="brush: lua">game.ReplicatedStorage.exampleRemoteEvent.OnServerEvent:Connect(function(exampleVariable) -- y...
0
Why won't this script work? I have tried multiple methods to fix it. [ANSWERED]
1169362290
iiMxtt_Destinyii
62
2020-03-18 02:50:21
<p>Hello, I am trying to achieve a <strong>Carry System</strong> but whenever a player comes</p> <p><strong>Here is the full code:</strong></p> <pre class='brush: lua'>local UI = script.Parent local RS = game:GetService("RunService") local debugmode = 0 local firstply = "nil" if debugmode == 0 then RS.Stepped:Connect(f...
96335
0
Why can't I kill the player?
1073917569
Puppy_lovertheawsome
84
2022-10-30 09:49:15
<p>I cannot get the lava to kill my player! Any Ideas on how to fix it?</p> <pre class="brush: lua">local lava = script.Parent lava.Touched:Connect(function() game.Players.LocalPlayer.Humanoid.Health = 0 end) </pre>
132082
2
119292
1
72153531
0x5y
105
2022-10-30 11:07:29
<p>When using <code>.Touched</code>, one value is passed to the function <code>hit</code> which you can then use to check if the hit is a player.</p> <p>Here's an (untested) example:</p> <pre class="brush: lua">local lava = script.Parent lava.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") th...
0
String expected, got nil. How to fix?
148857679
Beackichu
15
2020-10-10 19:00:36
<p>Hello! I am trying to make a DataStore script for keybinds in my game. I have string values saved in a table. When I test the script, I get an error: Invalid argument #3 (string expected, got nil) It is on line 29 - 33.</p> <pre class='brush: lua'>local ds = game:GetService("DataStoreService") local keys = ds:GetDat...
114220
0
script does not run after beign cloned. Cause?
1136261
gyurka
10
2016-10-07 09:18:16
<p>I created a tool that shoots a ball at an object with RocketPropulsion after the ball is spawned the script should clone a script in the Lighting(I tried with ReplicatedStorage too) and put it in. but after it's done the cloned script doesn't run at all.</p> <p>the interessting part of the first script.(its a locals...
36122
0
Why won't the gamepass give the tool?
28681063
iiCasual
20
2015-04-03 18:40:50
<pre class='brush: lua'>wait(2) gpid = 233549351 tools = {"The Beans"} GPS = game:GetService("GamePassService") function respawned(char) local player = game.Players:FindFirstChild(char.Name) print("Respawned") if char:FindFirstChild("Head") ~= nil then print("It's a Player!") if GPS:PlayerHasPass(player, gpid) then pri...
16299
2
19563
0
80364507
DewnOracle
115
2015-04-03 19:10:05
<p>There were three things that were potentially wrong here. 1: The name of the tool has a space 2: The connected function passes no arguments 3: (Not a real problem) Your code is not indented and it bothers me</p> <p>Here is your code rewritten to address the second problem. I would strongly recommend that you use th...
17
HttpService - PostAsync
23472453
TheGuyWithAShortName
673
2014-02-01 23:57:31
<p><code>PostAsync( string url, string data, HttpContentType content_type = ApplicationJson )</code> &lt;- Copied from the Roblox WIki.</p> <p>What happens if you leave the HttpContentType blank? Is it actually needed?</p>
1
2
38
6
23476243
MarkOtaris
241
2014-02-17 03:11:33
<p>The description of method names and parameters used in the API dumps, in the object browser and in some places on the wiki use the ANSI prototype notation. In this notation, the default values of arguments are given after the name of the argument, separated from it by an equality sign.</p> <p>These default values in...
0
I want to make it so my deathGui doesnt show up when you score. How? (check bottom for more info)
1044877460
MariamOMG090
9
2023-02-16 01:33:26
<p>this script checks if a player is on red team when they touch a block then if that person is, the person gets one point. Then once that happens it makes a frame show up and kills all players. But I have a Gui that pops up when you die, I would like to make it so when it kills you after you score. The DeathGui doesnt...
133076
1
120171
0
559514967
T3_MasterGamer
2189
2023-02-16 08:31:49
<p>Okay I fixed my answer. Put line 20 after line 11 or just paste this code:</p> <pre class="brush: lua">local Players = game:GetService("Players") local Teams = game:GetService("Teams") local function killEveryPlayer() for _, player in ipairs(Players:GetPlayers()) do task.spawn(function() local ch...
0
How do I respawn models while still keeping the original model existing?
922412310
woodboiz
11
2021-06-11 16:16:38
<p>I'm sorry if this is a stupid question, (i'm very new to coding) but is there any way to keep an original model from getting deleted because the new model has to spawn?</p> <p>Here's the code:</p> <p>"model = game.Workspace.Cars.RedCar1 backup = model:clone() -- backs up the model so it can respawn</p> <p>while true...
124283
0
regen script that take your money wont work?
609694350
thedukke1
0
2021-04-08 07:52:11
<p>what im trying to do is making a regen script that takes away your money before it regens the part/model here is the script i made</p> <p>location = script.Parent.Parent.Parent regen = script.Parent.Parent save = regen:clone() local price = 5 -- The price of your item. local db = true script.Parent.ClickDetector.Mou...
122138
5
What is the 'creator' value?
5820674
woodengop
1134
2015-05-13 11:29:50
<p>I've seen in some ROBLOX Tools the value <code>'creator'</code>, what is it used for?</p>
17501
0
Very simple problem, hopefully someone can help me with it?
113108548
WoW_AWSOME
2
2018-02-04 14:50:22
<p>I need to add both some text and a value into the same textlabel. So, I have a countdown and I want to make the text label say, "(number) seconds remaining!" Does anyone know how do this?</p>
53149
0
RemotEvent firing but script not detecting it?
377679694
TheB4dComputer
100
2021-02-03 14:14:11
<p>I have a LocalScript, that, when it is run, will fire a RemoteEvent to a value. But the ServerScript I have written won't detect the RemoteEvent firing and change the value!</p> <p>Here are the two scripts:</p> <p>LocalScript</p> <pre class='brush: lua'>----------Change Value Non-Locally----------- local rem...
119577
2
109161
1
247991239
KixWater
126
2021-02-03 14:23:18
<p>This might help, first of all, in the local script, do:</p> <pre class='brush: lua'>local remote = game.ReplicatedStorage:WaitForChild("sendData") </pre> <p>And in the server-side script, when you send over the remote event, the first parameter is the player and the second is what you sent over from the local script...
0
How to make a player not die when they get down to 0 health?
1048659559
zandefear4
90
2019-11-08 05:08:59
<p>How would you make it so that once the player gets down to zero health, he doesn't die but drops on the floor or something? Is there a script that I would have to disable and then re enable? Is there a way to change its state if the player is dead?</p>
89752
3
83228
1
151545165
RiskoZoSlovenska
378
2019-11-08 17:28:25
<p>I think your best bet would be making a script that fires every time the humanoid's health changes (using the <code>:GetPropertyChangedSignal("Health")</code> function), and if it is 0, it sets it to 1 and makes the character ragdoll. You will have to make sure to disable the regen script and whatnot, but I see no r...
0
How do i make the NPC go faster on low health?
105098872
dylancrazy88
20
2021-06-09 01:48:27
<pre class='brush: lua'>if script.Parent.Minor.Health &lt;= 900 then script.Parent.Minor.WalkSpeed = 39 end </pre> <p>i used this script someone on this website gave me and IT DOESN'T WORK i need help (the humanoid in the npc is named Minor btw)</p>
124213
0
Im trying to make a camera effect when music plays, but this stops my sprint function, why?
86705930
YT_GamingDan
5
2021-02-22 20:24:20
<p>I'm making a camera effect where the FOV reacts to the music. I also have shift to sprint function which also changes the FOV, when both are running, the FOV for the sprint function doesn't work. I have tried placing variables to stop them running both at the same time but it still doesn't work. This is my sprint sc...
120528
0
Animation
28954751
ephraim1090
0
2014-02-19 20:34:53
<p>How do I create a roll with out using body properties like bodygyro etc, instead creating a flip with root joint.</p>
112
1
Part that Runs Script when Stepped On Makes Infinite Clones, Why does it do that?
327564249
BlazingFlame15
5
2021-10-07 02:14:19
<p>I've been trying to solve this issue for many hours but I cannot seem to find a working solution. I have a script of a part (script.Parent) that when stepped on, would run a command that clones a part in ServerStorage with its own script. The problem is that when you step on the part it makes infinant clones which i...
127806
0
when trying to play game it says rendering is paused for debugging why?
1744862730
Auqa_dash
1
2021-07-29 13:28:16
<p>when trying to play game it says rendering is paused for debugging why? here is my cash for kill script</p> <p>game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Folder",player) leaderstats.Name = "leaderstats"</p> <pre class="brush: lua">local Cash = Instance.new("IntValue",...
125845
1
114509
0
429417358
Bankrovers
226
2021-07-29 13:32:04
<p>If you press a line along your script there will be a red dot, you don't want it during testing and it will pause. Make sure you don't have any of these dots in your scripts.</p>
1
How do I use CharacterAutoLoads?
34103406
Silicti
40
2014-02-28 01:59:22
<p>I have a playable game and the script goes</p> <pre class='brush: lua'>game.Players.CharacterAutoLoads = false local server = script.Parent </pre> <p>note: This isn't the full script and when I enter the game it gets stuck on the Character Loading box</p>
346
0
Is there any way to change color of displayed name above model?
85800608
Gulgazar
65
2020-06-05 13:22:52
<p>I have npc units fighting for players in different teams. I want their names above like "Skeleton" will be same color as player's team, which unit fight for. What property should i use for that?</p>
105427
1
97141
0
168251041
ACHRONlX
255
2020-06-05 13:30:36
<p>You can create a custom BillBoard GUI above their name to change the colour.</p>
1
How do i make a server sided key detection or a client side one that can send info to the server ?
1044984225
datboyPiter
52
2021-03-15 17:11:25
<p>Hello I am making a game that requires me to press a button in order to close the menu but I want it to make changes in the workspace like turning a light on can someone help?</p>
121344
1
110552
2
62061300
AstrealDev
728
2021-03-15 17:23:04
<p>What you're trying to accomplish can be completed through the use of <a target="_blank" href="https://developer.roblox.com/en-us/api-reference/class/RemoteEvent">Remote Events</a>. These events allow the client to communicate to the server and vice versa. From the client you can call <code>:FireServer()</code> and p...
0
How do I make a car follow a path?
72175070
theshadowking45
0
2018-04-19 03:46:50
<p>Ok so I have a script that makes a car move but it goes too fast so is there a way to reduce the speed and also is it possible to make a car follow a path so it can go in circles.</p> <p>Here's the script:</p> <blockquote> <p>for i = 0, -100, -.1 do</p> </blockquote> <pre class="brush: lua">script.Parent:TranslateBy...
57069
0
How can I FIX INDEX NIL WHITH LEADERSTATS?
1048855448
oligamingthebest
2
2021-04-16 23:58:38
<p>it says in the output trying to index nil with leaderstats</p> <p>Local TycoonNumber = 1</p> <p>script.Parent.Touched:Connect(function(player) if player.Parent.Owner.Value == 1 then if game.Players.LocalPlayer.leaderstats.Money.Value &lt;= 0 then game.ServerStorage.Buyable_Items.Droppers.Dropper1.Parent = game.Works...
122466
2
111579
1
94006350
BulletproofVast
385
2021-04-17 00:28:14
<pre class='brush: lua'>Local TycoonNumber = 1 script.Parent.Touched:Connect(function(hit) -- this is not the player local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player.Parent.Owner.Value == 1 then if game.Players.LocalPlayer.leaderstats.Money.Value &lt;= 0 then game.Ser...
0
Is it possible to make a Brick Color picker?
57974758
littlemanrules426
0
2020-05-02 21:21:04
<p>I want to make a color picker gui where you can pick any brickcolor. I want to make a gui like when you click brickcolor in the properties tab. I've seen other games have a gui exactly like it. Down to the select outline. Is there some module or model I can use for this?</p>
101650
3
How do I move a GUI?
8869935
wattleman
90
2014-03-01 19:07:07
<p>How do I make a GUI come in from the right side and move, then go away?</p> <p>Current Position(Final Spot) {0, 0}, {0.5, 0}</p> <p>Current Size {0.400000006, 0}, {0.300000012, 0}</p>
400
2
5178
0
13650732
Tesouro
407
2014-04-27 22:19:56
<p>Tween is the best way, but if you can't use it (for any reason), make a loop. Repeat is a good alternative, an example:</p> <pre class="brush: lua">repeat gui.Position = gui.Position + UDim2.new(0, 0, 0.1, 0) gui.Size = gui.Size + UDim2.new(0.08, 0, 0.06, 0) wait() until gui.Position == UDim2.new(0, 0, 0...
0
How can i make menu button open and close a gui?
140347571
Loverainbow07
0
2022-09-11 19:47:09
<p>I am currently trying to make any form of a game in Roblox studios, yet I would like to allow when a button is pressed it will open a specific GUI and then when it is clicked again it will then close the same GUI.</p> <p>Here is the script that I have so far:</p> <pre class='brush: lua'><br />script.Parent.MouseButt...
131598
0
What are Local Variables?
206639588
fifayy
16
2020-04-22 23:17:01
<p>I was watching some scripting videos this morning and i don't know what local variables are this is how i do variables</p> <p>part = script.Parent</p> <p>and others do this</p> <p>local part = script.Parent</p> <p>Can someone tell me what the difference is and what local does?</p>
100346
2
92716
0
244452876
JesseSong
3371
2020-04-22 23:34:37
<p>Local variables are basically, variables that run on it own scope. And local variables are good practice to maintain code for global variables</p> <p>If you still don't understand click <a target="_blank" href="https://m.youtube.com/watch?v=cDDudR24ILw">here</a></p> <p>Also here's an practical example of using local...
0
Get ID from rbxassetid:// ?
186532095
Aimarekin
345
2018-02-10 23:08:38
<p>Hi. I am trying to get an integer from an rbxassetid://, but I need to figure out how do it. I tried this, but it doesn't work. I have no idea, would anybody help me out?</p> <pre class='brush: lua'>tonumber(string.sub(game.Workspace.Music.SoundId,string.len(game.Workspace.Music.SoundId)-(13))) </pre> <p>The script ...
53504
1
52725
0
8157504
GetGlobals
343
2018-02-10 23:25:21
<pre class='brush: lua'>local ID = game.Workspace.Music.SoundId ID = ID:sub(string.find(ID,"%d+")) print(ID) </pre>
1
how can i reflect rays for ray tracing?
953080013
Ariya1234gamer
15
2020-06-22 13:06:16
<p>i am making a ray tracing game and i dont know how i can create a ray to reflect.</p> <p>Here is my code</p> <pre class='brush: lua'>local Cache = script.Parent:WaitForChild("Cache") local Player = game.Players.LocalPlayer local Character = Player.Character local PixelSize = 20 local ViewPortSize = Cache.AbsoluteSiz...
107074
0
police lights should be on and flashing next time i click the lights button, but they stay off?!
1722430189
jeremqpmfpi
41
2022-05-06 05:08:25
<p>hi, I am making a working police lights, but I have a problem.</p> <p>the issue is that when i click the police lights button (line 49, line 52), the lights are off. i click the button again and the lights would stay off instead of turning back on and flashing, although this realistically should not happen. due to f...
129925
0
How can I create a script when you type in a Text and hit the Enter key something happens?
17514438
TheeDeathCaster
2336
2014-06-03 04:54:58
<p>The Title is part of the Question, how can I make a script when you type in a Text into a GUI's TextBox, like in Admin Commands, and it does something, if it doesn't involve a script I'm so sorry for posting this question.</p>
6103
1
8113
1
33553423
Ekkoh
635
2014-06-03 14:49:28
<p>You'd use the <a target="_blank" href="http://wiki.roblox.com/index.php?title=FocusLost">FocusLost</a> event of a TextBox.</p> <pre class='brush: lua'>TextBox.FocusLost:connect(function() print("Text: " .. TextBox.Text) end) </pre>
0
How do i kill the player using ClickDetector?
385960399
Artemiygogolev
23
2023-03-25 15:53:27
<p>So ive been trying to make a part kill you using clickdetector by myself first, but all my attempts were unusuccesful</p> <pre class='brush: lua'>local players = game:GetService("Players") local ClickDetector = game.Workspace.clickpart.ClickDetector local clickpart = script.Parent clickpart.ClickDetector.MouseClick:...
133239
1
120281
1
2044258372
MaleficentMaestro
109
2023-03-25 18:40:47
<p>Your mistake is in line 6. 'Hit' is actually Player, so you don't need line 6.</p> <p>This should work:</p> <pre class='brush: lua'>script.Parent.ClickDetector.MouseClick:Connect(function(plr) plr.Character:FindFirstChild("Humanoid").Health = 0 end) </pre>
0
When a zombie touches a part which makes GUI visible, it makes it visible for everyone?
153122776
itsmtninja
11
2022-09-19 20:01:32
<p>Directory: Game.StarterGui.ScreenGui.LocalScript</p> <p>The script below is in LocalScript:</p> <pre class='brush: lua'>script.Parent.Frame.Visible = false local brick = game.Workspace.shop local player = game.Players.LocalPlayer brick.Touched:Connect(function(hit) if hit and hit.Parent:FindFirstChild("Humanoid"...
131676
1
118924
0
1383341245
SprinkledFruit101
135
2022-09-19 23:42:38
<p>Good day, hope you are doing well.</p> <p>Basically, I think the issue is happening because you are connecting the touch event to the brick itself. This means that the event fires, when <strong>anybody</strong> touches the brick.</p> <p>Instead, you have to check if that individual player touched that brick.</p> <pr...
0
&iquest;Is there a way to clone and set the position of a MODEL?
445503653
JPINAG98
2
2018-04-17 02:58:56
<p>Hi, so i´m just starting to code with LUA and Roblox and I am making a racing game in which the player will select in the beginning from a GUI which car they want to ride (yellow, red, blue, etc), but in this specific script I just want to do the test with the yellow one.</p> <p>The problem that I have is that many ...
56982
1
55674
0
64291305
uhTeddy
101
2018-04-17 03:06:28
<p>The one way you could do it is by adding a PrimaryPart in it. Once you do that cloning the model and positioning will be easy</p> <p>just use :SetPrimaryPartCFrame()</p> <p>When I do this I add parts the same size as my primary and add them were I want to position it and set the CFrame to that parts Position.</p> <p...
0
How do I make a button that turns off and on all particle emitters in my game?
67596546
CatmanErik
8
2016-08-09 22:46:31
<p>I want to make a button that when you click it, it turns off particle effects and turns them on if you click it again. I have no idea how to though and I would like the responses to be descriptive like tell me what scripts to put in each part and etc.</p>
34341
2
37033
0
75226811
Winseven4lyf
30
2016-08-10 05:16:26
<p>I made this script to delete all my fixers in my game.</p> <pre class='brush: lua'>repeat wait() until game:GetService("ContentProvider").RequestQueueSize == 0 function RecursiveGeneric(Parent, Func, ClassLimit) for _, Child in pairs(Parent:GetChildren()) do if not ClassLimit or Child:IsA(ClassLimit) the...
0
How would I make a weapon hitbox that does constant damage over time?
696918990
Creature_Horns
4
2023-02-17 21:58:50
<p>Alright so I got this tool right? I'm trying to make it so that when its activated if a player/enemy is in a certain distance it'll make them take damage constantly.</p> <p>I've tried using things like Ontouch and Touched events but they don't seem to be working properly. They kinda just damage them once and never a...
133085
2
120179
0
158811
TGazza
1336
2023-02-18 12:53:43
<p>You already have half the code, just use your table in an loop Something like:</p> <pre class='brush: lua'>local DebounceTable = {} local StartTime = tick() local HurtTimeTick = 0.0 -- change this to how quick or slow you want it to hurt them while true do local NowTime = tick() local DTime = NowTime - Start...
1
How can I get an image id from a decal id?
62822891
ThatChristianGuy
27
2019-06-27 18:19:22
<p>So let's say a player wants to put this decal somewhere in a game: <code>https://www.roblox.com/library/3372561114/--</code></p> <p>They input the assetid into a TextBox: <code>3372561114</code></p> <p>I put that assetid on a decal</p> <pre class='brush: lua'>SomeDecal.Texture = 'rbxassetid'..3372561114 </pre> <p>Bu...
82568
0
What is wrong with my Encryption script?
17514438
TheeDeathCaster
2336
2014-07-10 02:15:03
<p>It isn't working, and I don't understand what the Output means. Here is the script;</p> <pre class='brush: lua'>function Encryptor(Encrypt) local String = "" for i = 1,Encrypt:len() do String = String..string.char(92)..Encrypt:sub(i,i):byte() end end wait(5) local cl = script.ScriptBase:Clone() cl.Code.Value = Encry...
7876
0
How do you hide the ROBLOX Playerlist?
17030889
nilVector
812
2014-04-22 03:53:23
<p>I've seen many places use this feature, and I decided I wanted to create a script myself on hiding the ROBLOX core GUI. The problem is I do not know how to even get started with it. How would I start off the script to hide the ROBLOX playerlist?</p> <p>Thanks in advance.</p>
3250
2
4539
2
32061655
Mr1Vgy
30
2014-04-22 04:08:33
<p>Do this:</p> <pre class='brush: lua'>game.StarterGui:SetCoreGuiEnabled("PlayerList", false)--sets playerlist to off </pre> <p>Put this in a local script^</p>
0
Do roblox servers reset where there are no players in it?
647134603
FirezoneGamez
160
2018-08-10 01:55:24
<p>I don't know if I have to make all the scripts and parts reset or Roblox already does that when there are no players</p>
65106
1
63101
0
34273581
funface101
45
2018-08-10 01:58:00
<p>Roblox servers do close and reset once everyone leaves. This question has nothing to do with lua, however.</p>
0
Google form response empty?
178739247
CocoDysphoria
67
2023-03-14 05:11:49
<p>Trying to make use of httpservice and google forms for a roblox game I got httpservice able to send a successful response to a google form, but when I check the response, all the answers are empty</p> <p>For reference here is the current code</p> <pre class='brush: lua'>local descriptionEntryId = "entry.595603189" l...
133186
0
Why does my models just fall?, it's NOT connected
1401808819
EnderCraft8163
2
2023-01-17 20:35:20
<p>Like that, i created some weapons models and they all just fall, nothing is "connected" Pls help aaaaah</p>
132879
2
120008
0
433962773
theking66hayday
757
2023-01-17 21:25:39
<p>You need to anchor them or weld it here is a <a target="_blank" href="https://www.youtube.com/watch?v=Ym_0znUFc28">Tutorial</a> on how to anchor it Hope this helps!!</p>
1
My automatic gun will not work?
303357794
ColdFoxy07
24
2021-06-10 17:05:44
<p>So here's the deal; I tried making an automatic gun but failed. If I hold my mouse button it will work how I intended, but as soon as I spam the gun it shoots extremely fast. Is there any way fix to this? Any answer is appreciated!</p> <p>Script (You might have to press view source for this one):</p> <pre class='bru...
124250
0
Animation speed adjusting is not working. What's wrong?
3323648
luachef
61
2018-07-09 18:19:39
<p>so im basically using the :AdjustSpeed() function in a serverscript and it does not work.</p> <pre class="brush: lua">--not the full script local animation = hum:LoadAnimation(character.Animation) animation:AdjustSpeed(3) animation:Play() </pre> <p>what's wrong?</p>
62272
0
How to use GetAllchildren?
476081498
BuzzKillGT
33
2019-02-08 11:47:36
<p>I'm trying to make a script that effects all the children of a parent because I don't want to use too much scripts parented in a part, but I got confused on how to use GetAllChildren. I tried to name all the parts in the model, "Part" but this script located in the model only effected 1 part. Here is a script in the...
75871
0
Why when I die, the walkspeed does not save?
1527823663
kickoff127
15
2020-12-31 12:57:55
<p>So I made a script saying if you have one coin, walkspeed is = 21</p> <pre class='brush: lua'>local players = game.Players.LocalPlayer script.Parent.MouseButton1Click:Connect(function(Click) if players.leaderstats.Coins.Value &gt;= 1 then players.leaderstats.Coins.Value = players.leaderstats.Coins.Value ...
117947
1
107929
0
183198803
MLGwarfare04
87
2020-12-31 14:33:45
<pre class='brush: lua'>local players = game.Players.LocalPlayer local thews = "something idk make it a numvalue" script.Parent.MouseButton1Click:Connect(function(Click) if players.leaderstats.Coins.Value &gt;= 1 then players.leaderstats.Coins.Value -= 1 players.Character.Humanoid.WalkSpeed = 21 ...
1
attempt to call method 'Kick' (a nil value)?
15438711
pwx
1581
2019-03-07 11:02:13
<p>I recently got this error whilst practising splitting up strings into commands (I understand this probably isn't the best method when splitting up strings, but it's a start).</p> <p>Anyway, I get this error:</p> <p>https://gyazo.com/31c6308b205160edc320c178eb3b55a5</p> <p>I'm not entirely sure what's wrong with it, ...
77352
1
72551
0
61314603
Programical
653
2019-03-07 14:00:09
<p>The return value of the <strong>getPlayer</strong> function is a table of players, and not a player. You can't call <strong>Kick</strong> on a table. There cannot be several players with the same name, so you should just return the first match.</p> <p>Instead of <code>table.insert(returned, v)</code> just <code>retu...
0
Can anyone make tool automatically destroy few seconds after dropped?
1278373316
RB_makers
0
2022-11-13 05:14:25
<p>I need a local script that automatically despawns the tool 5 seconds after it dropped. and if someone grabs it before 5 seconds, it needs to remain.</p> <ul> <li>need to work on every tool if I just put the script in any tools.</li> </ul> <p>can anyone make a script that works that way?</p>
132262
1
I put a string as a value for a material and it didn't work. What's wrong?
771169375
Figureth
7
2019-08-13 13:28:27
<p>So my friend Max loves to script, so I made this model for him. This is the only script inside and there is something wrong. The problem is at Line 26. I need help figuring it out!</p> <pre class='brush: lua'>local function newpart() local boss = script.Parent.Parent --The model that the script is inside local n...
85672
1
79496
0
849928642
JexaButterscotch
73
2019-08-13 13:51:03
<p><strong>If this answer helped you please make sure you accept it!</strong></p> <p>The only problem is see is that your math.random has a maximum of 21, but you only added 20 materials. Try changing the m to math.random(1,20).</p>
1
How do I check when a RemoteEvent has been fired?
201459593
iiPizzaCraver
72
2020-04-04 16:50:32
<p>I have never really understood how events work and now I need to use them and I have no idea how to check for when an event has been fired.</p> <p>When Intermission ends in my main script, I want music to play which will be controlled from another script. It will call the function and the function is literally just:...
98106
2
90591
1
238676679
ChrisTheRobloxPlayYT
256
2020-04-04 17:04:53
<p>If i am correct i believe you want to listen for the the remote being fired in a script.</p> <p>If you wanna fire a remote from <code>client to script</code> and let the script receive that request then you would have to create a script, and add this code.</p> <pre class='brush: lua'>game.ReplicatedStorage.RemoteEve...
1
How does pcall, xpcall, and ypcall actually work?
491970127
FrindowYT
321
2019-12-14 03:12:54
<p>I've seen previously in the past the uses of the pcall variations; however, some don't appear to work, and sometimes, to me, they don't work (at all).</p> <p>One usage I've seen is the following:</p> <pre class='brush: lua'>1 local player = game.Players.LocalPlayer 2 3 pcall(function() 4 player.PlayerGui.S...
91345
1
Example usage of JSONEncode?
71510352
EmK530
143
2021-10-21 06:52:54
<p>I've never really had a use for JSONEncode (function in HttpService) but I felt like figuring out how it was used incase I might need to know it in the future so I wanted to test if someone on ScriptingHelpers knew the answer.</p> <p>Thanks!</p>
127930
1
115916
1
110029109
loowa_yawn
383
2021-10-21 16:28:19
<p>Hiya, <strong>JSONEncode</strong> is useful for transforming a Lua table to a JSON object or array.</p> <p>Although there are limits to this function.</p> <ul> <li>Keys of the table must be either strings or numbers. If a table contains both, an array takes priority (string keys are ignored).</li> <li>An empty Lua t...
0
Is there a way to prevent a spawn delay (no script provided)?
103919802
TheBuliderMC
64
2020-09-21 02:59:05
<p>This question doesn't provide any code, I tried searching for the answer and I got nothing. My game has a weird spawn delay as the server gets older and I can't figure out why it's doing that. No spawn stuff has been affected, CharacterAutoLoad is enabled, I don't know what is causing spawn delays.</p>
113438
0
How do I change picture next to leaderboard name if I'm in a certain group?
29229531
SNOWST0RM
0
2014-04-16 14:34:30
<p>Like when BC Players are in game, they have the BC helmet next to them and when a ROBLOX Admin enters the game they have the ROBLOX R. How can I change this to the picture to the group's logo? And how do I make one division higher then the other, so the highest one is shown if you're in more than one.</p>
2154
1
How do I rotate a mesh to fit a tool handle?
1650537
pigpoop187
10
2014-04-16 13:01:55
<p>I want to make it so that instead of being rotated downwards when held, the mesh is facing upwards... How would I rotate this mesh? Sorry if it's a stupid or easy to fix question.</p> <p>Thank you.</p>
2140
0
How do i make a car spawner?
609694350
thedukke1
9
2021-04-07 13:12:18
<p>But the car cost money and if you dont have enough it wont spawn</p>
122111
2
I don't understand why this doesn't work, can someone tell me why it isnt working?
12014954
Tempestatem
884
2014-05-25 21:30:32
<pre class='brush: lua'>game.Players.PlayerAdded:connect(function(plr) plr.CanLoadCharacterAppearance=false plr.Character.Humanoid.WalkSpeed=(0) wait(25) plr.Character.Humanoid.WalkSpeed=(40) end) </pre> <p><strong>Output:</strong></p> <p><em>Workspace.Script:3: attempt to index field 'Character' (a nil...
5528
1
7420
6
17514438
TheeDeathCaster
2319
2014-05-25 21:36:33
<p>Sorry if this doesn't help.</p> <pre class='brush: lua'>wait(0) game.Players.PlayerAdded:connect(function(plr) plr.CanLoadCharacterAppearance=false repeat wait(0)until plr.Character --I usually use that because it will repeat wait(0) until the player's Character has loaded or exists finally, until then the script pr...
1
Why is the Instance Sort not being removed in this table?
103833540
deeskaalstickman649
388
2021-02-13 12:31:39
<p>I'm trying to remove 3 Instances from this table, the Script and two parts named Base and Sort individually, however in the first loop, the Instance Sort is ignored, for whatever reason. But in the second loop, the Instance Sort is included. I'm really confused. I thought that maybe the game didn't fully load yet, a...
120081
1
109591
1
754480402
sleazel
1207
2021-02-13 14:12:42
<p>First and foremost you should use <code>ipairs</code> instead of <code>pairs</code> for arrays, as <code>pairs</code> is not guaranteed to iterate in order. However that is not what is causing an issue here.</p> <p>Problem is with <code>table.remove</code>. What it is doing its removing an element from the table and...
0
When I started a new project today a popup happened, what is this?
103466946
kimbriel
19
2020-06-17 02:01:24
<p>When I started a new project today a popup happened saying some features can't be used, what is this?</p> <p>How do I prevent this from happening and it is preventing me from using IntValues how do I transport my project easily?</p>
106601
0
Help with this?
6886941
painzx3
43
2014-04-29 20:55:58
<pre class="brush: lua">Weapon = game.Workspace.Lighting.Musket script.Parent.MouseClick:connect(function(PlayerClicked) Weapon:clone().Parent = Player.Backpack script.Parent. end &lt;== end script.Parent.MouseClick:connect --Currently under ClickDetector (should I ungroup it w/ the ClickDetector or keep it with it...
3923
0
Converting 2 datastores into 1?
536049572
NiroTurtle
75
2020-09-14 05:35:17
<p>So I have a game and it saves 2 number values. You see, I was ignorant enough to not realise I should save both values into one datastore, so I saved the 2 values in separate datastores. Now, when I need to save something else, it overflows and doesn't save. So, how can I fuse the 2 datastores into 1 and save the va...
113150
1
Is there away to run a command in studio to remove scripts all at once??
433962773
theking66hayday
841
2022-12-29 16:32:22
<p>I'm trying to remove all my scripts in my game. The issue is that there are so many I'm wondering if I could run a command to delete the scripts in studio using Run a command??</p>
132696
2
119817
2
1491184861
666_brithday
103
2022-12-29 16:53:31
<p>hi, its not the easiest thing just put this in the command bar.</p> <pre class='brush: lua'>local services = {"workspace", "ReplicatedFirst", "ReplicatedStorage", "ServerScriptService", "ServerStorage", "StarterGui", "StarterPack", "StarterPlayer", "Teams"} for _,service in pairs(services) do if game[service] th...
0
Block in my block placement system is cloning when it's not supposed to. Why?
469500873
poppyloverb
20
2023-03-17 22:48:37
<p>I have currently followed TheDevKing's tutorial of the block placement.</p> <p>https://www.youtube.com/watch?v=hEqdq9VXfT4</p> <p>The problem is, whenever I attempt to place this block, it always clones. Why?</p> <p>I may show you my scripts.</p> <p>StarterGui > MainGui > StructureHandler (LocalScript)</p> <pre clas...
133207
0
I know it isnt much, but what does DistributedGameTime Do?
972745598
ABChellos
2
2019-08-15 00:32:02
<p>I just want to know. I Hope this isnt againt rules or anything because i just want to understand. not the best at making games XD</p>
85826
0
Making a model train follow placed track?
52878194
iiLevelMaker
111
2020-08-01 11:06:49
<p>Hello,</p> <p>I am working on a Tycoon game with a placement system that allows players to place models. I want the players to be able to place rails and then buy a train and place it on a specific track so the train follows the track.</p> <p>I have 2 track pieces. (Straight, Turn). I have heard of making it tween b...
110456
0
How would I make a sliding gui?
11808841
blowup999
647
2014-02-20 12:23:04
<p>I've seen games where you put your mouse over a gui and then a bunch of guis slide from the side into your screen. How do you do that?</p>
158
1
293
3
4030068
jobro13
980
2014-02-20 12:42:24
<p>There is a really simple function for that which is in the roblox API itself. It's name is <code>TweenPosition</code>. The only argument you need there is the Position where the GUI should "tween" (interpolate) to. You can also add further parameters to edit the style of this animation.</p> <p>The wiki article has s...
0
Morph occurs to all players. How do I fix this?
149094523
Crimsonknightzone
38
2021-02-22 02:19:07
<p>I'm making a zombie tag-esque game and I am making the base code for being turned into a zombie. I made a trigger for it and it works with one problem: All people in the server are changed into a zombie. I am doing this server side so other players can see the change by the way.</p> <pre class='brush: lua'>game.Repl...
120493