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
1
How can I kill all players at once?
500693529
Hydroxygen4Humans
35
2018-12-09 18:26:24
<p>I want to kill everyone at once.</p> <p>I have this so far:</p> <pre class='brush: lua'>game.Players.Health = 0 </pre> <p>doesn't work though</p>
71975
2
68207
1
148020737
Oxygen4Lyfe
408
2018-12-09 18:28:24
<pre class='brush: lua'>local function killEveryone() local allPlayers = game.Players:GetChildren() for i = 1, #allPlayers do allPlayers[i].Character.Humanoid.Health = 0 end end </pre>
3
[SOLVED] How can I 'match whole word only'?
157510912
General_Scripter
425
2016-10-28 11:48:30
<p>Most audios that have been amplified have 'loud' in the title. I have a boombox and I want to prevent these audios being played. I have made it so that if it finds 'loud' in the title or description then it gets refused. The ROBLOX studio search (CTRL+F) lets you search for a whole word only so it can't be included ...
36661
0
Could I use table.insert to create a dictionary?
2900811
Vrakos
109
2014-04-16 10:50:11
<p>If so, then how? I'm really stuck. :(</p>
2121
2
2823
3
56710551
Archonious2
160
2014-04-16 11:55:48
<p>Well, first you would need to create a table to collect all the words in. Next you would need a function to add words into it, you would probably create a table for two values, the word and the definition. Then create a function for finding definitions, so loop through the table checking the word and then return the...
0
Is it possible to blur a players screen on death?
207152335
GottaHaveAFunTime
218
2018-01-05 02:56:42
<p>I am trying to blur certain players screens on there death or something else.</p> <p>Whenever I use a blur since lighting is server side it does the same thing to all players. So when 1 player dies it replicated the blur effect to everyone.</p> <p>Does anyone have any tutorials or know any that may be able to help m...
51606
3
51273
1
841509
WillieTehWierdo200
966
2018-01-05 03:58:24
<p>I'm a bit late to the party, but here's my solution. It works similar to Godlydeathdragon's script, but it uses a Tween to gradually fade the blur. It also includes 2 options to set the delay before the blur starts fading in after death, and the duration of the fade-in. Just like Godlydeathdragon's script, this shou...
0
Strange Error With My Script Saying &quot;attempt to compare function and number&quot;?
1376520512
Magicdevice3
28
2021-02-23 19:20:20
<p>So I Am Making A System That So When The Time Is Night Music Plays And Stop When Day But I Get The Error Of "attempt to compare function and number" The Error Is On Line 8</p> <p>Note: This Is The Stop Script</p> <p>Here Is The Script:</p> <pre class='brush: lua'>local crickets = script.Parent local Tim = game.Light...
120574
1
109934
1
327901308
MOREHOURSOFFUN
74
2021-02-23 21:21:09
<p>You seemed to have made a spelling mistake, you are comparing your variable 'Time' and the built-in Roblox Function 'time'</p> <pre class='brush: lua'>local crickets = script.Parent local Tim = game.Lighting.ClockTime local Time = Tim tonumber(Time) game.Lighting.Changed:Connect(function(property) if property ==...
0
Generate 3D perlin noise octaves into workspace.Terrain not working?
1670764
Elttob
15
2014-05-18 14:35:15
<p>After looking this up in countless places, I've got some base code down, but it simply crashes my Roblox Studio. So obviously it's not working.</p> <p>After debugging to no avail, I decided to try and find an answer here. However, I did find out that the Noise Generators were fine, but the errors came in the script ...
5044
0
How can i copy a third-person animation into a first person rig that follows the camera?
929847335
TheDude646
49
2022-06-22 22:43:45
<p>i'm animating a gun for my game, and i have a bunch of 3rd person animations but i want the animations to follow the camera in 1st person without needing to make and animate an entirely new rig. any suggestions?</p>
130470
0
Keyboard input detection for arrow keys?
28410786
AlexTheCreator
460
2018-05-11 12:30:15
<p>When detecting keyboard inputs i usually use scripts similar to the small example below:</p> <pre class='brush: lua'>function PressQ(key) if key == "q" then... end mouse.KeyDown:connect(PressQ) </pre> <p>but I'm wondering what I should replace the "q" on the second line with to detect the down arrow bein...
58273
0
Widget unable to get input in a textbox, instead prints the text set before the plugin was saved. Y?
200607059
aguywhosaguy
2
2022-05-02 21:37:44
<p>I was trying to make a plugin with a widget that inserts objects into a gui thingy I'm making, (unrelated) which uses 3 frames and textboxes to get user input. The frames can and are inserted into the widget, however when I try to get the user input from the textboxes, all I get is the text values from when I first ...
129896
0
Having trouble with a KeyDown function
6795437
ChosenDreamer
5
2014-02-17 22:29:43
<p>It is supposed to tween a GUI onscreen when you press 'h'</p> <pre class='brush: lua'>g = script.Parent f = g.Frame p = game.Players.LocalPlayer m = p.GetMouse() function help() m.KeyDown:connect(function(key) if Key:byte() == 104 then f:TweenPosition(UDim2.new(0,100,0,250)) end e...
48
4
101
1
4030068
jobro13
980
2014-02-17 22:31:29
<p>On line 9, <code>Key</code> is nil, while <code>key</code> is not.</p> <p>Change Line 9 to: <code>if key == "h" then</code>. I personally prefer to use characters themselves in those cases, as it is more readable.</p>
1
Doing things by chance rather than math.random?
41100413
BSIncorporated
640
2015-07-13 00:31:56
<p>Let's say I had a block, and I wanted that block to be made into a random color. But I would like some colors to be more likely than others (this done accomplished through a table).</p> <pre class='brush: lua'>Purple_Chance = 20 Blue_Chance = 50 Red_Chance = 30 --paint block based on chance </pre> <p>Any help is app...
19757
1
23343
8
386992
BlueTaslem
18071
2015-07-13 00:54:08
<p>As <strong><a target="_blank" href="https://scriptinghelpers.org/questions/16179/is-it-possible-to-pick-something-random-besides-mathrandom-exp-string-players-etc">mentioned here</a></strong>, the <em>only</em> randomness facility in Lua is <code>math.random</code>.</p> <p>What you are asking for is called <strong>w...
0
how to use velocity in two axes at the same time (X and Y axis) ?
1739689185
MatiasHarders
0
2021-02-01 02:37:55
<p>Hello, I would like to know how to use velocity in two axes at the same time (X and Y axis), the idea of this is that when a ball collides with the box the ball is thrown with the velocity in the X and Y axis.</p> <p>How could I do that?</p>
119476
2
is there a script where when i kill something i get 10 coins?
159636940
RareBIue
133
2020-06-05 13:25:24
<p>Like I already have build my game but I need help on making where when I kill something it gives 10 coins.</p>
105428
0
How would I make this ban system work correctly?
136245173
SharkRayMaster
81
2022-09-23 13:37:41
<p>So I've made a server ban system, <strong>and before everyone mentions it, I know this is not the best way to make a ban system</strong>, but In this case this is how i wanted to do it, so...</p> <p><em>how the ban system works is:</em></p> <blockquote> <p>The ban command kicks the desired player, and to prevent the...
131692
0
Why is this local script not detecting the change in this module script?
514876287
BlankPeep
0
2021-02-21 03:44:29
<h2>So infection game right? I need a table to store all infected characters. I create a module script in ReplicatedStorage ( the local script in StarterPlayerScripts needs to access the table as well) to store a table and make the regular script to set characters in the table to true when they're infected.</h2> <p>loc...
120449
0
Confusing error Well i dont get as much someone tell me the errors?
1588318410
24klilzcope
0
2023-01-14 00:25:33
<p>local part1, part2 = workspace.part1, workspace.part2 local Red = workspace.Red</p> <p>while true do Red.Humanoid:MoveTo(part1.position) Red.Humanoid:MoveToFinished:Wait= () wait(3) Red.Humanoid:MoveTo(part2.position) Red.Humanoid:MoveToFinished:Wait= () wait(3)</p>
132827
3
Maintaining an equivalent distance UDim between differently Sized GUIObjects #2?
74087102
Ziffixture
6785
2019-01-10 15:22:48
<p>Hello again, thanks to a great suggestion on my recent issues, I'm now trying to configure everything to work with this method, at the moment I'm trying to use <code>TextService</code> to get going, and one thing I'm trying to print for validation is <code>TextService:GetTextSize()</code>, I believe I've formatted t...
74199
0
Help with UserInputService? It's also a LocalScript.
123585026
NykoVania
231
2022-10-15 20:24:31
<p>There is a folder in the Character named LocalConditions with 2 BoolValues, Forward and Back. Forward is supposed to be set to true when W is being held and set to False when let go, neither values get set to true or change, any help?</p> <p>Edit: There are no errors in output</p> <pre class='brush: lua'>local Playe...
131928
1
119150
0
136245173
SharkRayMaster
265
2022-10-15 21:39:10
<p>How does this not work?</p> <p>I tried it myself and It works just fine...</p> <p><code>(gif): https://gyazo.com/0004e855d591856a00144ccda2d80010</code></p> <p>Are you sure your LocalScript is located in StarterPlayerScripts?</p> <p>And btw keep in mind changing these values with a <code>LocalScript</code> won't rep...
0
SF gamepass
2197987
omarz123
5
2014-02-23 04:27:55
<p>Ok so I have a Sword Fighting Tournament game and I have a gamepass that give's you a special sword if you have it, well it's like TheGamer101's Krimson Katana game pass. So anyway I was wondering how to make it so that you don't get the sword until the game start's can anyone show me please?</p> <pre class='brush: ...
245
0
attempt to index nil with 'WaitForChild', with HumanoidRootPart.??
79523404
snipperdiaper
120
2022-05-03 23:32:15
<p>What i am trying to achieve:</p> <p>In this script I am trying to spawn a part on the Cframe of the characters HumanoidRootPart</p> <p>The problem: Keep getting an error message I dont know how to fix. "Players.snipperdiaper.Backpack.Tool.LocalScript:4: attempt to index nil with 'WaitForChild'"</p> <p>Anyone know wh...
129906
1
117366
2
559514967
T3_MasterGamer
2189
2022-05-04 06:12:26
<p>always put local before each variable and change the <strong>character</strong> variable to this:</p> <pre class='brush: lua'>local tool = script.Parent local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local...
0
How can I get started with C-Framing? Is there a Secret?
57355227
Dustycup
0
2014-04-15 08:02:29
<p>I'm eager to build on ROBLOX, but I one thing that comes up a lot that I need in my builds is C-Framing. I've attempted, but I could never seem to get the hang of it. Is there some sort of trick to it? Or is it just natural skill? If anything can be answered here it would be very much appreciated. I could be using w...
1563
0
How do I reset CFrame.Angles?
1123550737
1GlF
42
2018-12-26 08:16:17
<p>So basically, what I'm trying to ask is how am I supposed to "remove" the CFrame.Angles rotation that I put on the part before. So for example I put something like "part.CFrame * CFrame.Angles(0,0.3,0)", but I don't want to do it by doing "part.CFrame * CFrame.Angles(0,-0.3,0)".</p>
72989
0
Use something else rather than Wait()?
129984025
JP_Pontes
5
2023-01-15 19:24:12
<p>So, im doing a script for a logic gate, that the player will be able to choose from delay and hold (i dont know if i will add more later). And the code is the following:</p> <pre class='brush: lua'> if FT == true then -- FT is the status of the input (true or false) ACTIVE = true -- prevents plr from chan...
132850
0
In pairs loop only looping once when it should be looping several times?
143096970
Rayguyban2
76
2020-12-07 01:33:27
<p>I was trying to make a game that when you click a button it gives you a random number based on your level which is the Output and you had to hit the goal from a random generated number, so I tried to do a in pairs loop to get all of the Outputs at once, but it only generated a number for one Output. I also printed t...
116862
2
107153
0
1332480
abrobot
44
2020-12-07 02:48:35
<p>you are looping through the descendants of script.Parent.Parent.Frame. what I get from the information you have provided is that inside the Frame there is a UIGridLayout. when you start looping through frames children it gets to UIGridLayout and then trys to make UIGridLayout aka v = randomizer like on line 20 (v.Te...
0
New Generative AI, it doesnt work. It is on in beta features. Any possible reasons?
475906491
CookieTheElfy
0
2023-03-22 03:56:02
<p>The new generative AI in roblox is enabled, and it does not work. What could be causing it</p>
133226
0
Why can't I add anyone to Team Create?
29596046
fathawks
4
2020-03-18 00:01:58
<p>I've done Team Create with my brother a million times but for some reason I can't find the text box to add him. https://gyazo.com/135e2ce275ec83a1b25d849de4dd3cbb I don't know if I'm being stupid or something but I seriously can't find it.</p>
96322
2
89011
0
1169362290
iiMxtt_Destinyii
62
2020-03-18 00:05:26
<p>You need to go into Home -> Game Settings -> Permissions then enter his username into the box. This is the way mine is too.</p>
4
How do I make if someone name is something the rest of the script is denied for them? Found out how
49352468
fireboltofdeath
630
2014-04-16 04:11:38
<p>I wanna make a chat gui When I try to make a (Owner) at front for me It double posts so I am trying to make it cancel the first one for my player Then make the one with (Owner) start</p> <p>I tried using ifplayername = player.Name == "fireboltofdeath" then I put ifplayername = false But when I added if ifplayername ...
2070
1
2800
1
4237805
mark1516
25
2014-04-16 10:11:04
<p>im not sure what your trying to say but if you want a script to only run for one player then you could do something like this</p> <pre class='brush: lua'>player = game.Players.LocalPlayer if player.Name ~= "fireboltofdeath" then script:Destroy() end -- rest of code here </pre>
1
How do you randomize a for i,v in pairs loop?
59147156
TheOddyssey
9
2018-12-03 00:00:28
<p>So, basically, I have this module script that, whenever called, it creates a set of teams and assigns players to them. However, it utilizes a for i,v in pairs loop to do this, which means the teams aren't really random at all. Simply because it inserts v (The player) into a table and always runs that same table ever...
71547
1
67898
1
32201999
Vmena
87
2018-12-03 00:14:09
<p>You would have to send all the values into a table and then randomize that table.</p> <p>Randomizing an array can be quite tricky but the fisher-yates shuffle algorithm is efficient and should work just fine. <a target="_blank" href="http://">https://en.wikipedia.org/wiki/Fisher–Yates_shuffle</a></p> <p>Here's the c...
0
How do I connect a team spawn with a group rank?
689433817
l7mf
2
2020-01-06 21:00:13
<p>How can I connect a spawn with a team? Like, how can I script it so that when a player joins if he's in the group and e. g. rank 2, he'll spawn as "Passenger", if he's rank 200 he'll spawn as "Management Director". Please help.</p>
92673
1
85750
0
148527490
manith513
101
2020-01-06 23:48:48
<p>I am not exactly sure what your variables are but I will give it my best shot.</p> <pre class='brush: lua'>local groupId = 2723362 --paste the id of the group in here-- local passenger = Instance.new("Team", game.Teams) passenger.TeamColor = BrickColor.new("Really Red") passenger.Name = "Passenger" passenger.AutoAss...
0
How would I go about making this only check for friends at a certain place?
69393853
PatheticallyChildish
4
2021-06-07 08:38:00
<p>I found this script on a youtube video, yes I know that is probably not the best, but I am still learning about teleport service. Anyway I am confused on how to make it so the script only searches for friends in the same place/game. I have tried changing a couple things but that just broke the script, so can I get s...
124162
0
I need help with a script that will reward the player with points (not player points) ?
12132870
Prioxis
673
2014-04-30 01:43:19
<p>here is my script its for whenever someone touches a brick it'll reward the player with 5000 points but theres a error with the code heres the script</p> <pre class='brush: lua'>local Player = hit.Name -- Error in script... function onTouched(hit) game.Players.Player.leaderstats.Points.Value = game.Players.Player.le...
3961
2
5440
1
23458734
Hybric
271
2014-04-30 01:48:07
<pre class='brush: lua'>function onTouched(hit) local Player = hit.Parent:findFirstChild("Humanoid") if (Player ~= nil) then game.Players:findFirstChild(Player.Parent.Name).leaderstats.Points.Value = game.Players:findFirstChild(Player.Parent.Name).leaderstats.Points.Value + 50000 end script.Parent.Touched:connect(onTou...
1
Strange Method Problem
30399843
Protoduction
216
2014-02-25 17:06:31
<p>I'm making a Terminal and you have to touch a part to activate it. I know why my code isn't working - It's because 'playername' isn't a child of Players. What I am trying to do is make the part that touched the capture point be put into a string and the value of the string is what is searches for in 'game.Players'. ...
294
2
536
3
39760131
Hippalectryon
3
2014-02-25 17:11:21
<pre class="brush: lua">cap = script.Parent playername = script.Parent.PlayerName -- no while here, due to how events work cap.Touched:connect(function(player) playername.Value = player.Name local Touchy = game.Players:findFirstChild(playername.Value) -- use the FindFirstChild method if not Touchy then print('No player...
1
Having troubles with humanoid's being invincible. Any help?
491486
firedum
5
2014-04-13 03:08:21
<p>I am creating a NPC I'm having the problem that it's currently invincible. I ripped my coding out from another NPC and replaced some things (I hardly have any idea what I'm doing) and didn't seem to get it to work.</p> <p>The Humanoid is named NPC.</p> <pre class='brush: lua'>function waitForChild(parent, childName)...
1269
1
1720
1
22319584
AxeOfMen
434
2014-04-13 04:56:43
<p>This script is a health regen script. If you want the NPC to not regen health, delete this script and it won't regen anymore. If it's regenerating too fast for your taste, change <code>0.08</code> to something smaller.</p>
0
Why the tween still triggers if i did not touch it?
385960399
Artemiygogolev
23
2023-03-22 14:36:51
<p>So i have this unusual incident today, i made a sphere with a tween that must become 0.5 transparent, 16,16,16 sized, cannot be collided with, and in order to activate it, a player with a humanoid must touch it</p> <p>But, even when i moved it from the baseplate, it still continued to tween without the permission</p...
133229
1
120280
0
2064359146
GamerLighting23233
63
2023-03-23 07:05:22
<p>It's better to be using <code>if humanoid ~= nil then</code> so it checks if the object contains humanoid or not. It's a better way to check for humanoid.</p> <p>Also, if you want to tween the transparency and stuff, put that inside the table.</p> <p>Make sure that there is no colliding humanoids, if you want this t...
1
while true do wont repeat?
41100413
BSIncorporated
640
2015-03-16 20:01:27
<p>For some reason the repeat works once.</p> <pre class='brush: lua'>while true do wait () if ismove == false then --"ismove" is a Tool.Enabled setting StartUp() end end </pre>
15814
0
Why does my gui look different on my friend's screen?
103466946
kimbriel
19
2022-11-25 22:36:45
<p>Me and my friend are making a game together, and on his screen all the gui is positioned differently than how its positioned on my screen. Why?</p> <p>How can I make the gui positioned correctly, or atleast look not ugly</p>
132380
0
Trying to figure out how to manipulate Terrain as a game feature(?)
42219527
KnockOfScripting
0
2021-05-04 03:43:30
<p>So I'm making a fighting game and I'm really digging the new Grass Terrain in studio and I really want to implement it into my game. What I'm trying to do is when a Player smacks another into the ground the terrain makes a crater. I also want to know how to restore the Terrain after a little bit. I have ZERO KNOWLED...
123076
0
why is game.Workspace.part.BrickColor = Really Red not working?
1568620044
tttvbb
2
2020-09-06 15:29:06
<p>why is game.Workspace.part.BrickColor = Really Red not working</p> <p>idk about scripting</p>
112788
2
103542
1
244452876
JesseSong
3372
2020-09-06 20:13:20
<p>Hello, <code>tttvbb!</code></p> <p>The reason why it didn't work was because you didn't assign brickcolor to the colour your trying to perceive. Make sure you use <code>BrickColor.new()</code></p> <p>BrickColor takes an <strong>argument</strong>, which is the colour.</p> <p>Here's the code you were trying to perform...
0
instance.new not working when clicking with a tool?
587271958
Rdumb1
4
2019-06-10 22:58:53
<p>so I tried scripting this script and put it inside a gun tool since my gun just needs some realistic feels (smoke appears when you shoot).</p> <p>somehow when I shoot with my gun the smoke doesn't appear.</p> <p>the script:</p> <pre class='brush: lua'>local Tool = script.Parent Tool.Equipped:Connect(function(Mouse) ...
81533
2
75871
0
618429636
OnaKat
444
2019-06-11 10:46:54
<p>Use <strong><em>Activated()</em></strong></p> <p>That all you need to change</p> <pre class='brush: lua'>local Tool = script.Parent Tool.Activated:Connect(function() Instance.new("Smoke", script.Parent.Handle) wait(2) script.Parent.Handle.Smoke:Destroy() end) </pre> <p>More about <a target="_blank" href=...
0
Fire Ball Script Will Not Rotate The Front To The Right Position?
266723646
AIetheo
236
2017-10-21 22:17:32
<p>So, I am making a fireball script when a player press F and it works except for the rotation of the fireball, i want the rotation to be facing the same way the player is facing and I don't know what I did wrong here.</p> <p>Script:</p> <pre class='brush: lua'>local plr = game.Players.LocalPlayer local mouse = plr:Ge...
48811
0
How to make two random teams?
15619704
NinjoOnline
1147
2014-04-17 09:02:05
<p>This is the map randomizer, and it loads the map, but, I want it to tp all the players to 2 different teams. Anyone know what to add??</p> <pre class='brush: lua'>while true do wait(30)--intermission maps = game.ServerStorage.Maps:GetChildren() map = maps[math.random(1, #maps)] map:Clone().Parent = g...
2404
2
3317
0
36130285
Bzrk262
15
2014-04-17 09:18:22
<p>This Script automatically sorts the players into the teams so you don't have to. The script is perfectly fine so just add it to the game and it should work.</p> <pre class='brush: lua'>-- Overall: The Sorting Script Is Already There </pre>
0
Click for points script will not work, no errors?
1674805834
Black_Magic2533
89
2022-09-18 12:05:39
<p>So i want to detect when the player clicks so i can give them points though my script wont work, it shows no errors or anything, it is a local script inside of the GUI</p> <pre class='brush: lua'><br />local ReplicatedStorage = game:GetService("ReplicatedStorage") while true do wait(0.01) if ReplicatedStorag...
131662
1
118908
1
110029109
loowa_yawn
281
2022-09-18 14:49:50
<p>I wouldn't recommend listening to Mouse.Button1Down in a while true loop. I would do something like this:</p> <pre class='brush: lua'>local ReplicatedStorage = game:GetService("ReplicatedStorage") -- repeating the wait() function until PlayerLoaded is true, aka yielding repeat wait() until ReplicatedStorage.PlayerLo...
0
Error: attempt to index nil with 'FindFirstChild' How to fix this?
561465946
SpongebobRules26
0
2021-04-16 22:28:28
<p>I have a game similar to ToH. The tower changing script sometimes does not work. The script works fine with no problems for some time, then randomly it stops working. I get an error message on line 146 saying: attempt to index nil with 'FindFirstChild' This is my script:</p> <pre class='brush: lua'>-- Services Varia...
122464
0
leaderstats is not a valid member of player?
443615303
Filip100012
58
2020-05-10 07:31:25
<p>I made an obby so I started to work on <code>leaderstats</code> then the auto-save using <code>DataStoreService</code> and 3 DataStores (LevelSave, StageSave and StartScreenStartSave). But thats not the problem. The problem is the SaveTeleporter. So when you rejoin it has your save file via UserId. The SaveTeleporte...
102569
0
How to make a car GUI?
45578548
LifetimeBrony
0
2014-04-15 07:20:21
<p>Hi, I'd like to make a car GUI on ROBLOX which shows up when you sit on the vehicle seat. I only need the scripting for the showing up of the GUI.</p>
1550
0
How do i make a run animation play when The player has begun running?
928013085
90ik20ik
0
2021-01-14 02:20:39
<p>So I made a Shift to run script, yet I am kind of stuck on something. How do I make an animation play when the player has begun running?</p> <p>Heres the script:</p> <p>`> local UserInputService = game:GetService("UserInputService")</p> <blockquote> <p>local Character = script.Parent local Humanoid = Character:WaitF...
118664
0
Moving Part welded to Body?
15438711
pwx
1581
2018-11-28 09:53:52
<p>https://gyazo.com/df41aeb36e2ef250c6b98df87578fc8d</p> <p>In this gif the gun manages to move with the body (sorry for bad quality, it is hard to see), as it being welded also.</p> <p>I was wondering how this is done, I'd like to implant this into my game but I have no idea where to start!</p> <p>Could one of you gu...
71274
0
How can I fix the weld / animation from doing this bug?
286997127
TheDev321
37
2020-03-31 22:53:09
<p>https://i.gyazo.com/b5226e2b83869d98fa4382568dbd8db4.gif</p> <pre class='brush: lua'>local SelectedPet = Owner.Parent local LoadedAnim = Player.Character:WaitForChild("Humanoid"):LoadAnimation(PetCarryAnimation) local RightHand = Player.Character:WaitForChild("RightHand") SelectedPet.HumanoidRootPart.Anchored = fals...
97706
0
How to Teleport?
56276253
TwoSlhue
5
2014-04-26 18:38:57
<p>So i recently been working on a new thing for when someone clicks a GUI Button it teleports them, here's the code</p> <pre class='brush: lua'>function onClicked() script.Parent.Parent.Parent:Destroy() game.Workspace.Menu:Stop() game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Charact...
3613
1
How would I get the local player user id?
346352186
scotsmen0204
9
2021-03-02 18:13:43
<p>I am making a group rank bot (I have done most of the api stuff) but I need the local player's user ID</p> <p>here's the script I got rn:</p> <p>local UserId = game.Players.LocalPlayer.PlayerID</p>
120875
1
110144
0
81951343
CrunchChaotic
139
2021-03-02 18:19:39
<p>You almost had it</p> <pre class="brush: lua">local UserId = game.Players.LocalPlayer.UserId </pre>
0
How to change image transparency of multiple labels at once?
342893559
SilentKiller5557
6
2022-05-05 06:07:04
<p>How can I change the transparency of 6 different image labels all at the same time?</p> <p>Currently I have them all defined like this:</p> <pre class='brush: lua'>local classBorders = {script.Parent.Parent.BDs.classBDx, script.Parent.Parent.BDs.classBDx1, script.Parent.Parent.BDs.classBDy, script.Parent.Parent.BDs....
129917
1
117369
0
1704386667
NotThatFamouss
576
2022-05-05 07:50:43
<p>We can use something called <code>for loops</code> for this. for loops lets you run a command or group of commands at a set number of times, or we can use it to iterate through tables/arrays. It should look something like this:</p> <pre class='brush: lua'>local Alphabet = {"A", "B", "C", "D"} -- Your table here for ...
0
How to tell if something is behind an object or in front or to the side of an object?
357316423
Tizzel40
243
2020-02-26 03:11:02
<p>um... the Title should be strait forward so uh... yea!</p> <p>How do you find out if something is in front, to the side, or behind an object?</p> <p>Im guessing math is involved!!!?????</p>
95199
1
87953
3
223838284
vector3_zero
1056
2020-02-26 04:00:06
<p>You can use the dot product for this.</p> <p>Say you have objectA and objectB. You want to know if objectB is in front of, behind or to the side of objectA.</p> <p>First get the vector from objectA to objectB. We'll call this offsetVector:</p> <p><code>local offsetVector = objectB.Position - objectA.Position</code><...
0
How to make this ImageLabel Rotate?
543751
xPolarium
1388
2015-08-04 20:02:39
<p>So I'm making a refresh button by using a ImageLabel. I've gotten the main code down to refresh a player and spawn them back in their previous spot. My problem is that my ImageLabel has a "Refresh" icon and I want it to rotate when the player moves their mouse over the ImageLabel.</p>
20964
5
How does Evaluation work in Lua?
3508838
DigitalVeer
1473
2015-05-19 22:49:37
<h2>Short Circuiting</h2> <p>Now, when it comes to short-circuiting values, Lua does indeed short-circuit. For example:</p> <pre class='brush: lua'>function hello() print('hello') return true end function bye() print('bye') return false end if(hello() or bye()) then print('check to short-ciruit') en...
17678
1
21147
7
19566737
Unclear
1776
2015-05-20 00:38:49
<blockquote> <p>I want to know why setting the variables before hand makes a difference, and just a more clear explanation on how evaluation in Lua works.</p> </blockquote> <p>Alright. I'll see what I can do.</p> <h2>Why setting the variables before hand makes a difference.</h2> <p><strong>Short-circuit evaluation is...
0
Whats the smallest wait besides using RenderStepped?
1510429560
PluggedGames
135
2017-09-10 17:13:53
<p>I would use RenderStepped, but it requires a LocalScript, and I don't wanna use that.</p>
47787
0
My animations are playing for other people, but they look really weird. Anybody know why?
265927338
notZipZen
0
2022-06-18 09:31:30
<p>My animations are playing for other people, but they look really weird. Anybody know why this is happening? It looks perfectly fine on the players screen but to other people the animations are all scuffed. Anybody know why this is happening? https://streamable.com/gfubn1</p>
130388
0
FindPartsInRegion3WithIgnoreList not finding other parts?
64265664
asgm
109
2019-12-22 01:13:10
<p>Hey! Yes,you, I'm sure you know about Region3 :) Let's get to the point - I'm trying to detect a player in a region3 {BossArea}, resorting to IgnoreList cause I dunno how to get the player with WhiteList and I don't want the computer to do lots of calculation thing with the regular FindPartsInRegion3. IgnoreList ign...
91724
0
&quot;Failed to load sound: Unable to download sound data&quot;, why?
73292081
FullMetalEdward45221
106
2018-10-25 17:46:18
<p>[EDIT] i figured out myself why this wasn't working, instead of setting an id of sound to "536642316" i had to change it to "rbxassetid://536642316" (feelin very dumb right now)</p> <p>So i Scripted This Module: (Parent is ServerScriptService)</p> <pre class="brush: lua">local CustomFunction = {} CustomFunction.Crea...
69458
0
I'm making a Roblox JoJo game and I don't know how to fix fireserver, can someone help me?
104418586
Kazibit
0
2022-09-13 23:20:32
<p>Script :local mainFolder = game.ReplicatedStorage.StandFolder</p> <p>local Summon = mainFolder.RemoteEvents.Summon local Punching = mainFolder.RemoteEvents.Punching</p> <p>local UIS = game:GetService("UserInputService")</p> <p>local summonDebounce = false local isActive = false local Attack = false</p> <p>local rese...
131615
1
Running is not a valid member of HumanoidRootPart?
353632707
SuperSM1
52
2022-11-13 18:57:58
<p>I'm so confused</p> <pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(plr) plr.CharacterAdded:Connect(function(char) char.HumanoidRootPart.Running.Volume = 0 end) end) </pre> <p>Running is, in fact, a member of HumanoidRootPart created by default when someone joins. I have tried using...
132269
3
119453
0
123585026
NykoVania
198
2022-11-13 23:16:40
<p>Do it on local script</p>
1
When welding two players together, how do I make sure one player always has control all of the time?
68125558
joshthegamer456
93
2019-11-15 00:06:00
<p>I’m trying to make some handcuffs with the ability to grab a player, and sometimes when I grab the player, the player being grabbed has control. I’ve tried setting walkspeed to 0, jump power to 0, and I really want to know how to fix this. Any suggestions? Here’s my code block.</p> <pre class="brush: lua">—ar is the...
90026
1
83474
1
22062395
Robin5D
186
2019-11-15 01:42:48
<p>Weld's probably won't do for you here; might want to use a loop that sets position (maybe use Stepped)</p> <p>Otherwise, if you just want a easy solution, go get free, well-made cuffs that run in 60fps (probably using stepped) over here: https://www.roblox.com/library/739586523/Smooth-Arrest-Detain-Tools</p>
0
How can I use the Camera?
31671564
73epic311
13
2014-06-04 12:44:29
<p>I am trying to make some cool effects with cameras. I need to know if the Workspace`s CurrentCamera relates to all the players cameras or could I just control one players camera at a time?</p>
6153
1
8168
0
29251132
HexC3D
830
2014-06-04 13:14:12
<p>You can use a local script inside the players backpack or StarterGui and make it local script only and makes sure only the player get's the camera. But you can control everyone's at the same time. If you want it goes both ways.</p> <pre class="brush: lua"> **YES CURRENT CAMERA CAN EFFECT ALL...
0
roblox lua error Workspace.Door.doorscript:2: attempt to index nil with 'Name'?
285400764
CallMe_Axis
63
2020-08-10 04:38:17
<p>hello i cant figure out this error it is confusing cause i did so many tests and checks here is the error i'm getting Workspace.Door.doorscript:2: attempt to index nil with 'Name'</p> <pre class='brush: lua'>local door = script.Parent local Name = game.Players.LocalPlayer.Name local tweenservice = game:GetService("T...
111086
0
Fun with Vectors! How to get a Vector that points between two vectors?
150610032
Worthy0ne
68
2018-01-22 03:35:12
<p>So ill try to clearly explain, I am trying to get a vector that POINTS mid way between where the other two vectors point. I have the 2 vectors I just need the middle one. Say you hold out 3 fingers. I have the two outside fingers but, I want to some how calculate the figure in the middle. I am using Vector3s to achi...
52466
1
51916
1
223838284
vector3_zero
1056
2018-01-22 07:15:30
<p>Normalize your two vectors, add them together, then normalize the result to get the inbetween vector.</p>
0
hi, i need help with script for podiums and the door?
1037316058
biquodo
0
2023-01-22 21:34:06
<p>I'm creating a tower the script is for the final part has the door that gives coins but I wanted a podium system along with the final door with 1º, 2º and 3º and when the round is over and the tower is changed, I wanted the podiums to renew and the player could already get the Coins again and when the player had alr...
132915
0
How would I play this animation?
25516705
Raditok
5
2014-02-26 23:32:03
<pre class="brush: lua">local animController = Instance.new("AnimationController") local animTrack = animController:LoadAnimation(animation) animTrack:Play() </pre> <p>With clicking the humanoid this would work</p>
318
0
How do I return values in a Module Script?
79846406
thehybrid576
294
2016-08-23 15:32:48
<p>Module Script, located in Workspace</p> <pre class='brush: lua'>local module = {} function module.ReceiveChat(Message, Sender) return Message, Sender end function module.SendChat(Message, Sender) if Message ~= nil and Message ~= "Click here or press '/' to chat!" then module.ReceiveChat(Message, Send...
34913
0
How to set up split screen controls?
306251570
A_thruZ
29
2019-06-11 18:24:57
<p>I'm building a split-screen first person shooter, and I am using <code>ViewportFrame</code> to render each side of the screen. I have the split-screen part finished, but I can't figure out how to make a new character, most likely a rig from <code>ServerStorage</code>, and be able for the second player to control it....
81569
0
ClickDetector is not a valid member of ClickDetector?
15424144
purplemetro3421
5
2015-08-15 23:50:14
<p>I wanted to make a shower to where when you click the button the Particle Emitter that i have in the shower head would be enabled. However when i click the button this comes up in the Output " 19:46:28.539 - ClickDetector is not a valid member of ClickDetector".</p> <p>Here is the full script.</p> <pre class="brush:...
21457
2
25057
0
3864673
funyun
958
2015-08-16 00:23:46
<p>Every script is given a variable to represent itself as an object in the hierarchy, called <code>script</code>. The parent of the script, <code>script.Parent</code>, is the object which <code>script</code> is a direct child of. In other words, it tells you what the script is in, such as a ClickDetector. <code>script...
0
String expected, got table in for loop?
179688195
xTrippyTerror
0
2022-05-05 13:52:03
<p>So I get the following error :</p> <p>Unable to assign property Name. string expected, got table - Studio 15:48:03.526 Stack Begin - Studio 15:48:03.527 Script 'Players.xTrippyTerror.PlayerGui.Char.LocalScript', Line 44 - Studio (Line 44 is "Clone.Name = v", but it happens for any line where v is involved.)</p> <p>H...
129918
2
What's wrong with this?
3178149
drager980
5
2014-03-05 07:54:26
<p>I haven't fiddled with Data Store that much and I'm terrible at anything to do with BrickColors but I'm still pretty unsure why this is broken The main parts of the script are:</p> <pre class="brush: lua">doba = script.Parent.Parent.Parent script.Parent.Parent.Parent:WaitForDataReady() ds = game:GetService("DataStor...
498
0
How can I modify this gun script so that It shoots bullets where your mouse Is?
1961959172
imnotaguest1121
311
2022-11-22 23:11:07
<p>Hello Developers!</p> <p>As the title states, I want to modify the script below to shoot bullets where your mouse Is at</p> <pre class='brush: lua'>local Tool = script.Parent Tool.RemoteEvent.OnServerEvent:Connect(function() local Ball = Instance.new("Part",game.Workspace) local CanDamage = true game:Get...
132346
0
How to make your game into a group game? (Starting off individual)
1614526064
fakedudeforvideo
38
2021-01-31 03:17:22
<p>I have created a group to add my friend so that he also gets some of the robux. How do I do this?</p>
119420
1
109029
0
561329525
Desmondo1
121
2021-01-31 05:15:49
<p>This isn't really a good way to do it. But it's the only way I know of, make a group if you don't already have one. Then go on your game in roblox studio, click "File", at the top left. Then click "PublishToRoblox", if you already a group, you can click on the "Owner", option which will automatically be set to yours...
0
expected &lt;eof&gt; got 'else'. any help?
1775753594
Not_prototype
26
2021-04-16 16:13:46
<pre class='brush: lua'>local gamepass = 16789429 local market = game:GetService("MarketplaceService") game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(Character) if market:UserOwnsGamePassAsync(player.UserId, gamepass) then local replicatedStorage = game:...
122446
0
Why doesn't DataStoreService save mutated data?
109513948
SpectacularPavlos
0
2021-05-02 15:44:02
<p>I'm a complete beginner in Roblox scripting and not very knowledgeable on DataStoreService and leaderstats. If you look at my profile you'll see some posts from like a year ago, because I quit Roblox scripting and started scripting again recently.</p> <p>When I mutate data in leaderstats it doesn't get saved, even t...
123032
1
112108
0
94006350
BulletproofVast
370
2021-05-02 19:25:46
<p>you cant increase from a local script.</p>
0
How would I make a part move to a specific side of another part?
136245173
SharkRayMaster
265
2022-09-22 06:07:12
<p>This is sort of hard to explain, let's say i want a part to teleport to the arm of the player, but on It's side, if i set the part's position to the player's arm position, the part will be inside the arm</p> <p>Of course i could move it a little to the side, that way it would be on the surface of the arm, yet this i...
131690
2
118941
1
71530978
enes223
327
2022-09-22 15:32:21
<p>You can use <code>CFrames</code> because they contain rotation data so it is easier to move parts relative to each other. Just use the axis you want to choose the side, you know. I'm just going to give a script that you can change axis easily, I hope it isn't too advanced for you. Example:</p> <pre class="brush: lua...
1
How to create bullet spread?
1655538
sonicfan0405
18
2018-05-16 15:03:49
<p>I'm making a shotgun and I'm trying to get the bullets to be randomly generated in the direction the player is pointing at. I can get the bullet to go in the direction of the mouse but I cannot manipulate this value and that's where I'm stuck. I'm kind of new to this and I'm not sure where to go from here</p> <p>Cod...
58497
2
57041
1
4691581
hellmatic
1517
2018-05-16 15:26:55
<pre class='brush: lua'>local function onActivate() local bullet = GetBullet() local target = mouse.hit local SpreadValue = 10 local Spread = CFrame.Angles(math.rad(math.random(-SpreadValue , SpreadValue )/10), math.rad(math.random(-SpreadValue , SpreadValue )/10), math.rad(math.random(-SpreadValue , Sp...
1
How do I save and load terrain with ReadVoxels()?
17939871
DrBDude
5
2020-09-14 18:26:32
<p>I have a building game, which I want to add a terrain system to, which can save and serialize the game's data but I'm not sure how to get terrain data, save, and load it.</p>
113164
0
Can you have a loop with GetAsync in it?
40842434
HomingBeacon
5
2014-04-17 00:54:36
<p>I heard that it caches, but would that be specific to a certain value?</p> <pre class='brush: lua'>weapons = {"Shotgun","OrcBlade"} for i,v in pairs(weapons) do local DataStore = game:GetService("DataStoreService"):GetDataStore(v) local key = newPlayer.userId..v if DataStore:GetAsync(key) == true then points.Value =...
2328
1
How to make a part that makes you repeatedly bounce?
525025404
Nitrolux200
17
2021-01-14 07:15:19
<p>So i've been trying to make a part that when touched it makes you jump [Jumpower 100] all the time until you stop touching. Here is my script so far [Not repeatdly, just normal jump pad script]</p> <pre class='brush: lua'>script.Parent.Touched:Connect(function(hit) local humanoid = hit.Parent:FindFirstChild("Hum...
118673
2
108554
0
287206263
Dr_Smartypants123
52
2021-01-14 16:24:01
<p>The answer above is pretty complex. All you have to do is:</p> <pre class='brush: lua'>part.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid) then hit.Parent.Humanoid.JumpPower = 100 hit.Parent.Humanoid.Jump = true hit.Parent.Humanoid.JumpPower = 50 --Resets jump power...
1
How can I make a local script enable/disable another local script?
92955949
ThatShadowRein
11
2022-11-19 13:23:31
<p>It is a simple question but I am unable to fine answer. For reference, I have two local scripts, one to enable/disable the other and the other is the script that actually does things. In my case, I have an X-Ray vision type thing but what I want to do is make it so that I can enable and disable it by running the scr...
132315
1
119509
0
559514967
T3_MasterGamer
1017
2022-11-19 13:58:05
<p>Sadly, you cannot re-run the script once you re-enabled it. Instead, put the script inside the "enable/disable" script and make that script a function/thread.</p> <p>For example: you have script 1 and 2. Script 1 prints "hi" in the Output every second, meanwhile Script 2 enables/disables Script 1 in order to play an...
0
How do I change the position and orientation of a player's limbs in a script?
32483732
Jexpler
63
2018-07-26 00:46:46
<p>I was looking around on scriptinghelpers and found this in an answer:</p> <pre class='brush: lua'>local Left_Shoulder = Torso:WaitForChild("Left Shoulder") Left_Shoulder.C0 = CFrame.new(-1.5,1,0) Left_Shoulder.C1 = CFrame.Angles(math.rad(45),0,0) </pre> <p>And that rotates the arm just fine, but I want to change the...
63727
0
I'm currently fixing an audio visualizer and have no idea why it is not working?
40621453
JerkDerekThe14alt
11
2022-05-03 19:03:49
<pre class='brush: lua'>local part = workspace:FindFirstChild("Set") -- Part which will be visualised local sizex = part.Size.X -- Unnecessary if using a fixed value for sizex local sizez = part.Size.Z -- Unnecessary if using a fixed value for sizey local positiony = part.Position.Y -- Unnecessary if using a fixed valu...
129903
1
Why does a player get points even though the cannon ball won't touch anything?
1752724383
Xyternal
145
2021-06-09 15:18:37
<p>So following my pervious question, after an answer, i got a code, but for some reason when ever the cannon fires, and even though it doesnt hit a player, it still gives me pointss. Why does that happen? code</p> <pre class='brush: lua'>ball = script.Parent damage = 50 local debounce = true function onTouched(hit) ...
124221
0
How would I check if there is a part at a certain position?
127652021
tjtorin
172
2020-03-05 02:23:44
<p>Assume that the player just mined (destroyed) a block. I would want to spawn a block right under the block they just mined but only if there is no block beneath it.What would be the best method to check if their is a part at a certain position such as the part the player just mined subtracted by a vector?</p>
95574
1
88299
2
2479393
Dfzoz
474
2020-03-05 03:09:53
<p>You can use raycasting and check if a part collides with it by using workspace:FindPartOnRay(ray), which returns the first part that collides with that ray.</p> <p>To create a ray, use Ray.new(origin vector3, direction vector3).</p> <p>If you want to filter parts on the raycast, you can use workspace:FindPartOnRayWi...
0
How can I create a script that allows a part to give me a gear?
124858347
Nath390Fish
19
2020-11-01 16:45:33
<p>Basically I want a script that gives you a gear from Lighting when you touch a certain part, then removes that part you just touched.</p> <p>The gear in Lighting and part in Workspace also have a StringValue inside of them.</p> <p>The value inside of the gear in Lighting is blank, as I want it to copy the value from...
115208
3
105842
0
55727434
iiii676
23
2020-11-01 22:39:55
<p>Hey I have a super simple model on this and I'll send you the script I used, It requires putting the tool in ReplicatedStorage, you can edit the script around.</p> <p>Heres the link to the model: https://www.roblox.com/library/5349028096/Easily-Customisable-Giver</p> <p>Heres the script:</p> <pre class='brush: lua'>...
5
What is wrong with this ClickDetector script?
51237105
PyccknnXakep
1220
2015-06-28 02:03:33
<pre class='brush: lua'>function open() script.Parent.Parent.Parent.Parent.Items.NightVision.Value = true game.StarterGui.ToolBar.Inventory.NIGHTVISION.nv.Value = true end script.Parent.MouseClick:connect(open) </pre> <p>For some reason, the script isn't working... can anyone figure it out? Thanks! (Sorry for m...
19023
1
22612
3
38498021
capinbuilda
15
2015-06-28 03:24:37
<p><strong>Possibility 1</strong>: You are not getting to the value correctly <strong>Possibility 2</strong>: The NightVision value is not a BoolValue <strong>Possibility 3</strong>: You might be trying to access the player's backpack; not the StarterPack.</p> <p>If <code>Possibility 3</code> is correct, please tell me...
0
Argument 1 missing or nil explanation and fix?
507587234
VeryWowMuchDoge
47
2018-04-10 20:05:54
<p>I am making a sandbox game, and when i press a button, it should make the item that a player is placing higher or lower. This is the Client Placing Script:</p> <pre class="brush: lua">local player = script.Parent.Parent.Parent local placementHandler = require(script:WaitForChild("PlacementModule")) if player.team ==...
56588
2
55315
0
264859050
Nonaz_jr
439
2018-04-10 22:21:11
<p>Apart from the bug correctly pointed out by Gioni01, there is another error.</p>
0
how to make a Stun Tool using KeyBind?
438845010
Ariirael
15
2020-09-10 17:17:20
<p>i want make a Tool with a script inside what can be a Proximity Stun, like if i press "P" it activate and when players get close to me, they are stunned, and it i press P again, it deactivate. i made a script to test the proximity thing, but it dont work, it this:</p> <pre class='brush: lua'>local players = game.Pla...
112977
1
103734
0
359392224
ForcyDorcy
15
2020-09-11 01:24:17
<p>You're going to want to be using a local script within your tool to setup the client side. You should be doing something like this (I also added comments to explain some things you did wrong):</p> <pre class='brush: lua'>local Players = game:GetService("Players") -- You used game.Players, exploiters can rename the s...
2
How do I respawn a whole server?
17941891
Rurith
10
2014-05-01 02:57:13
<p>How to I make the server respawn, like all of the server I want to respawn. I will try it out, but It wont work e.e</p> <pre class='brush: lua'>game.Players:LoadCharacter() </pre>
4041
2
What is the correct way of triggering code if a part is touched?
1752724383
Xyternal
145
2021-05-18 16:56:16
<p>Hello everyone, I was creating a little script where if someone touches the seat again, then the loop stops. So I added a little if statement that goes like this.</p> <pre class='brush: lua'>local seat = script.Parent seat.TouchEnded:Connect(function()) local count = 0 while count &lt; 30 do if seat.Touched then bre...
123555
1
how do i kick exploiters?
479024921
zed_103
23
2019-10-08 10:08:43
<p>so im making a game and its public one time i play it and i saw an exploiter in my own game so how do i kick players automaticly when they exploit in my game</p>
88514
0
CameraScript will not be disabled?
22502080
lolkid007
43
2018-04-19 01:30:54
<p>I'm trying to disable the overall camera but it won't work. I have my local script under StarterPlayerScripts, here is script just in case I need to change anything:</p> <pre class='brush: lua'>wait(0.5) -- just to let camera load in script.Parent.CameraScript.Disabled = true </pre>
57062
1
55768
0
41307288
hunterthegreat100
18
2018-04-19 02:34:29
<p>Nothing is wrong with this script at all for me. Here's another method that may work for you, I'm not quite sure >-&lt;</p> <pre class='brush: lua'>script.Parent:WaitForChild("CameraScript") -- Wait for CameraScript to load and it won't do anything till it does script.Parent.CameraScript.Disabled = true -- Disables ...
1
The Thing doesnt move???? what the hecc???
96499000
MradmannMvip
50
2019-10-19 03:07:06
<p>i've been Working in an optimized script ffor my sinking ship game but it just doesn't work. No error messages. No warnings. F in the chat.</p> <pre class='brush: lua'>--variables local ship = script.Parent local P = ship.PrimaryPart local SeaLevel = 0 --scripting local function sink() while true do loca...
88937
2
82413
5
1792778813
Xapelize
2326
2019-10-19 04:51:58
<p>You did not execute the function, but made the function. that's why it doesn't work. Consider inserting this to your last line:</p> <pre class='brush: lua'>sink() </pre>
0
Datastore stats not saving, despite changes. Am I missing an easy fix?
30169818
untiedtimbs
0
2023-01-24 18:53:45
<p>I'm having trouble trying to figure out why the saving function in my datastore script isn't working. The script is a normal script object located in ServerScriptService. I can edit my stats manually when testing, but when save functions are carried out, the return values are the ones that are already saved and appa...
132937
1
How can you make a first person game?
9861783
Allisaurus
10
2014-04-17 12:49:30
<pre class="brush: lua">I'm thinking of making a third person horror game. Any help to make it first person? At least give out a GUI that says "You must be in first person in order to play this game"? </pre>
2422
2
3337
0
343558
Sublimus
992
2014-04-17 12:53:14
<p>You clone this localscript into the player's PlayerGui:</p> <pre class='brush: lua'>game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson </pre>
0
I lock my door its locked for me only what do I do so it locks for everyone on filtering enabled?
73528128
policopi
37
2018-04-29 18:49:57
<p>Basicly my game is filtering enabled and this script is a Local Script inside of a gui button and it works but not as I want because when I lock the door it gets locked for me but for the other people its like if the door was unlocked how do I do so that its locked for everyone without turning off my filter</p> <pre...
57662
0
Hi, How do I add a Debounce to my ClickDetector script?
32730446
DesiredToResign
10
2019-11-07 23:09:24
<p>I'm trying to make a Button Door and I don't want people spamming the button and playing the sound and opening and closing the door a million times, how can I fix that?</p> <pre class='brush: lua'>open = false door1 = script.Parent.Parent.Parent.Door1 doorpart1 = script.Parent.Parent.Parent.DoorPart1 door2 = script....
89731
1
83198
0
310898243
EmilyBendsSpace
1025
2019-11-08 00:14:14
<p>You can use a locking flag. You'd first declare it at the top like this:</p> <pre class='brush: lua'>local busy = false </pre> <p>Then, your click function would use it like this:</p> <pre class='brush: lua'>script.Parent.MouseClick:Connect(function() if busy then return end -- Ignores clicks while door is busy ...
0
When should I use remotes and how do I secure them?
436466229
trecept
367
2018-02-08 18:48:58
<p>So I've begun making my first FE game, and everything has been working normally so far. I'm soon going to be adding shops to my game, and I've seen many other games use remotes for controlling shop purchases and was just wondering when I need to use a remote and what for. Also, I'm interested in how developers secur...
53371
0
Cloning by GUI
15297810
xXScorpianKillerXx
25
2014-03-14 16:16:00
<p>This will be the last thing I will need help with for the game I am building. Thank you to whoever helped with the "Remove a Chair by GUI" Topic. On this Script it's supposed to regen the Chairs back when you click on the GUI but there are some errors on the line.</p> <pre class='brush: lua'>local Model = Workspace....
682