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
Why does it say this line is a nil value?
1144900
DeveloperAtWork
14
2014-03-01 02:00:47
<pre class='brush: lua'>function Money() player = game.Players.LocalPlayer money = player.leadstats.Money bank = player.leaderstats.BankedMoney withdraw = script.Parent.Parent.MoneyValue money.Value = withdraw.Value+money.Value bank.Value = withdraw.Value-bank.Value end script.Parent.MouseButton...
377
0
Is there a way to quit ROBLOX with a GUI button?
6746214
2BProIX
0
2014-07-26 09:28:06
<p>I haven't seen one yet and if it does exists, its rare to see one.</p>
8716
0
How do I make a textbutton or textbox etc. disappear when it's out of frame?
676326715
WINDOWS10XPRO
134
2020-12-30 13:08:34
<p>I tried to use TweenSize for the frame when I click minimize, but I figured out that the textbox doesn't disappear like last time. I don't know why. if you guys know how to fix this please tell me because I really need it!</p>
117900
2
107892
0
1526244853
xbendaiialt
37
2020-12-30 18:21:10
<p>There is a thing called ClipDescendants. (in the frame properties) It will make all the text buttons boxes etc. go in the frame. If It goes out of the frame, it will make the portion out of the frame disappear. I hope this helped.</p>
0
I simply cant get it to work.. why is that happening??
146100287
Gigaset39
87
2022-09-14 16:24:20
<p>what im tring to do is to choose if the plataform(which is a part) CanCollide proprety is false or true depending on the color of a brick called randomAll</p> <pre class="brush: lua"> local P = workspace.Plataform local randomAll = workspace.Colour.Randomizer --- Colour is a folder and Randomizer is a part ...
131624
1
118870
1
136245173
SharkRayMaster
81
2022-09-14 22:05:20
<p>Hello Gigaset39, It didn't take me long to figure out the problem, and after testing it out on Studio, It seems to be working:</p> <p>Your Code:</p> <pre class='brush: lua'>if randomAll.BrickColor.Color == BrickColor.new("New Yeller") then P.CanCollide = false end </pre> <p>My Solution:</p> <pre class='brush: lua'>...
0
How do I fix my tool (Gun) so when equipped it actually shows in my hand?
56781258
GoodkidMad
14
2019-09-09 23:57:16
<p>So ive inserted a gun modeled from blender, put a handle part into the tool, and scripted with filtering enabled, yet when I try to equip the tool it simply does not show.</p> <p>Note I also got a error:</p> <p>Players.GoodkidMad.Backpack.m1911.Scripts.Main:25: attempt to index local 'mouse' (a nil value)</p> <pre c...
87257
2
80823
0
20111088
royaltoe
5144
2019-09-10 00:07:57
<p>First things first - you have your button1down event which will create a new event on top of all the other times you equipped it. Your activated function will be fine instead since it fires every time a player clicks with the tool open.</p> <p>I think your script is erroring saying mouse is nil because there are two...
0
How to make a 2X chance to teleport a specific player?
1696235625
Cubispaghettis
1
2023-01-16 17:37:00
<p>Hello. I have another scripting question. So, I have gotten help and managed to make a random player picker, and make that random player chosen teleport on the stage and do whatever for 100 seconds, then teleport back to spawn. However, I want to make a 2X chance to go on stage if that player pays 1000 points. So ba...
132867
1
119997
0
87531166
virushunter9
928
2023-01-16 21:07:43
<p>Your idea to get a random player from a table of players is a good start.</p> <p>I think you should take this table of players and add the players with a 2X chance into the table a second time. That way they technically have a 2X chance because their name appears in the table twice instead of once.</p> <pre class='b...
0
How to stop a coroutine? {Unanswered}
57706445
RedCombee
585
2014-11-28 05:45:27
<p>I looked for a specific coroutine function that would stop a coroutine, but I couldn't find one. Is there a legitimate way to pause or delete a coroutine?</p>
12814
0
How to set a gui to fit on all screens?
148527490
manith513
121
2020-04-09 01:50:21
<p>So this isn't really a coding problem but a User-Interface issue. I have a frame with anchor points at 0.5, 0.5, and have a lot of buttons to make a GUI for a button to claim something. I test the GUI out on multiple devices and when I try it on the smallest device possible (iPhone 4) it is cut off on the screen. I ...
98570
0
Door Transparency problem
15297810
xXScorpianKillerXx
25
2014-03-13 00:08:46
<p>I made this Script, but whenever I touch it, it freezes ROBLOX so I think it is a HUGE Script. Does anyone know why this happens?</p> <pre class="brush: lua">function onTouched(hit) wait(0.1) script.Parent.Transparency = script.Parent.Transparency + 1 repeat until script.Parent.Transparency == 1 wait...
657
0
How to tell which player clicked a button?
1053072695
zomspi
541
2019-10-14 04:33:21
<p>I am doing stuff with awarding badges and was wondering how to award a badge to the person who clicked a text button? I am thinking of using a script because I'm pretty sure that's what you use with badges. Is there any way I can do this without using remote events or do I have to use them?</p>
88749
1
How would I make a smooth transition of a property with less lines of code?
216815068
ShineBright2775
30
2020-07-07 01:49:25
<p>So I want to make a smooth transition with the Blur effect, and sure I could do something like this:</p> <pre class='brush: lua'>local Blur = game.Lighting.Blur script.Parent.MouseButton1Click:Connect(function() Blur.Size = 1 wait(.1) Blur.Size = 2 wait(.1) Blur.Size = 3 wait(.1) Blur.Size = 4 wait(.1) Blur.Size = 5...
108399
1
99606
1
181515939
SpiralGaia
189
2020-07-07 02:30:55
<p>Hi! This is a simple one. You can use a loop to do this.</p> <pre class='brush: lua'>local Blur = game.Lighting.Blur function blur() Blur.Size = Blue.Size + 1 end script.Parent.MouseButton1Click:Connect(function() while Blur.Size &lt; 10 then blur() end) </pre> <p>Untested, but should work.</p> <p><em>~~SpiralRBX</e...
1
Help with string manipulation?
24090816
CodeSponge
125
2015-05-08 12:46:55
<p>I made a website that displays a number when you add a ?something=key. I am using HttpService to get the page content but I don't know how to set a value to that number/find the number.</p> <p>If I print the request it returns something like this:</p> <p>&lt;body></p> <p>245507596default4Testingkey accepted&lt;div c...
17360
1
20746
2
18043256
yumtaste
476
2015-05-08 12:59:22
<p>Yes. According to the ROBLOX wiki, using GetAsync returns a string, so you can use string manipulation functions to find what you need. If you need a tutorial on using string manipulation, I can provide one (I didn't provide it initially because I don't have access to Studio).</p>
0
Why does my model's proximity prompt break upon being cloned?
1077355839
ghostmde
0
2022-09-11 11:03:53
<p>I'm trying to make a tool, which when clicked with, spawns a model. I've pretty much completed it, however when I spawn the model in, during playing the game via Studio, I run into a problem, where I cannot click on the proximity prompt and sit down to steer the cloned boat.</p> <p>Here's me attempting to sit down o...
131587
0
Attempt to index nil with 'LoadAnimation' - Idk?, ahhh
1570614264
Schm4kill
0
2022-06-30 23:37:05
<p>local Distance = 100 local Debounce = false local Player = game.Players.LocalPlayer wait(3) local Humanoid = Player:WaitForChild("Humanoid", 4) local TeleportingAnim = script:WaitForChild("TeleportingAnim", 4)</p> <p>script.Parent.Activated:Connect(function() local TeleportingAnimLoad = Humanoid:LoadAnimation(Te...
130585
0
Why is this not Saving or Loading?
5193371
Shrekerly
70
2015-05-08 02:59:48
<p>So, this script is supposed to Save and Load the time spent in-game by the people above or that rank in the group, but it prints this error after it has counted 1 minute, can anyone help me understand why it thinks it is missing or nil?</p> <p>-- Argument 2 missing or nil</p> <p>-- Script 'ServerScriptService.StaffT...
17352
0
How do I get players in a Region3 area?
436466229
trecept
367
2018-06-16 21:39:06
<p>I'm very new to Region3 stuff, I've never used or seen it before personally. I'm using it as I think it's a very good unexploitable system on detecting whether a player is in a lobby or in a map to change their health, but I'm wondering how can I find players who enter a Region3 area, so I can then change their maxh...
60517
1
58884
2
17030889
nilVector
812
2018-06-16 22:10:34
<p>The <code>workspace</code> has a function called <a target="_blank" href="https://wiki.roblox.com/index.php?title=API:Class/Workspace/FindPartsInRegion3">FindPartsInRegion3</a>, which takes a <code>Region3</code> object to do as it name implies: find the parts in that <code>Region3</code>.</p> <p>As you mentioned ea...
0
Is there a way to check if the player is online and in my game for cross server purposes?
2956651
computerchris
110
2016-05-30 20:34:12
<p>Is it possible to check if a player is online, and in your game?</p> <p>I've got a system, but it's not working the way I wanted it too.</p> <pre class='brush: lua'>local function savePlayerData(player) if sessionData[player] then return dataStoreRetry(function() return FriendData:SetAsync(pl...
31127
0
How can I make a script choose a random player?
1292809675
AronIZOdd
12
2021-01-11 23:44:28
<p>So I am trying to make a script choose a random player but it is not working! I put</p> <pre class='brush: lua'>local players = game.Players:GetPlayers() local player = players[math.random(1,#players)] print(player) </pre> <p><em>18:38:06.232 ServerScriptService.Script:3: invalid argument #2 to 'random' (interval is...
118567
0
What's wrong with this script?? no error message. (I am a beginner)
906277159
TheKittyKingOfficial
2
2021-07-16 16:07:39
<p>Here's The Script:</p> <pre class='brush: lua'>script.Parent.TouchPart.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then game.GUIS.GamepassShop.ShopFrame.Visible = true game.Workspace.Map.Parts.MainBase.Touched:Connect(function(hit) if hit.Parent:FindFirstChi...
125374
1
ContentFilter
25691148
FromLegoUniverse
264
2014-03-04 19:47:13
<p>Out of curiosity, what is it? The wiki does not say what it is and what it does.</p>
487
1
814
1
4785454
Everesty
1006
2014-03-04 22:45:04
<p>Do you mean <a target="_blank" href="https://medium.com/roblox-stories/11dd0729d138">FilteringEnabled</a>?</p>
0
How to auto respond back to certain player on chat?
331809274
TechModel
100
2022-05-01 08:47:01
<p>I want to make so a specific player ID for example 12345 and when that player in the game says "Hi" the rest of the server who has enabled this script will reply in the chat will reply, "Hey!" back in the default chat system of Roblox.</p> <p>So, I did some coding and got a bit lost. Hopefully you guys can help. I h...
129875
0
how do you receive the robux from the developer products?
1210491712
guiltyana
0
2021-03-09 21:08:33
<p>so i put up a donation board in my game ( Eternal Vibe ), and it seems that people have donated to me, i followed a tutorial on how to set it up, so that worked fine. But, I do not know how to receive the robux from it. Any help? It was the first one from the toolbox, the one that almost everyone uses, so i dont get...
121126
1
Local script won't remove money or do anything??
433962773
theking66hayday
841
2023-01-14 04:56:30
<p>Hi I am trying to make player pay Money to unlock a certain team. local script in Gui button</p> <pre class="brush: lua">script.Parent.MouseButton1Click:Connect(function() local leaderstats = Instance.new("Folder") local sp = leaderstats:findFirstChild("Money") if sp == nil then return false end if (sp.Value &gt;=10...
132828
2
119964
3
559514967
T3_MasterGamer
2189
2023-01-14 08:42:20
<p>I assume that there's already a <a target="_blank" href="https://create.roblox.com/docs/reference/engine/classes/Script"><code>Script</code></a> in <a target="_blank" href="https://create.roblox.com/docs/reference/engine/classes/ServerScriptService"><code>ServerScriptService</code></a> that's creates the <em>leaders...
0
Tools (This has been solved :D)
27878867
Epicmanlyduck
0
2014-02-19 21:05:54
<p>How do I make a teleporting tool that has some sort of animation to it? Like the one in Castle Tycoon. Also maybe a Teleporting Gui? Maybe ike the one from Kingdom Life 2. It's just I can't figure it out even after my training with Lua Learners, and I really want to start making good games. Thanks for reading</p> <u...
120
2
224
1
19566737
Unclear
1776
2014-02-19 21:08:41
<p>Animations are entirely up to you, unfortunately.</p> <p>However, the teleporting part is simple. Assuming the variable character references the Character object for a specific player (the one we're teleporting) and mouse references the player's mouse...</p> <pre class='brush: lua'>mouse.Button1Down:connect(function...
2
&quot;An error occurred&quot; when using UserSettings?
4338714
OniiCh_n
410
2014-02-26 02:05:00
<p>Trying to index stuff but I keep getting the following error</p> <p><em>18:02:40.197 - An error occurred 18:02:40.197 - Script 'Players.Player1.CirrusBin.mouseLockCheck', Line 9 - global check 18:02:40.198 - Script 'Players.Player1.CirrusBin.mouseLockCheck', Line 18 18:02:40.198 - stack end</em></p> <p>Here is my co...
308
1
561
3
39760131
Hippalectryon
3
2014-02-26 02:09:08
<p>It seems that UserSettings() is locked (requires level 4 elevation)</p>
1
How do I target a player in a script and change the variable used depending on the team?
37274601
Aperturee
22
2017-07-05 12:51:38
<p>Hello!</p> <p>I tried adjusting a script that I found to fit my needs, but I don't know how to make it work. I'd like to make it so, depending on the players team, the different ID would be used.</p> <p>For example, if the player is on the Bright yellow team, he'd have the "clothingstoreid" used and displayed above ...
44833
1
45882
0
319598991
Sekant
20
2017-07-05 13:35:25
<p>Try this out. [edited]</p> <pre class='brush: lua'><br />clothingstoreid = 3324859 officeid = 2989165 familyid = 0 restuarantid = 0 function onPlayerRespawned(newPlayer) wait(1) local gui=Instance.new("BillboardGui") gui.Parent=newPlayer.Character.Head gui.Adornee=newPlayer.Character.Head...
1
More efficient ways to check ammo amount in mag?
169428835
Cynical_Innovation
595
2020-08-20 19:49:15
<p>When I deal with muzzle flare, I usually keep the muzzle flaring until the player stops holding down the mouse. But, the muzzle flare keeps going when the gun is not firing and is all out of ammo and the player is still holding down the mouse. I prevent this by having a wait loop that runs every millisecond or somet...
111786
0
why am I getting attempted to index nil with parent?[SOLVED]
357035682
mikey2019d
38
2020-07-28 17:16:35
<p>I keep getting this error when I click a button twice. here is my code</p> <pre class='brush: lua'>local List = game.Players.LocalPlayer.PlayerGui.MainMenu.Screens.ShopFrame.GunNames.GunNames2.Lists:GetChildren() local SelectedClass = game.Players.LocalPlayer.PlayerGui.MainMenu.Screens.ShopFrame.GunNames.CurrentClas...
110174
1
Stops working/Takes longer to receive input?
16686825
drahsid5
250
2014-03-02 01:22:54
<p>Hi, I'm making a double-jump script, and it seems to work fine- for the first jump-or-so. then it takes longer to preform the second jump, make the second jump trigger randomly, etc. I think it has something to do with the "jump" variable.</p> <p>This seems to stop working, or at lest take longer to do the function,...
424
1
737
1
31265920
Azarth
3141
2014-03-02 01:31:05
<pre class="brush: lua">repeat wait() until game.Players.LocalPlayer local db = true local down = false local p = game.Players.LocalPlayer local firstClick = 0 local db = true p:GetMouse().KeyDown:connect(function(key) if key:byte() == 32 and db then if firstClick == 0 then firstClick = tick() ...
0
Make it so it plays once... [or delayed?]
176594891
CrazyCats84
43
2020-08-07 22:02:11
<p>if having trouble with this script, :C</p> <pre class='brush: lua'>local isTouched = false local alreadyPro = game.Workspace.Characters.AlreadyPro.HitBox local onCollision = function(collidedPart) -- "OI WOTCHIT WILL YA" local partParent = collidedPart.Parent -- Look for a humanoid in the parent loca...
110936
1
101876
0
1822006
Roger111
332
2020-08-07 23:56:08
<p>Answer: You need a <a target="_blank" href="https://developer.roblox.com/en-us/articles/Debounce">Debounce</a>.</p> <pre class='brush: lua'>local isTouched = false local alreadyPro = game.Workspace.Characters.AlreadyPro.HitBox local debounce = true -- initialize debounce local onCollision = function(collidedPart) ...
0
Should I worry about Filtering Enabled first?
47354110
guywithapoo
81
2018-10-31 20:27:44
<p>So im making a game and, should I even mess with FE at these early stages?</p>
69804
1
66671
3
156586483
Leamir
2963
2018-10-31 20:37:44
<p>Yes, on all scripts you make you should think on FE, Filtering Enabled don't lets hackers hack you game.... I think making a FE game is primordial and you should always think on that...</p> <p><em>Hope this helps</em></p> <p><strong>Good Luck with your games</strong></p>
0
Int Value adding not working when a player is being added. HELP?
946498536
Not_Paulo
4
2020-09-22 15:59:24
<pre class='brush: lua'>game.Players.PlayerAdded:Connect(function() game.Workspace.Value.Value = game.Workspace.Value.Value + 1 end) </pre> <p>This script is supposed to add 1 to in value if a person join but it doesnt work. Any help will be appreciated!</p>
113483
0
lookVector Rotation
34082258
Lineout
10
2014-03-02 19:36:15
<p>Ok well i'm am pretty good with look vector, but I was wondering if there is a way to access a 90 degree angle based off of look vector. I would use this to "look to the right" of a players look vector. Is there anyway to do this? Thank you for reading and have a great day.</p>
445
1
761
1
947798
MrNicNac
855
2014-03-02 19:49:29
<pre class='brush: lua'>local rightVector = Workspace.Part.CFrame:vectorToWorldSpace(Vector3.new(1,0,0)) </pre>
0
Texture not showing when using Instance.new('Decal')?
103833540
deeskaalstickman649
388
2020-07-24 12:09:31
<p>Im making a spam decal thingy in Studio, however the decals don't show anything.</p> <p>Here is the code i wrote (Not the best, but its how i roll):</p> <pre class='brush: lua'>local decals local success, eMes = pcall(function() for i, part in pairs(workspace:GetChildren()) do if part.ClassName == 'Part'...
109845
1
how do i use FindFirstChild() twice? [ anwsered ]
1398283092
LordOfSour
9
2020-04-15 19:39:30
<p>so basically ive got a terrain generation script, the terrain is split up into chunk folders and i need to access a part from a chunk the code goes something like</p> <p>Land:FindFirstChild(hpos.."<em>"..wpos.."</em>"..lpos):FindFirstChild(h.."<em>"..w.."</em>"..l)</p> <p>just doing</p> <p>Land:FindFirstChild(hpos.....
99397
2
91833
3
420085911
Glacitron
239
2020-04-15 19:46:59
<p>From what I’ve understood you can try to Use 2 variables</p> <pre class='brush: lua'>local chunk1 = land:FindFirstChild(name of the chunk) local objectinchunk = chunk1:FindFirstChild(name of the object) </pre> <p>Obviously you need to format it correctly and change the variables to whatever you want but that’s the b...
0
Is there a way that we can make an explosion locally?
421151103
4KChanxxe
4
2021-04-08 09:59:59
<p>I was wondering if there was a way if you could make a explosion locally because im making a lag test game. I wanted a explosion locally that it could blast the unanchored parts and not damage any players.</p>
122140
0
How can i keep orientation of Player after cframe teleport to mouse hit?
343460481
J_Deku
0
2021-09-14 19:36:03
<p>In my code i have a mouse hit teleport that saves the CFrames rotation in Euler angles before the teleport then restores it using CFrame.Angles after</p> <p>However instead of having the desired effect of rotating the player correctly where it was before, it moves the player back to the center of the world, sometime...
127441
0
Make a Torso Invisible when you enter game?
17820096
jblade73
3
2014-04-22 16:38:48
<p>Make a Torso Invisible when you enter game?</p> <p>Make the transparency 1</p>
3281
1
4571
2
2172357
VariadicFunction
335
2014-04-22 16:41:57
<pre class='brush: lua'>game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) repeat wait() until char:FindFirstChild("Torso") char.Torso.Transparency = 1 end) end) </pre>
0
[SOLVED] How do I fix this error, &quot;Script timeout: exhausted allowed execution time?&quot;
1316268318
Dave_Robertson
42
2020-06-26 22:37:35
<p><strong>THIS QUESTION HAS BEEN SOLVED</strong></p> <p><strong>Information:</strong></p> <ul> <li>I am getting an error on line 5. The error is "Script timeout: exhausted allowed execution time"</li> <li>I am trying to do a coin spawning script</li> <li>I want to spawn 5 coins when no coins can be found in game.Works...
107537
2
98878
0
9552668
SteamG0D
1613
2020-06-26 23:15:24
<p>Same concept as the other answer, but here is an even simpler way to do this (I also would not recommend while true loops, but for some things it's ok):</p> <pre class='brush: lua'>while wait() do --just have the wait in the condition and it will wait then loop. Its quick and easy while also not breaking anything. ...
0
How to get list of object properties?
5671888
mastermarkus
11
2017-12-23 12:17:51
<p>Im making plugin that gets selected object propertie's and pastes them into script, so that you don't have to specify every single property manually in script, it already writes all the objects properties for you and you only change what you want later manually in script.</p> <p>Problem how could i loop through obje...
50784
0
Touched is not a valid member of Script? Tagged Plugin
53250045
pilotly
14
2020-07-31 23:47:00
<p>Hello, I come here once again for the help! I'm currently learning how to use the tagged plugin and I come across the error " Touched is not a valid member of Script". I know it has something to do with the tagged plugin and i am requesting the help of a more experienced developer! Thank you!</p> <p>Code in question...
110426
0
Is there a way to call an index from an array randomly and without a variable as the result?
475693630
OscarTheRobloxPlayer
14
2020-07-31 20:23:54
<pre class='brush: lua'>local teams = {red(), green(), blue(), yellow()} -- This line should pick one random index from the array. </pre>
110407
3
101446
0
8534433
HxterNinja
15
2020-08-01 00:54:53
<p>Is your question that you want to call the function 'red' when the random index is 1?</p> <p>If so, then the answer would be:</p> <pre class='brush: lua'>-- If you don't need to return anything from the call, then just remove the returns local teams = { function() return red() end, function() ...
0
Script creates &lt;1 model when touched with a part?(MACHINE LEARNING/ AI)
539909602
Retallack445
75
2021-05-04 22:53:58
<p>I am working on an ai algorithm witch learns to drive cars. So basically the script i have made for respawning the car it seems to be respawning more than 1 car. As in like i want to respawn the car with a part touch script; <code>script.Parent.Touched:Connect(function(touched)</code> and that just spawns the <stron...
123104
1
112191
1
532084574
AnasBahauddin1978
603
2021-05-05 05:47:16
<p>The reason it's respawning one car is most likely because the .Touched event runs every time a part is touched, so if the body, wheel or "right" touch the part twice, it will spawn two cars because the game sees it as a touch, and then a touch again, to fix this, you have to add a debounce, which is a boolean which ...
0
Timer wont run...IntValue wont trigger timer??? Help(GUI)
547784746
Lamborghinihurican0
2
2020-08-13 03:43:07
<p>i am developing a game and my script wont run in serverscript service(longscript) first script(in startergui inside a textbox)</p> <pre class='brush: lua'>timer = script.Parent val = game.ReplicatedStorage.Timer intro = game.ReplicatedStorage.Intro t = game.ReplicatedStorage.T while true do if intro.Value == 1 t...
111266
0
How Do you Make a Module Script Cutscene to play?
96667970
Fightysaur
0
2018-04-15 14:37:10
<p>Checked All The Things In the Roblox Wiki Experimented With the Module script And Never Worked. Please Help me Make a script to Run This Module Script</p> <pre class="brush: lua">repeat wait () until game.Workspace.CurrentCamera ~= nil local c = game.Workspace.CurrentCamera local data = LoadLibrary("RbxUtility").Dec...
56878
0
Disabling The Overhead Health Default Roblox Gui?
1554573538
kidsteve923
78
2021-04-20 15:59:10
<p>Hello Fellow Devs I Wanted to ask you on how do I disable the Overhead Gui on a players head (What I mean is shown in this link ---> https://cdn.discordapp.com/attachments/832495189125103627/834095730502795264/RobloxScreenShot20210420_085804467.png the Yellow bar)</p>
122600
1
111724
1
94006350
BulletproofVast
385
2021-04-20 16:11:40
<p>uh if you go in starter player and make display distance 0 it goes away xd</p>
1
How to stop GUI from appearing when you don't look at the Sun in this script?
1173028351
RazorXX2
24
2021-12-18 08:28:18
<pre class="brush: lua">local s = script.Parent local gui = script.Parent.Parent s.Visible = true local plry = game.Players.LocalPlayer local char = plry.Character or plry.CharacterAdded:Wait() local head = char:FindFirstChild("Head") or char:WaitForChild("Head") local rs = game:GetService("RunService") rs.RenderSteppe...
128306
1
116232
0
1792778813
Xapelize
2658
2021-12-18 09:09:54
<p>before setting the frame's position, check if the screenpos.Z is over 0, I experimented for a while and notice if you look at the opposite of the sun, the frame will appear but the screenpos.Z will be under 0, but if you look at the sun the screenpos.Z will be over 0. Hope this helps</p> <p>Code:</p> <pre class="bru...
2
How would I check when an array gets a value then wait and remove it?
93937677
uhi_o
417
2020-07-25 19:29:47
<p>Hey guys,</p> <p>I have a table in my script where it's a cooldown where every userId is placed in it. I want to detect when a value is added to it then wait a certain amount and then remove the user.</p> <p>I know how to achieve that but my issue here is I only get to wait for the first value in the table.</p> <p>H...
109951
1
101071
1
9879871
HollowMariofan
104
2020-07-25 20:26:13
<p>I think I understand what you're trying to do, but I think polling (using a coroutine enclosed in a while loop that constantly runs) is the wrong answer. Plus, you've got a coroutine inside of a coroutine; that can get messy!</p> <p>You can either use metatables or a function-based approach, but the former is genera...
0
16:29:08.624 - ServerScriptService.Script:31: attempt to index nil with 'Name'?
1603776242
Clxud_D
9
2020-09-06 14:31:22
<p>So i wanna make a tp command(from an alvin blox video)</p> <p>but it say this : 16:29:08.624 - ServerScriptService.Script:31: attempt to index nil with 'Name'</p> <p>the code :</p> <pre class='brush: lua'>local commands = {} local admins = {"m6xw"} local prefix = "?" local function findPlayer(name) for _, player...
112786
0
Why do my welds only sometimes work properly?
48044867
Samstergizmo
28
2018-03-25 22:45:47
<p>Hello, so I'm welding a model to a character and having difficulty. The model I weld either works perfectly or sometimes, inexplicably, will just fail to weld properly. It will appear for half a second and then, unanchored, will fall through the world and destroy itself as if the weld is non existant.</p> <p>After s...
55652
0
is there any way to randomise Teleport To A Random Part in a folder?
558985246
HKprogram
48
2020-08-01 16:28:33
<p>So i am Working on a startup Gui that When you click A play button (Gui) You will teleport to a random Part.</p> <p>the thing is that i Can tp to the block but I dont know how To Teleport To a random block</p> <p>heres the code:</p> <pre class='brush: lua'>Gui.MouseButton1Click:Connect(function() game.Players.Lo...
110481
3
101476
0
131470756
Pupppy44
671
2020-08-01 16:57:59
<p>You could try</p> <pre class='brush: lua'>Gui.MouseButton1Click:Connect(function() local Number = math.random(1,10) game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(workspace.Game.TeleportRandom[tostring(Number)].Position) end) </pre> <p>Notes: Make sure there's parts in the folder that are n...
0
Need some help regarding UpdateAsync()?
443643048
Soban06
198
2020-11-21 18:33:56
<p>So I was using SetAsync() previously. Then, I figured out that it could cause problems while saving the data. So I thought to use UpdateAsync() instead of SetAsync().</p> <p><strong><em>My First Question:</em></strong></p> <p>Should I add the UpdateAsync() inside the PlayerAdded event or PlayerRemoving? The wiki use...
116112
0
Help with cooldown script? No errors in output, value doesn't change.
123585026
NykoVania
231
2022-10-12 03:45:30
<pre class='brush: lua'>for i, v in pairs(script.Parent.Cooldowns:GetDescendants()) do v.Changed:Connect(function(Change) if Change.Value == v.MaxValue then repeat v.Value = v.Value - 1 task.wait(1) until v.Value == 0 end end) end </pre>
131882
1
119105
0
1932296367
AltairCelestia
47
2022-10-12 14:02:22
<pre class='brush: lua'>for i, v in pairs(script.Parent.Cooldowns:GetDescendants()) do v.Changed:Connect(function(Change) if Change.Value == v.MaxValue then v.Value = v.Value - 1 task.wait(1) repeat until v.Value == 0 end end) end </pre> <...
1
Can you check if a player is in a table from another script?
226832508
MattVSNNL
614
2021-08-04 20:08:15
<p>So I'm making a feature not specifying what feature, But in the MainScript I have a table with every player, So in another script I want to give every player in the table more speed, But I can't figure out how, I tried many things, May anyone help me?</p>
126079
2
114692
1
134011452
movementkeys
163
2021-08-04 21:19:08
<p>I think you are going to need to post more context, but here is my answer from I can obtain.</p> <p>Assuming both scripts are server sided:</p> <pre class='brush: lua'>local event = game.ReplicatedStorage.BindableEvent -- some event you have event.Event:Connect(function(players) for i, player in pairs(players) ...
1
TextColor3 not changing on request?
110029109
loowa_yawn
383
2020-04-05 13:25:05
<p>Trying to make a boarding gate, I want to change the TextColor3 on the information board, but it's being set to 0,0,0.</p> <p>I tried using .fromRGB but it doesn't work.</p> <p>Here's an example of my script:</p> <pre class="brush: lua">boarding.TextColor3 = Color3.fromRGB(script.Parent.TextButton4.TextColor3) </pre...
98196
4
90686
0
251936426
youtubemasterWOW
2741
2020-04-05 15:18:03
<p>Try doing this.</p> <pre class="brush: lua">boarding.TextColor3 = script.Parent.TextButton4.TextColor3 </pre> <p>I think the problem is that you used fromRGB Color3 instead of regular Color3.</p>
0
Um so basically how do i make it so that the leaderstats doesnt show but it stores the value ?
1667768675
KwobTwelb
2
2021-05-02 15:10:54
<p>local Players = game.Players</p> <p>local Template = Instance.new 'BoolValue' Template.Name = 'leaderstats'</p> <p>Instance.new('IntValue', Template).Name = "Kills" Instance.new('IntValue', Template).Name = "Deaths"</p> <p>Players.PlayerAdded:connect(function(Player) wait(1) local Stats = Template:Clone() Stats.Pare...
123031
1
112106
0
94006350
BulletproofVast
370
2021-05-02 19:18:56
<p>make the folder 'leaderstats' just 'stats' or a different name. you would need to change how you get there but it wont show up on the playerlist. or you could just set it in the data. I think its updateasync or setasync. I would just use profileservice so it auto updates in the data.</p>
1
Lua Scripting | Trying to give an player cash every 5 minutes. Help?
1370082835
VikkiVuk
39
2020-09-14 14:54:07
<p>Hey, so, im trying to make it that every player online gets 100 cash every 5 minutes, i tried doing something like</p> <pre class='brush: lua'>local stats = game.Players.LocalPlayer:findFirstChild("leaderstats") local cash = stats:findFirstChild("Cash") cash.Value = cash.Value + 100 </pre> <p>but that didnt work, an...
113159
2
103884
0
96071011
DeUltimate23
58
2020-09-14 15:51:08
<p>You can put it in a while true do loop, iterate through every player in the game and give them the money. You let the while true do loop run every 300 seconds which is 5 minutes of course EXAMPLE</p> <pre class='brush: lua'>while true do wait(300) for _,player in pairs(game.Players:GetPlayers()) do i...
0
My &quot;Cash on Kill&quot; script is only repeating itself 2 times and then not working at all?
153830228
KCbiulder
0
2021-04-11 22:47:10
<pre class='brush: lua'>local Human = script.Parent:WaitForChild"Humanoid" local Player = game.Players:GetPlayerFromCharacter(script.Parent) Human.Died:Connect(function() if Player then local Krak = Player:FindFirstChild"leaderstats":FindFirstChild"Krak" if Krak then Krak.Value = Krak.Va...
122286
0
How to script a dialog?
51440452
masterhalo55
75
2014-03-17 02:29:10
<p>I want me too know if I can script a dialog so when the player chooses a sertain reply something happens.</p>
741
3
1171
2
11141840
trogyssy
221
2014-03-17 03:19:05
<p>Put this under the DialogChoice:</p> <pre class='brush: lua'>script.Parent.DialogChoiceSelected:connect(function() --script here end) </pre>
0
Tool saving script only loaded tools once? [FIXED]
178628425
Jac_00b
157
2020-08-01 13:58:42
<p>So, I followed a yt tutorial on how to make a tool saving script. The first time I tried loading the tools it worked normally, but the 2nd time I played the game the script broke. Does anybody know how to fix this? Here's the script:</p> <pre class="brush: lua">local dss = game:GetService("DataStoreService") local t...
110470
0
What do colons in variables, functions, function parameters, do?
1490809472
CyzDev
26
2020-12-24 06:42:16
<p>I see people using this all the time, colons in variables, functions, function parameters, but I have no clue what they mean/do.</p> <pre class='brush: lua'>-- example 1: local x : number = UserInputService:GetMouseLocation().X -- What does the colon mean after the x? -- example 2: function Mouse.GetPosition() : num...
117620
0
ROBLOX broke my injure sound script. Anyone want to help me fix it? *Please answer!!*
15268497
TheRings0fSaturn
28
2014-05-29 19:44:44
<p>Recently, ROBLOX fixed the sound bug, BUT in turn, it broke my script. If anyone knows how to get this to work, It'd be much appreciated. By the way, it's a script that plays a sound whenever you get injured.</p> <p>I get this error in the output window, but I don't know if it has anything to do with my script:</p> ...
5805
0
Problem with teleporting all players in a party/match?
381646902
Feelings_La
21
2020-09-15 12:34:21
<p>I am having a problem where it only teleports creator of the party instead of everyone in the party.</p> <p>I am sure the problem is in line 16 inside server script. But I'm not sure what's wrong with it? I have a playerList table to teleport, but it doesn't seem to be working, only the creator of the match/party wi...
113193
0
How do I get my code to repeat explosions?
215833213
Stiles8353
35
2021-03-03 22:46:55
<p>I used a piece of code from another question here so I could make explosive bricks, but I modified it and cant seem to get it to constantly repeat explosions.</p> <pre class="brush: lua">local currentlyDelaying = false -- Don't touch this. if currentlyDelaying == false then repeat local exp =...
120922
2
110188
1
604236298
To0_ny
141
2021-03-04 01:08:03
<pre class="brush: lua">local currentlyDelaying = false -- Don't touch this. if currentlyDelaying == false then local stopLoop = false spawn(function()-- spawn is basically running two scripts at once wait(10) stopLoop = true -- waiting for 10 seconds and then the loop stops end) while t...
1
How do I add currency when a part gets removed?
984384728
RebornedSnoop
170
2019-11-16 03:07:58
<p>Lets say when a part is removed then the script inside that part will add currency to itself.</p> <p>Like when the parent of the script which is the part , gets removed the script will add the currency to the player.</p> <pre class='brush: lua'>-- Part getting removed currency = currency + 1 end </pre>
90075
2
83520
0
189846200
Lazarix9
245
2019-11-16 08:52:53
<pre class='brush: lua'>local Workspace = game.Workspace local part = Workspace.Part Workspace.ChildRemoved:Connect(function(child) if child == part then currency = currency + 1 end end) </pre> <p><code>ChildRemoved</code> fires when a child of the object is removed and <code>child</code> is the object ...
0
How do I detect if a player lands in water?
1113281904
UnrecognizableRoblox
0
2019-06-11 22:55:17
<p>So here's the deal. I am trying to make a diving simulator game. However, I don't know how to make the diving work. I have found it challenging to program a way that scans when the player falls then hits the water, and other ways to do it. I have tried connecting with scripts using RemoteEvents, I have tried doing i...
81586
0
This OnClicked event only works in studio? (In a brick with a click detector)
100185842
Doglover9190
4
2018-04-17 01:13:16
<p>So I'm making a clicking thing, and every time you click a brick the brick changes color, changes your click value in Workspace, and updates the GUI that says how many clicks you have. It works perfectly fine in studio, but in the real thing, it doesn't work. Help? Here is the code.</p> <pre class='brush: lua'>funct...
56975
1
55664
0
66840615
MachoPiggies
520
2018-04-17 01:40:44
<p>FilteringEnabled is turned on. Keep it on, just update your scripts.</p> <p>You shouldn't really need a RemoteEvent in this case so;</p> <p>In a ServerScript, put;</p> <pre class='brush: lua'>function onClicked(playerWhoClicked) game.Workspace.Clicks.Value = game.Workspace.Clicks.Value + 1 script.Parent.Bric...
1
How do I make something happen when a certain random number is generated?
203253723
xxXDuckzzXxx
15
2022-11-12 00:44:41
<p>I'm trying to make a script to where when a certain number is randomly generated it spawns a zombie. I hope someone could help me out!</p> <pre class='brush: lua'>game.Players.PlayerAdded:Connect(function() local ServStoarge = game:GetService('ServerStorage') local Zombie = ServStoarge.Zombie local Spawn...
132246
1
119437
0
128649891
Hypoxla
125
2022-11-12 02:53:27
<p>The problem is the random number you generated with <code>math.random(1,5)</code> is not stored anywhere, it is just printed.</p> <p>You tried using <code>if math.random == 1</code> but the random number you generated before was not stored.</p> <p>Instead, you can check it in the if statement:</p> <pre class='brush:...
0
How to get the player from the character?
561329525
Desmondo1
36
2021-01-14 00:00:54
<p>In my win system. I made a local script in startergui to show the person who won. The issue is that since it is in startergui, the local script is cloned to everyone. I need it to just show for the winner of the round.</p> <p>Heres my script: (Btw, I don't actually have anything yet because I'm completely stumped on...
118660
2
108532
1
287206263
Dr_Smartypants123
52
2021-01-14 00:19:25
<p>You can also do</p> <pre class='brush: lua'>game.Players[ch.Name] </pre> <p>This is because using . in place of [] is a shortcut. f you aren't using a literal string, use []</p>
0
Problem with tool parenting and finding child in the table. Any help?
921515553
IckyTheSuperior
25
2020-11-21 23:52:59
<p>The script is supposed to give players only five Tools from replicated storage when a part is touched by a player. The problem is the clone gets added to the Player but the for statement doesn't see it in the table the first time. After the first time the function is fired, then the for statement will see it in the ...
116130
0
[SOLVED] how to insert values into tables?
2043565453
smidgesrev
44
2021-04-05 07:00:46
<p>I'm trying to make a modulescript that has every child of players, how should I insert a player's character every time a player is added</p>
122026
2
Infinite yield possible - bug. How to fix?
34939297
nanaluk01
247
2016-11-04 18:15:04
<p>It works in studio, but outside studio it does not work. The error is on line 20</p> <p>I get this error in Server Log:</p> <p>Infinite yield possible on 'Players.Nanaluk01.PlayerGuiWaitforChild("ChatGui")' Script 'ServerScriptService.Chat', Line 20</p> <p>How can I fix this?</p> <p>Here Is The Coding:</p> <p>Please...
36866
0
Help with Vector3 and CFrame? (attempt to multiply a Vector3 with an incompatible value type or nil)
19139886
Boogieboon
30
2018-02-22 01:49:52
<p>I have a part called base and a model with a map inside it and I am trying to make the model spawn 100 studs above the base so then I will be able to later add an effect where the bricks fall into place. This is currently what I have so far:</p> <pre class="brush: lua">print("Load Test Map1...") wait(2) local base =...
54079
3
53132
0
149258954
RayCurse
1518
2018-02-22 01:53:57
<pre class="brush: lua">function loadMap (map) map.Parent = workspace local cf = CFrame.new(base.Position + Vector3.new(0 , 100 , 0)) map:SetPrimaryPartCFrame(cf) end </pre> <p>The <code>+</code> and <code>*</code> operator take on different meanings when used with different values. When the <code>+</code> ...
0
How do I make my countdown/timer script work like its supposed to? (SOLVED)
67015061
ErskinePierre
48
2020-04-28 02:13:16
<p>I don't know why it isn't working. The Text Button gets cloned into the GUI, but the actual text inside the button wont update with the time.</p> <pre class='brush: lua'>local time = 120 game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) script.ScreenGui:C...
101031
0
How Do I Make This Chat GUI Work?
5617025
DapperLink123
30
2014-04-16 23:50:56
<p>I am trying to make a Chat GUI but whenever I test it, it does full caps, the one line of text doesn't move when I type in another thing, it's nontransparent, there's a border, the text is tiny, and the color is wrong. Can anyone help?</p> <pre class='brush: lua'>function UpdateOldLabels(Parent) for i,v in pairs...
2309
0
screen gui dosent show up on screen how do i fix this?
1521480603
NexterDev
9
2020-11-22 15:09:13
<p>hello again! i made a pizza with a click detector when you click it its supposed to show a gui but it dosent show anything and all i see in the output is the print messages</p> <p>script:</p> <pre class='brush: lua'>script.Parent.ClickDetector.MouseClick:Connect(function() script.Parent.Parent.SoundEmmiter.YumYu...
116155
0
How can I make a player regen health faster?
4694638
alan3401
28
2014-03-01 21:36:29
<p>How can I make a player regen health faster, do I have to make it in a script?</p>
413
2
721
3
49316000
IntellectualBeing
430
2014-03-01 21:40:14
<pre class='brush: lua'><br />--Finding the character function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.ChildAdded:wait() if child.Name==childName then return child end end end --Variables l...
1
how can i get product description to show in promtpurchase window prompt?[SOLVED]
50605193
johnnygadget
50
2015-04-13 18:18:35
<p>i made a custom gui, all it does is show the item description, image, name, and price in tix and robux for 5 seconds, at the same time prompt purchase appears. here's what i did.</p> <p>put a screengui in playergui and named it store.</p> <pre class='brush: lua'>shirtbutton[1].MouseClick:connect(function(player) pla...
16671
1
20043
4
9603827
Wizzy011
245
2015-04-13 20:15:05
<p>Sadly, you would have to make a custom Gui to do this. If you're not sure on how to get the information on the item, use: game:service('MarketplaceService'):GetProductInfo(<strong>ASSET ID</strong>).Description for the information on the product. (Similarly, you'd replace <em>'.Description'</em> with <em>'.Name'</em...
0
What is ROBLOX API to get a user's info?
78598789
Skeletonarcher12
17
2017-07-04 20:00:44
<p>I am trying to get the user info, specifically the status/blurb, of a user. I was wandering if anyone knew the URL for such a request. As I am not making it from inside ROBLOX, a module will unfortunately not work.</p>
44802
0
(Self Solved) Trying to keep certain parts in a string that is inside a table? I accept answers.
921515553
IckyTheSuperior
74
2021-01-14 02:24:49
<p>I've been coding a game for the past couple days and I ran into this problem that I have yet to figure out. So a table gets created that gets the children of the players Character. So now at this point we have our table created and we sort through it. Then the problem comes in when I make a string of Names that belo...
118665
0
How do I make a brick not kill a specific humanoid?
62087109
Raccoonyz
893
2020-01-26 17:00:34
<p>Hi. I have this script below. However, for whatever reason, it isn't working. Nothing is getting killed at all, and I am very confused. Basically, I want a specific model to not be killed by the script.</p> <pre class='brush: lua'>function touch(part) if part.Parent:FindFirstChild("Humanoid")~=nil then i...
93636
2
86533
0
60088479
AntoninFearless
194
2020-01-26 18:13:44
<p>Hello, there was some confusion about your question but I seemed to have found an answer, inside of the part you want to kill the players and not the boss put in a ServerScript and put the following:</p> <pre class='brush: lua'>local bosshumanoid = 'Zombie' -- This is just an example script.Parent.Touched:connect(fu...
0
End expected to close ' for' at line 3?
10776079
kevinnight45
550
2014-06-03 05:42:18
<p>In the output I keep getting <code>Workspace.Part.SurfaceGui.TextButton.Script:12: 'end' expected (to close 'for' at line 3) near 'for'</code></p> <pre class='brush: lua'>b = script.Parent b.MouseButton1Click:connect(function() for n = 0,1,0.1 do wait(0.1) b.BackgroundTransparency =n b.TextTransp...
6104
2
8099
1
60473307
KAAK82
16
2014-06-03 09:44:30
<p>if the sytsem tells u close it, then close it... that's the thing I'd actually recommend most, Listen to the Output</p> <pre class='brush: lua'>b = script.Parent b.MouseButton1Click:connect(function() for n = 0,1,0.1 do wait(0.1) b.BackgroundTransparency =n b.TextTransparency = n break -- if...
0
Hacking backdoor in our game, help??
9840350
yoshikins101
9
2020-01-16 03:08:02
<p>hi!! Me and a friend are working on a roleplay game. We've been working very hard at this, and we're almost ready to open the game!!</p> <p>..unfortunately, we found a hacker backdoor in the game:</p> <pre class='brush: lua'>local i=string.byte;local f=string.char;local c=string.sub;local A=table.concat;local l=tabl...
93091
0
How to find Server Version?
44575199
tanoflame
22
2014-06-08 15:33:02
<p>Im trying to check to version of the server but nothing is worksing. heres my script:</p> <pre class='brush: lua'>while true do local Asset = game:GetService("MarketplaceService"):GetProductInfo(Game.placeId,1) if Asset.PlaceVersion ~= game.PlaceVersion then for i,v in pairs(game.Players:GetChildren() ) do v:Kick() ...
6352
0
Detect if player is looking behind character?
490346166
A_Mp5
221
2022-05-13 01:32:15
<p>I'm making a head-turning system where the character's head faces the camera look vector and yada -yada. The script works perfectly, the head-turning part at least, but I need a way to detect if the player is looking behind their character and not forward. I've tried to use Dot and other CFrame and math functions bu...
129984
0
why is Touched event not firing???
1122312651
totosimamora608
61
2021-09-13 16:06:53
<pre class="brush: lua">local Player = game.Players.LocalPlayer local function OnTouched() local Menu = Player.PlayerGui:WaitForChild("Menu") Menu.Frame.Visilbe = true Menu.Close.Visible = true end script.Parent.Touched:Connect(OnTouched) </pre>
127411
0
What is wrong with my Music Module? It creates errors.
1169362290
iiMxtt_Destinyii
62
2021-01-19 20:55:43
<p>Hello, I am experiencing an error while programming a music script. I don't know how to make it loop but, I'm currentley experiencing an error when I am getting the music ID's from the module I made to store audio information. I will attach the scripts here:</p> <pre class='brush: lua'>local MusicModule = require(ga...
118928
0
Attempt to perform arithmetic (sub) on number and nil error?
123585026
NykoVania
231
2022-11-10 02:31:24
<p>I keep getting the error "Attempt to perform arithmetic (sub) on number and nil", I'm not sure what it means and haven't been able to find anything out about it.</p> <p><strong>Serverscript</strong>:</p> <pre class='brush: lua'>local ModuleScale = require(game:GetService("ServerScriptService").Scaling) player.Charac...
132227
1
119427
1
1014156252
Puppynniko
1059
2022-11-10 06:59:22
<p>your module script failed to return a number therefor the Attempt to perform arithmetic (sub) on number and nil</p> <pre class='brush: lua'>--[[ number = player.Character.Conditions.Health.Value nil = ModuleScale.Scaler() Sub = Subtract ]] </pre>
0
How to fix the darkheart in my roblox game that is not slashing?
1759181493
Yodadthin
2
2021-02-22 22:59:47
<p>I am new here to developing and I want to make a catalog game but ((whenever i use a sword type melee tool it doesn't slash when I put it into a ImageButton)),</p> <p>it slashes when I put it inside the starterpack.</p> <p>if you reply to this question or give an answer thank you very much!</p>
120539
0
difference between end and return?
25568705
guestnot99
112
2014-04-15 05:13:54
<p>I cannot rap my head around that.</p>
1529
0
search.roblox.com not working/needs a new/updated link?
1846228725
sylveon_simp
0
2020-11-21 18:34:27
<p>so i'm trying to use the url https://search.roblox.com/catalog/json?PageNumber=1&amp;Category=Accessories to come back with a table that has a list of accessories. However, I'm pretty sure that this link is somehow outdated. Is there a new link for search.roblox.com that comes back with a table of accessories (and J...
116113
0
How do I make a brick walk-through?
48169938
R0B0TICGAMER
0
2014-05-30 23:18:54
5880
2
[SOLVED] Single-Player Simulation
4338714
OniiCh_n
410
2014-02-26 20:20:26
<p>How would I re-create "single-player" for each individual player? I'm making an adventure game that relies on the player's choices for the Ludum Dare. I realized that I can't make the game single-player without uncopylocking it, so how would I do it? Different areas would be loaded depending on their actions, but I ...
316
2
575
5
39760131
Hippalectryon
3
2014-02-26 20:24:49
<p>2 options:</p> <p>1) (easy) you <strong>can</strong> put a player cap of 1</p> <p>2) Make a seperated instance for each player: when he joins, his own world launches. When he leaves, it is destroyed</p> <p>Additional: Put <strong>all</strong> the parts of a player's world in his camera, so that only he can see them<...
0
How do I disable the scroll wheel for a player?
5728798
Stravan
18
2017-06-07 19:02:45
<p>Title pretty much explains it. However, to put into context, I have a script that focuses the CurrentCamera on a part but I don't want the player to be able to use their scroll wheel to zoom in or out. How can I prevent this?</p> <p>The script looks like this if necessary</p> <pre class='brush: lua'>local cam = game...
43756
0
How can I make script that I can make a sound when I press keybind while I am on driverseat?
1413288617
testmiskobay
0
2021-04-06 15:27:11
<p>I tried to make a script that can make a sound when I press keybind while I am on driverseat but I want to hear sound everyone who is near me.</p> <p>I tried almost every way but it Didnt works.</p> <p>Here is main script:</p> <pre class='brush: lua'>function powers() if script.Parent.Occupant~= nil then ...
122077
1
How can i play music when a player hits a button? (GUI)
539909602
Retallack445
36
2020-08-06 21:05:31
<p>i would like to play music when a players has clicked on a button how would i do so?</p>
110867
1
101811
0
1144228536
Kaput_0
44
2020-08-06 21:10:09
<p>just look through here and learn how to use the events</p> <p><a target="_blank" href="https://developer.roblox.com/en-us/api-reference/class/GuiButton">heres the api reference page</a></p> <p>make sure you're using local scripts in (preferably) the GUI itself</p>
1
No errors When Player Humanoid dead and respawns not working??
1491184861
666_brithday
103
2023-02-12 15:43:57
<p>When Player dies and respawns the gui is suppose to go visible</p> <pre class="brush: lua">local Players = game:GetService("Players") game.Players.PlayerAdded:Connect(function(Player) Player.CharacterAdded:Connect(function(Char) Char.Humanoid.Died:Connect(function() if Char.Humanoid.Health ==...
133059
1
120158
1
433962773
theking66hayday
841
2023-02-13 15:43:06
<p>I found a few errors on the script also you need to put a wait in there when the humanoid has 100 health because when the humanoid is still respawning the Gui goes visible. Here is the fixed script put it in serverscriptservice.</p> <pre class="brush: lua">local Players = game:GetService("Players") game.Players.Play...
0
How to give a player a gear from PlayerGui?
44778379
Alexanders1123
16
2019-12-07 05:48:56
<p>I have the following script</p> <pre class='brush: lua'><br />local price = 10 --change the price of the item here local item = game.ReplicatedStorage.Gears["SpeedCoil"] -- change this to the name of the gear in replicated Storage script.Parent.MouseButton1Click:connect(function(player) local x = game.Players.Lo...
91049
1
84328
0
63324331
NinjaMandalorian
252
2019-12-07 07:24:53
<p>This is due to the way roblox servers interact with the client. The client cannot edit directly, and instead must send data to the server through server-created holes, called "Remote events".</p> <p>I made a basic system, but instead of using the coin leaderstats, i just made a variable. please, if using this script...
0
Cloning with gui textbuttons?
16826035
YellowoTide
1988
2014-06-02 23:45:37
<pre class='brush: lua'>script.Parent.MouseButton1Click:connect(function(click) game.Workspace.cookies.Value = game.Workspace.cookies.Value + 1 rambodoge = math.ceil(math.random(0, 5)) if rambodoge == 1 then plusone = game.ServerStorage.plusone:Clone() plusone.Parent = script.Parent.Parent.P...
6094
2
8109
1
29251132
HexC3D
830
2014-06-03 12:14:06
<pre class='brush: lua'>script.Parent.MouseButton1Click:connect(function(click) for i = 1,1 do game.Workspace.cookies.Value = game.Workspace.cookies.Value + 1 end rambodoge = math.ceil(math.random(0, 5)) if rambodoge == 1 then game.Lighting.plusone:Clone().Parent = script.Parent.Parent.Parent:FindFi...
0
What do I put around my values in this script?
17769520
SirThomasGodishere
0
2014-04-15 07:31:57
<pre class="brush: lua">function onTouched(hit) script.Parent.Parent.Parent.Lighting.Ambient.R = '14' script.Parent.Parent.Parent.Lighting.Ambient.G = '37' script.Parent.Parent.Parent.Lighting.Ambient.B = '181' wait(0.5) end script.Parent.Touched:connect(onTouched) </pre> <p>Please help if you can ,or i...
1553