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
UDim2 size changing acting weirdly?
42416688
jjwood1600
215
2016-08-25 08:13:32
<pre class="brush: lua">script.Parent.Colours.Red.Size = UDim2.new({sliders, 0},{0.761, 0}) </pre> <p>Hi guys!</p> <p>On printing I can see that "sliders" does equal a value - this just makes the size go to (0,0,0,0) for some strange reason?!</p> <p>Any ideas why the size won't change?</p>
34982
1
37563
3
21467784
MrLonely1221
701
2016-08-25 08:35:54
<p>The problem you are having while setting it is a simple one to fix. Roblox doesn't like when you do this</p> <pre class="brush: lua">script.Parent.Colours.Red.Size = UDim2.new({sliders, 0},{0.761, 0}); </pre> <p>So you have to do this</p> <pre class="brush: lua">script.Parent.Colours.Red.Size = UDim2.new(sliders, 0,...
0
Attempt to index nil with number (line 23)?
206143181
Philipceo90
13
2020-11-21 16:41:31
<pre class='brush: lua'>local ServerStorage = game:GetService("ServerStorage") local Tags = ServerStorage:WaitForChild("PlayerTags") local RankColors = { Owner = {Color3.fromRGB(255, 0, 0)}; Admin = {Color3.fromRGB(255, 0, 0)}; Moderator = {Color3.fromRGB(42, 126, 0)}; YouTuber = {Color3.fromRGB(255, 0,...
116104
0
How do i make a max limit on a team?
51440452
masterhalo55
75
2014-03-12 00:42:38
<p>I need only 10 members in a team in my game, how do i script that?</p>
643
0
Is there a way to customize the Proximity Prompt?
120961855
Rafii2198
56
2021-02-11 18:54:46
<p>By customize I mean the graphics, mainly color of the background or maybe even setting custom image for that</p>
119979
0
Charecter Invailded
1144900
DeveloperAtWork
14
2014-03-02 14:14:39
<pre class="brush: lua">function yes(Player) local h = script.Parent.Parent h.Visible = false local Player = game.Players.LocalPlayer local Charecter = Player.Charecter Charecter.Torso.Anchored = true script.Parent.Parent.Parent.Yes.Visible = true local rob = script.Parent.Parent.Parent.Robb...
439
1
Why leaderstats don't apear?
113545729
alexandruboc22
12
2021-04-23 08:20:53
<p>I try make a clicker game and I finded a tutorial on youtube but I cannot make leaderstats work.Here's the script I finded: local event = Instance.new("RemoteEvent") event.Name = "AddStats" event.parent = game.ReplicatedStorage</p> <p>event.OnServerEvent:Connect(function(plr) local taps = plr.leaderstats.Taps taps.V...
122694
0
My leaderstats are not working due to DataStore2?
432744209
Baselistic
79
2020-09-12 17:34:03
<p>Hi! So, I tried to use a normal datastore and it did not work (Maybe because I do not use it properly or I just take it as unpractical). So I heard about DataStore2, And It sounded kind of easy especially having multiple methods of doing it. so I tried it out and my leaderstats seems to not work and the leaderboard ...
113071
0
How to make the script play the music louder on death?
331809274
TechModel
4
2021-02-26 11:19:47
<p>I have this script that plays a certain death music when you die, but it is too quiet. I want to add a volume increase to the script but it doesn't work.</p> <pre class='brush: lua'>local IDs = { 3242409200,784747919,4134880887,4930282522,2946037756,1838457617,6234792983 } local Random_ID = string.format("rbxass...
120699
0
How to I make a walk animation for my custom starter character?
351467574
Galaxybombboy
39
2020-11-22 19:22:10
<p>I have the walk animation, But i dont know how to actually implement it into the starter character</p> <p>Here is the walk I'm trying to use</p> <pre class='brush: lua'>walk = { { id = "http://www.roblox.com/asset/?id=5989392991", weight = 10 } }, </pre> <p>and here is my locals</p> <pre class='...
116166
1
Will my DataStore corrupt if I do this?
386632990
gmatchOnRoblox
98
2018-01-15 20:04:39
<p>If I go into a game (we'll call it the main game) and publish it to a different game place so I can test and edit without affecting the main game will it affect the DataStore at all? I haven't really tried this in fear of corrupting the players data.</p>
52179
0
How do i open and close a shop gui?
183699517
Coolmansunsh
26
2021-07-27 13:03:17
<p>whats the error in this bc my shop gui aint working</p> <p>shopButton.MouseButton1Click:Connect(function() mainFrame.Visible = not mainFrame.Visible end)</p>
125788
2
114441
0
465047577
xXLegendGamerz16Xx
231
2021-07-27 13:05:02
<pre class="brush: lua">shopButton.MouseButton1Click:Connect(function() mainFrame.Visible = false end) </pre>
0
Is there a command to anchor everything?
21949263
poopy123guy
0
2017-01-18 22:07:32
<p>When I was building a game for a group, I forgot to anchor everything, a noobie I am.. I've looked it up and found nothing because I'm a bigger noob at scripting.Please help.</p>
39158
1
41451
0
8310972
RubenKan
3590
2017-01-18 22:10:20
<p>Run this in the command bar. This will loop through every instance in workspace, nested search, and turn every parts anchored value to true.</p>
0
The Code That I am making is not working and I don't know why?
595106923
VipDanT
10
2022-09-10 21:32:24
131579
1
118836
0
31555337
taxicar24
19
2022-09-11 03:35:48
<p>I took a decent look at that script and it seemed like your attempt to call the "chatted" function was wrong. This is how I usually do it.</p> <pre class="brush: lua">admin = {"VipDanT"} game.Players.PlayerAdded:Connect(function(plr) plr.Chatted:Connect(function(msg) if table.find(admin, plr.Name) then ...
1
Gamepass Only AutoClicker Help?
2024998003
NOLIFE_DEV
25
2021-04-01 01:29:25
<pre class='brush: lua'><br />while true do wait(0.1) for _,plr in pairs(game.Players:GetChildren()) do local stats = plr:FindFirstChild('leaderstats') if stats then stats.Money.Value = stats.Money.Value + 1 end end end </pre> <p>This is my script for giving 1 money per s...
121878
1
111020
0
1251627904
CodeWon
121
2021-04-01 14:19:44
<p>You can do this using market place service: <a target="_blank" href="http://developer.roblox.com/en-us/api-reference/class/MarketplaceService"></a></p> <p>First of all, you need to create your gamepass and you need to make a variable for the service. Get the gamepass id and put it here:</p> <pre class='brush: lua'>l...
0
ClickDetector is not a valid member of ClickDetector? What?
51237105
PyccknnXakep
1225
2014-08-11 17:27:01
<p>This is the script:</p> <pre class="brush: lua">local gui = script.Parent.Parent.night_GUI:Clone() function click() gui.Parent = game.Players.LocalPlayer.PlayerGui wait(1) script.Disabled = true wait(60) script.Disabled = false end script.Parent.ClickDetector.MouseClick:connect(onClick) </pre> <p...
9550
2
12196
1
44831585
jillmiles1
3
2014-08-11 17:40:04
<p>Simple spelling Error.</p> <pre class="brush: lua">script.Parent.ClickDetector.MouseClick:connect(click) </pre>
1
How to I detect if something is 'inactive' ?
37652173
DeveloperSolo
355
2016-05-04 02:11:42
<p>So I'm trying to detect if the Surface GUI has been clicked in x amount of time (let's just say 5 seconds). If it is idle for x amount of seconds, then the GUI resets (I have that code done). I have no idea, I tried doing mouse.Idle() but that would be for the mouse, not the gui. Also the mouse is always idle when n...
30272
1
33647
0
89648312
iDev_Percy
45
2016-05-04 16:18:23
<p>Try this:</p> <pre class='brush: lua'>if mouse.Idle then Reset() end </pre> <p>But make sure that you actually have that in a function or something if you want it to work. Otherwise, you'll wanna do:</p> <pre class='brush: lua'>mouse.Idle:connect(function() Reset() end) </pre> <p>I suggest you use the one ab...
0
I honestly have no idea, what does Random.new() do?
103833540
deeskaalstickman649
388
2020-07-27 19:04:55
<p>I have no idea what the Random.new() constructor does. For me, all it did was return 'Random'.</p>
110093
0
How do I create a String from a leaderstat Inventory?
292614224
MoreExactDev
0
2020-06-30 01:59:39
<p>So what I'm trying to do is detect a certain item in a leaderstats inventory (sound code) to then play said sound to the whole server.</p> <p>Ive tried to search for it in leaderstats but I don't know if i wrote my code wrong or this isn't the way to do it</p> <pre class='brush: lua'>local players = game:GetService(...
107811
2
Rocket Propulsion Sinking Beneath Base Plate? Help!
84199525
chaos2022
43
2018-10-18 03:25:55
<p>So I tried asking this question earlier but I think I was unclear so here it is:</p> <ul> <li><p>Sentry moves in a simple route from point A-B-C-D-A-etc but when slowed to a certain amount it starts to sink beneath base plate(slows are essential to gameplay)</p></li> <li><p>The only solutions I've found are having a...
69066
1
I have a poroblem. When i donate something with the button it doesn't give the robux...?
1529247459
TestGloryRare
7
2020-08-02 04:26:33
<p>I have a problem. When I donate something with the button it doesn't give the Robux, I have a working button but when I actually donate it won't give the Robux to the creator, can someone tell me what is the problem.</p> <p>STORY: I donated ROBUX to my sister because she wanted me to make a donation button and then ...
110523
0
&lt;eof&gt; expected near end? What's that mean?
65873516
Irvene
5
2014-08-24 18:06:54
<p>Made a script, and on line 55, it says that there's a &lt;eof> expected near end. That's the error? What's that supposed to mean??</p> <pre class='brush: lua'>BlueTeam = game.Teams["BlueTeam"]:Clone() local RedTeam = game.Teams["RedTeam"]:Clone() local NumPlayers = 2 repeat wait(0)until game:FindFirstChild("Teams") ...
10176
0
Why isnt my script moving the entire dummy?
182578775
grandiosav4
62
2021-05-18 16:46:03
<p>Ok so in my game i have a script that moves a monster when the game starts which is currently just a dummy. But when i tell my script to move the HumanoidRootPart it only moves the actual HumanoidRootPart and not the entire body as it should. Does anyone know why this is?</p> <p>There is no error's in the console.</...
123554
2
112648
1
1372581081
SpeedySixTen
50
2021-05-18 17:00:49
<p>If you want to move an entire model you have to use :MoveTo(). Here is the Roblox Api Reference to it: https://developer.roblox.com/en-us/api-reference/function/Model/MoveTo</p> <p>For example, in your case it would be:</p> <pre class='brush: lua'>Monster:MoveTo(randomMonsterSpawn.Position) </pre> <p>Hope this helps...
0
how to prevent remotes from being spammed using the server-side script?
92101177
Elixcore
1337
2018-06-30 02:34:20
<p>so if I have a remote called print and if you execute it from the localscript it prints out whatever the argument is, how would I make the remote usable only once every second using the server script?</p>
61447
2
59831
3
39250676
ScriptGuider
5640
2018-06-30 02:54:12
<p>Keep track of the last moment the remote was fired on the server. Compare the last time a specific client fired the server event, and if it's past or equal to some <em>cooldown</em>, allow the code to execute.</p> <pre class='brush: lua'>local PlayerService = game:GetService("Players") local REMOTE_COOLDOWN = 1 loca...
0
How do I add to my leaderstats value?
47264078
caitlinsmp
2
2022-10-31 09:24:42
<p>I'm currently making a game where you have to find presents. I want to make it so that when you touch a present it changes to green and adds one point to your leaderstats value. I also want to make sure that if you touch a present that has already been touched it wont give you another point. In one script under the ...
132097
1
119311
0
245864252
xInfinityBear
1335
2022-10-31 10:02:13
<p>You can use the parameter that comes with the <a target="_blank" href="https://create.roblox.com/docs/reference/engine/classes/BasePart#Touched">Touched</a> event to find the character that came into contact with this part.</p> <p>To make it so the player can only receive the point once, you can use a table to track...
0
I need help with a problem, but I can't send images here :(?
137909220
sebastianperezri
0
2021-09-14 17:15:50
<p>Write to the discord if you are interested in helping, I would appreciate it very much.</p> <p>321sebastian123#9062</p>
127437
1
How to turn an Instance into a String?
356006064
TheRandom_Guesty
5
2023-02-09 21:09:10
<p>So I want to get the players name when triggering the function and change the parts name into the players, but when I try to do that it returns an error:</p> <p>Unable to assign property Name. string expected, got Instance</p> <p><strong>Code:</strong></p> <pre class='brush: lua'>interact.Triggered:Connect(function(...
133046
1
Help me It says attempt with index nil with 'Loading'?
469500873
poppyloverb
20
2021-05-04 19:37:11
<p>This is a localscript in replicatedFirst.</p> <p>Error:</p> <p>ReplicatedFirst.CoreScript:4: attempt to index nil with 'Loading'</p> <p>Script:</p> <pre class='brush: lua'>local player = game.Players.LocalPlayer local LoadGui = player.PlayerGui:FindFirstChild('LoadingGUI') LoadGui.Loading.Position = UDim2.new(0.5, 0...
123092
0
Help with saving multiple values?
76702473
Nilsen84
1
2018-02-24 08:22:20
<p>I have a script in the serverscriptservice that is supposed to save peoples data but it doesn't. I have another game where the exact same script does work. Both games have filtering enabled on. This is the script in the game where it doesn't work:</p> <pre class='brush: lua'>local DSService = game:GetService("DataSt...
54167
0
i did like gui on a letter but it dint work please help?
777101137
frjhue
2
2022-02-18 20:39:54
<p>i wanna do that will do it when clicket again it should go the visible false but it dint i put here the one wath i tried</p> <p>local Plr = game.Players.LocalPlayer</p> <p>Plr:GetMouse().KeyDown:Connect(function(M) if M == "m" then script.Parent.Visible = true if Plr:GetMouse().KeyDown:Connect(function(M) then scrip...
129031
1
116812
0
821857501
FirstMonthColumn
15
2022-02-20 09:38:03
<p>I assume your script means that it toggles a part of the GUI when M is pressed:</p> <pre class='brush: lua'>local Plr = game.Players.LocalPlayer local Mouse = Plr:GetMouse() Mouse.KeyDown:Connect(function(Key) if Key == "m" then script.Parent.Visible = not script.Parent.Visible end end) </pre> <p>Mak...
0
help with adding a debounce?
609694350
thedukke1
9
2021-05-09 08:43:07
<p>code</p> <p>function blow(hit) local h = hit.Parent:FindFirstChild("Humanoid")--The Humanoid if (h ~= nil) then --Check If The Humanoid Is There script.Parent.Size = script.Parent.Size + Vector3.new(1,1,1) --The size it will grow once touched wait(100)</p> <p>end</p> <p>end</p> <p>script.Parent.Touched:connect(blow)...
123270
0
How can I make a sound play for one player only and not everyone? Just put it in a startergui?
21467784
MrLonely1221
701
2015-01-13 04:36:10
<p>I don't know how to use sounds very well yet. I know how to make a sound go when you click a gui. But I don't know if that will make it play for everyone or just that player.</p>
14201
0
Access the sound library in a GUI?
234143140
MexheCo
46
2018-12-07 15:39:13
<p>I know this can be done, but I don't know how. I'm looking for a way to implement the ROBLOX Music Library into a GUI.</p> <p>As an example, the game <a target="_blank" href="https://www.roblox.com/games/516483782/Rhythm-Track">Rhythm Track</a> allows you to search and play songs from the ROBLOX Music Library.</p> <...
71810
0
Problem with adding a accessory to an NPC/Player?
19619052
LittleBigDeveloper
245
2017-02-03 17:10:03
<p>I am trying to add an accessory to a NPC/Player and it seems to not go on the head but to its original position. <strong>It goes on the head in normal play mode</strong> but not in a server.</p> <p>I then tried adding a weld called "AccessoryWeld" and link the <strong>Part0</strong> to Handle and then <strong>Part1<...
39710
0
Is there any way to make a team specific force field?
847431372
Student20986
0
2019-01-20 21:46:41
<p>I was wondering if there is a way to make a team specific force field. One things is that would it be possible to make it to where the force field will be given right when you change teams so there is no giver you have to press to get the force field. If all of my questions are true, I would really appreciate it if ...
74830
0
Is there a way to make a Gui look bright and blurry?
143096970
Rayguyban2
80
2021-05-04 18:40:24
<p>How do you make a GUI look really bright and blurry like how they did it in when you join in dungeon quest, or do I have to make like some image label and make it blurry and bright myself or is there a better way of doing it.</p>
123090
1
How does ExtentsOffset work?
11064792
iNicklas
215
2016-02-22 14:32:43
<pre class='brush: lua'>local gui = Instance.new("BillboardGui",workspace) gui.Name = "LEVELUP" gui.ExtentsOffset.Position = Vector3.new(0,8,0) -- IT won't work. </pre> <p>And yes i checked the wiki, and it just said it was using Vectors</p> <p>xyz</p>
27743
1
31251
1
14673497
aquathorn321
858
2016-02-22 15:02:42
<p>"A Vector3 (x,y,z) defined in studs that will offset the gui from the extents of the 3D object it is rendering from" - Roblox wiki, billboard gui properties</p> <p>The reason it isn't doing anything is because you first need a part for the GUI to render from. Additionally, "ExtentOffset.Position" should be "ExtentsO...
0
I do not understand why my local script is not working? I accept answers
921515553
IckyTheSuperior
94
2021-01-12 01:43:57
<p>My local script is in StarterPlayerScript and its enabled but when a player steps on Part both player1 and player2's partSelect Variables go up. I only want the player's Variable who steps on the part to go up. I don't believe there is anything wrong with my code but who knows. Any help would be greatly appreciated....
118574
1
108464
1
73170429
imKirda
2248
2021-01-12 07:52:17
<p>Because when anyone touches the part the changes will apply, you have no filter to prevent other gamers from touching your part, you fix that by adding one, all you have to do is get the <a target="_blank" href="https://developer.roblox.com/en-us/api-reference/property/Players/LocalPlayer">LocalPlayer</a> and his ch...
0
script not parenting tool to backpack?
1098292960
kilahb1ck
0
2022-06-18 18:25:26
<pre class="brush: lua">local proximity = script.Parent local tool = game.Workspace.thing local function giveTool(player, tool) local backpack = player:FindFirstChildOfClass("Backpack") if backpack then tool.Parent = backpack end end script.Parent.Triggered:Connect(function(player) giveTool() en...
130393
0
Second half of script getting the wrong part?
140399066
Uniplier
33
2022-10-31 06:28:31
<p>I have a script that checks for a player touching another player, and at the end of the script, it checks for a changed value. The first half works just fine, but the second half where it starts checking for a changed value isn't working.</p> <pre class='brush: lua'>local grabblock = script.Parent.Torso local vampch...
132095
1
How do I teleport a model to the player?
326112052
Melkros
5
2022-11-23 06:31:29
<p><strong>Hello</strong>, I'm not an experienced scripter but I know a little about scripting and I'm working on my game here and I made a tool that whenever you activate it, it will teleport a horse model to your player, I'm having issues doing so and the script seems to not be working, Here is the script:</p> <pre c...
132350
1
May I have help with a gui problem?
37652173
DeveloperSolo
355
2015-10-11 23:51:41
<p>So I'm trying to make a bank robbery simulation, but I'm somehow having trouble with popping up the gui when you touch a brick. I'll make it close later in time but I just want it to open right now. Here is the code</p> <pre class='brush: lua'>workspace.RobBank.Touched:connect(function() game.StarterGui.ScreenGu...
23467
2
27123
1
4511619
Bluseph
35
2015-10-12 00:47:35
<p>What I did was I put a script in the RobBank part, then wrote this in the script, when I tried it in studio myself it worked. Hopefully this helps.</p> <pre class='brush: lua'>script.Parent.Touched:connect(function() game.Players.LocalPlayer.PlayerGui.ScreenGui.MainRobbery.Visible = true end) </pre>
0
Why is my touch function not proceeding past this point with no error?
215833213
Stiles8353
35
2022-09-28 01:42:42
<p>Hello, I am trying to make a script detect when it was hit by a tool that is swinging/activated The tool changes a value called "active" to 1 when swinging and back to zero when done. That part seems to be working. There is a comment showing where the script does not run past, yet I do not get an error.</p> <pre cla...
131738
1
118994
1
25290541
ultrabug
306
2022-09-28 04:58:09
<p>In this line you are comparing a player object to a string. <code>if player == otherpart.Parent.Name then</code> You probably want <code>player.Name</code> instead.</p> <p>Edit: I mocked up your setup in studio just now and all I really had to change to get it to work was the above. This is what I have:</p> <pre cla...
1
How do i know if it is the player who touched the brick or some part?
47605193
buoyantair
123
2014-11-23 14:23:09
<p>Help me out, I used somthing like this</p> <pre class='brush: lua'>function onTouched() script.Parent.Brickcolor = Brickcolor.new(Really green) end </pre>
12679
2
15749
2
14357591
Perci1
4988
2014-11-23 16:44:57
<p>If this is your entire code, there is nothing to make the function run. Functions only run <em>when they are called,</em> and since you never call it, it will never run.</p> <p>If you want a function connected to an event, so it is in effect <em>called</em> each time the event is fired, then you use the <code>connec...
0
My click detector script works in studio, but not in game, how do I fix this?
119646442
Fako16
13
2018-05-29 18:16:37
<p>Hello, I'm Fako16 and I'm a new scripter that's currently learning. I watched a AlvinBlox video that explained how FE click detectors work and I wanted to make a click detector that would give you resources like wood, stone, etc.. I started making it and it works fine in studio, but I remembered that if it works in ...
59244
1
Is this how you address the speed of a humanoid?
1073917569
Puppy_lovertheawsome
84
2022-11-01 06:54:32
<p>I have had many troubles trying to address the humanoid in the past so I am asking now.</p> <p>Is this correct?</p> <pre class='brush: lua'>game.Players.LocalPlayer.Humanoid.Speed </pre>
132105
2
119325
1
433962773
theking66hayday
841
2022-11-01 16:04:59
<p>this is how to set players walkspeed --Also credit to softblueapple for doing most of the script. Local script:</p> <pre class='brush: lua'>game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 80 --change number </pre> <p>Put it in StarterCharacterScripts as a local script. Hope this helps!!</p>
0
Why does this script break after a few uses?
17984577
Ethan_Waike
156
2015-02-22 20:22:18
<pre class='brush: lua'>local a = Instance.new("Part", workspace) a.Name = "Teleport" a.Position = Vector3.new(-5.848, 13, -95.462) a.Anchored = true local b = Instance.new("ClickDetector", a) function playermover(hit) local torso = hit.Character.Torso torso.CFrame = CFrame.new(7, 5, -55) end workspace.Teleport.ClickD...
15223
0
Is my if statement formatted incorrectly?
733270183
typedkeyboard
0
2021-07-07 19:19:23
<p>I'm trying to get the CFrame code in the if statement to work. Outside of the if statement it works just fine and the print functions outputs true (Which is what should be happening when I click.) It's only until I try to make the code only run when both of the keyClicked variables are. I'm not sure if I'm formattin...
125146
1
teleporting players to another game loop?
377591837
OctavianH0310
25
2021-02-26 11:31:32
<p>I am trying to make a teleporter that teleports the players on it every 23 seconds but it doesn't work properly. It waits 23 seconds before teleporting for the first time but after it will teleport players all the time. Can somebody help me please? ( i am kinda new to scripting) This is my code:</p> <pre class='brus...
120700
1
110001
0
63098992
sayer80
437
2021-02-26 12:09:03
<p>So the problem is the script first runs (wait 23 seconds) then the Function is active and listening and whenever a player touches the part they will get tped and the Function should also stack after each 23 seconds like it will try to teleport them to there 2 Times which is inefficient.</p> <p>The Explanation is ins...
2
How do I delete a frame from a ScreenGUI when it has already been viewed once?
38498021
capinbuilda
15
2014-08-02 04:18:47
<p>[UPDATE] I know you're there, BlueTaslem. You should know.</p> <p>[LETTER TO BLUETASLEM] Dear BlueTaslem, GetSporked said that my question "dont take no BlueTaslem", he also claims, after somebody said "LOL, BlueTaslem is god", GetSporked replied saying "I'm your god now ;)". Do not allow this violent sporker take y...
9080
3
60321
1
666308958
lilnarcan
40
2018-07-05 14:34:20
<pre class='brush: lua'>game.Players.PlayerAdded:connect(function(plr) wait(5) plr.PlayerGui.GuiName.FrameName.Visible = false end) </pre>
0
My shop gives me the Gravity Coil when i can afford it without me clicking buy
39064167
SirKitten2000
0
2014-04-07 01:59:44
<p>Ok now it works but it buys it automatically when i have 250 points instead of me having to click first</p> <pre class='brush: lua'>player=Game.Players.LocalPlayer --This creates a variable for the player Points=player:WaitForChild("leaderstats"):WaitForChild("Cash") --This makes a variable for their "Cash" value in...
1113
1
1593
5
22319584
AxeOfMen
434
2014-04-07 02:28:52
<p>The answer is that you are invoking the buy function when you connect it to the MouseButton1Down event.</p> <p>On line 20, instead of this:</p> <pre class='brush: lua'>script.Parent.MouseButton1Down:connect(buy()) </pre> <p>do this:</p> <pre class='brush: lua'>script.Parent.MouseButton1Down:connect(buy) </pre>
0
How do I make it when player kill an npc they get cash?
1193954971
spuerno
0
2022-08-03 19:04:43
<p>I was watching other videos but it did not work my currency is named gold pls help! I put this script in the npc.</p> <p>local Humanoid = script.Parent.Humanoid function Dead() local tag = Humanoid:FindFirstChild("creator") if tag ~= nil then if tag.Value ~= nil then local leaderstats = tag.Value:FindFirstChild("lea...
131085
2
Will large maps and complicated parts in ReplicatedStorage cause lag when not loaded?
173002126
Michael_TheCreator
166
2017-12-29 22:27:53
<p>Will large maps and complicated parts in ReplicatedStorage cause lag when not loaded or when they're loaded into the Workspace or both? Can someone explain this to me</p>
51172
4
50878
1
34716028
cmgtotalyawesome
1154
2017-12-29 22:32:43
<p>Large maps in replicated storage should not cause lag to any players, the reason for this is that none of the players computers are forced to load this until the server wants them to see it. This being said, large maps in the workspace can cause lag because it is putting their computer to work to load up all the par...
1
Why the PlayerAdded event wont execute?
43751253
Xianon
105
2014-06-29 21:43:09
<pre class="brush: lua">game.Players.PlayerAdded:connect(function(player) -- Output won't tell what's the problem -- print("Active") script.Parent.Text = (game.Players.NumPlayers) end) </pre>
7383
3
9588
0
4093531
Drak0Master
172
2014-06-29 21:50:14
<p>Odd.</p> <p>Try printing before the function, and then use</p> <pre class="brush: lua">print("Searching Players") game:GetService("Players").PlayerAdded:connect(function (player) print(player.Name.." found") end) </pre> <p>Also, PlayerAdded does execute in Test Solo.</p>
0
how to resize a gui backwards?
472504641
AlexanderYar
425
2021-01-12 19:14:00
<p>I am making a healthbar. In normal bar guis, sizing it down makes it decrease towards the left, I want it to decrease towards the right, making the gui backwards. Yes i could make an overlay and just increase it normally to the right making the layer under it look like its decreasing towards the right, but i dont wa...
118602
1
How can I remove part of a string?
64408300
RaverKiller
668
2014-03-09 18:18:19
<p>For example:</p> <pre class="brush: lua">local StringToAction = "TESTING &lt;script&gt;&lt;/script&gt;" -- Using httpservice as an example </pre> <p>- I would like to remove the &lt;script> and &lt;/script> tags whilst also removing their inner content.</p>
588
0
Why isn't my team change script working on a newer game?
441720480
TheStarWarsMaster856
16
2021-06-08 17:33:05
<p>I have this team change gui, it worked in my older game but for some reason it doesn't now, with the same script.</p> <p><strong>LOCAL SCRIPT</strong></p> <pre class='brush: lua'>BU.MouseButton1Click:Connect(function() sound:Play() game.ReplicatedStorage.ChangeTeamEvent:FireServer(script.Parent.Name) wor...
124203
0
How to limit the script to check if Table is not empty and run it each time it's changed?
1258804
CrniOrao
28
2014-02-21 21:18:46
<p>So, I'm trying to make a brick whom will give admin commands to people who touch it. I have this so far:</p> <pre class="brush: lua">Admin = {} script.Parent.Touched:connect(function(hit) if hit.Parent:findFirstChild("Humanoid") then Admin[hit.Parent.Name]=game.Players:GetPlayerFromCharacter(hit.Parent) end end) for...
205
2
365
1
1546726
nate890
495
2014-02-21 21:30:51
<p>Make a separate Chatted event for the people that touch the part and make lines 15 through 20 a function.</p> <pre class="brush: lua">Admin = {} script.Parent.Touched:connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player and not Admin[player.Name] then Admin[p...
2
[SOLVED] Make a model spawn in front of camera?
157510912
General_Scripter
425
2016-08-25 16:31:52
<p>So I want a model spawn in front of the camera on the surface nearest in the direction the camera is facing. I just need help getting the CFrame of that position as I am going to use <code>model:SetPrimaryPartCFrame(newCFrame)</code> but I can't find a way to set newCFrame to the position I want. I've looked into <a...
34992
2
37570
3
43590972
IDidMakeThat
1135
2016-08-25 17:24:27
<p>The best way to find the world position at the centre of the camera is to use raycasting. You can cast a ray going from <code>workspace.CurrentCamera.CFrame.p</code> in the direction of <code>workspace.CurrentCamera.CFrame.lookVector</code>, like this:</p> <pre class='brush: lua'>local MyRay = Ray.new(workspace.Curr...
0
Why won't this localscript resize the HRP?
1241869417
Lyphios
77
2020-06-18 16:13:16
<p>So this localscript inside of startercharacterscripts is meant to resize the character's HumanoidRootPart and make it really short on the Y scale, which is supposed to act kind of like a crouch.</p> <pre class="brush: lua">local Player = game.Players.LocalPlayer local Character = Player.Character local CharAnimation...
106732
1
98257
1
31504923
rabbi99
714
2020-06-18 18:15:23
<p><strong>Before you start, make a RemoteEvent in ReplicatedStorage called "Crouch"</strong></p> <p>This is the <strong>localscript</strong> that is located in <strong>StarterPlayerScripts</strong>:</p> <pre class="brush: lua">local player = game.Players.LocalPlayer local uis = game:GetService("UserInputService") loca...
0
Why Doesn't my i,v string work properly?
1674805834
Black_Magic2533
24
2021-07-19 23:01:10
<p>So for context I am making a Gui that has player mods that is supposed to fade in and out, but the textButtons' background is transparent</p> <pre class='brush: lua'>local plrMods = script.Parent.Parent.Parent.Frame.PlayerMods script.Parent.MouseButton1Click:Connect(function() for i = 1,100,1 do plrMods.Jump.TextTra...
125508
0
How to change the mouser cursor to the default tool cursor?
757628143
6zk8
95
2020-05-11 12:21:21
<p>Im not sure if it is a rbxassetid and your meant to change the cursor with :GetMouse() and the id or just type a function/property?</p> <p>Im talking about this:</p> <p>https://postimg.cc/SjcGYt51</p> <p>Thanks!</p>
102725
0
How to make simulator backpack system?
609863579
GabGabrielll
0
2022-08-02 15:16:30
<p>I m new to scripting and i want to know how to make a simulator backpack system and make a part collectable when hold e, after i hold e the backpack gui go from 0/10 to 1/10.</p>
131064
0
Problems with pop up egg frame?
167536064
MelodicSea5914
50
2021-02-25 19:39:12
<p>Hi! I have two eggs that when you get close to it a gui pops up telling you all the eggs that you can buy. With one egg it works fine, but with two eggs it doesn’t work. Please tell me what I have done wrong.</p> <p>Local Script:</p> <pre class='brush: lua'>game:GetService("RunService").RenderStepped:Connect(functio...
120676
1
is it possible to add another number in the list next to the first number?
88572455
shockwave7171
7
2021-05-01 18:37:41
<p>is it possible to add another number in the list next to the first number in the list like example 1 then you add a 4 next to it and it becomes 14 then add another example 5 so it becomes 145</p> <p>example;</p> <p>local MyList = {1,0,0}</p> <p>and becomes like:</p> <p>local MyList = {14,0,0}</p> <p>then add another...
123001
0
How can I fix the &quot;join bug&quot; I'm currently having?
954104450
FirewolfYT_751
208
2021-09-14 18:59:08
<p>My game works like this:</p> <p>There is a main place, with a list of multiple games, and the "client" place, which stores the games. When a player joins the main place, and clicks "Play" on a game, the server picks it up, gets the "ID" of the place, reserves a server, notifies all other main place servers about it,...
127440
0
Moving a script from replicated storage to workspace activates it?
49776603
TomsGames
225
2014-02-21 00:45:08
<p>http://www.roblox.com/Forum/ShowPost.aspx?PostID=126307091#126308843</p> <p>That's basically the question... It's not activating!</p>
184
0
Position is not a valid member of Vector3?
77967720
Resplendid
3
2020-03-08 06:38:30
<p>The error lies within <strong>Line 16</strong> and <strong>Line 24</strong></p> <pre class='brush: lua'>local event = script.Parent local TweenService = game:GetService("TweenService") event.OnServerEvent:Connect(function(Player, Ball, Hoop, Position, Release, ShotRating) print('received') local dir = {-1, 1...
95756
0
Why won't my IntValue change?
9919438
LennyTheLucario
45
2014-11-29 18:54:39
<p>Inside of a localscript, I have</p> <pre class='brush: lua'>event = game.ReplicatedStorage.OpenDoors DoorVal = script.Parent.DoorValue event.OnClientEvent:connect(function(...) local tuple = {...} if tuple[1] == "Door" then print(tuple[2]) DoorVal.Value = tuple[2] script.Parent.Label.Visible = true elseif tuple[1] =...
12853
0
How do I detect my if the player isn't moving (Idle)?
233770123
lesliesoon
86
2018-04-26 10:09:00
<p>Hi guys, how would i go about finding out if a character is idling or not? GetState() doesn't return an "Idle" state when a player is stationary. It returns "RunningNoPhysics" back to me, which i cannot use because while running, Getstate() will return both "RunningNoPhysics" and "Running" in intervals. There are 2 ...
57435
0
how do you make a gui connect to the leaderstats??
791037399
Hafrew
13
2021-01-14 06:16:39
<p>Very oofed im trying to make a gui that shows your cash but i cant seem to do it. my script:</p> <pre class='brush: lua'>local suffixes = {'','K+','M+','B+','T+','Qd+','Qn+','S+','Sp+','O+','N+','D+'} local function format(val) for i=1, #suffixes do if tonumber(val) &lt; 10^(i*3) then return ...
118670
2
108545
0
649502596
Gogulsky
102
2021-01-14 09:42:42
<p>Add a GUI and put this LocalScript inside of the TextLabel</p> <pre class='brush: lua'>wait(1); local u1 = { "", "K", "M", "B", "T", "Qd", "Qn", "Sx", "Sp", "Oc", "N", "De", "UDe", "DDe", "TDe", "QdDe", "QnDe", "SxDe", "SpDe", "OcDe", "NvDe", "Vgn", "UVg", "DVg", "TVg", "qtV", "QnV", "SeV", "SPG", "OVG", "NVG", "TGN...
0
Is there any way to search a object names based off userId? (only part of the name is the id)
84186814
thedarkdays152
0
2015-05-03 19:42:07
<p>I have names some objects in my game as there userId then the name of the object. I thought this would help me track but I am not sure how I would find them based off the userId. I thought it would be with string.sub or string.len but I cant find a way to get it to work.</p>
17249
0
How to find any variable with a certain name with a script?
1353701532
DiOrOmG2
0
2021-06-09 22:39:04
<p>I want to make it so that when you join a game everything inside the base with the string value “Owner” inside of it has a value of player.Name, but I don’t know what to use (I tried FondFirstChile and WaitForChild)</p>
124234
0
How do i clone a whole room?
1044984225
datboyPiter
11
2021-04-08 08:23:46
<p>I am making a randomly generated maze but I don't know how to copy the walls with the floor right now I only have generated floor and nothing else</p> <p>my generation works like this:</p> <p>there are 3 parts they are the room templates There is a part that is coping randomly 1 of these 3 rooms</p> <p>Thanks in adv...
122139
0
0 Why is animateTowerEvent:FireAllClients not working?
595106923
VipDanT
0
2022-05-01 11:33:26
<p>I can't figure this out. I did stop the repeating and made it action so it can't be that.</p> <p>Video - https://streamable.com/ubq2fw Here's the script:</p> <pre class="brush: lua">local PhysicsService = game:GetService("PhysicsService") local ServerStorage = game:GetService("ServerStorage") local ReplicatedStorage...
129876
0
Why is my code to spawn an entity by clicking on a gui button not work?
1896915549
NoobciderLXKD2
5
2023-01-05 17:41:06
<p>Anybody help me with this? i'm suffering over here, just errors all the time.</p> <pre class='brush: lua'>function leftClick() script.Parent.MouseButton1Click:Connect(leftClick) local NPC = game.ReplicatedStorage.angrymunci["NextbotV1.5"]:Clone() NPC.SetPrimaryPartCFrame(15.391, 84.829, -150.20) NPC....
132763
3
119883
1
559514967
T3_MasterGamer
2189
2023-01-06 11:14:58
<p>First of all, when using methods like <code>SetPrimaryPartCFrame()</code>, use colons instead of dots. If you want to use dots, you can add the instance you're using the method with as the first parameter, but colon is way more recommended than that.</p> <p>Second, when setting a CFrame, make sure to make the 3 numb...
0
How do I use string.sub to delineate a string?
31655670
Greatgreatgood5
55
2014-02-20 00:12:21
<p>Well, first of all, I know this kind of .Chatted</p> <pre class='brush: lua'>function test(msg) Player = script.Parent.Parent --this script was put into StarterPack. if msg == "kill/me" then Player.Character.Humanoid.Health = 0 end end script.Parent.Parent.Chatted:connect(test) </pre> <p>Well, I would like to learn ...
143
2
275
1
19566737
Unclear
1776
2014-02-20 00:25:12
<p><code>sub</code> chops up the string into two parts, given by its parameters. The first parameter decides where it begins the section, and the second parameter decides where it ends the section. For example...</p> <pre class='brush: lua'>example = "test" print(example:sub(1, 2)) -- te print(example:sub(2, 4)) -- est...
0
Remote event dosen't fire?
74686131
kristupas12344
12
2020-07-22 17:40:17
<p>So i making this were you can jump on platforms and i wanted to make finish part which should fire event called win in replicated storage once touched but once i touch part i get this error Argument 1 missing or nil and the remote event dosent fire can somone help me.</p> <pre class='brush: lua'>script.Parent.Touche...
109698
3
100834
0
566296650
raid6n
2121
2020-07-22 18:07:15
1
Why won't my if key == statements work right?
343855854
PaliKai13
92
2019-06-11 14:09:56
<p>Up is printed whenever ANY key is lifted, and Down is never printed, even when I press the right keys. Does anyone know my problem?</p> <pre class='brush: lua'>local character = script.Parent local Mouse = game.Players:GetPlayerFromCharacter(character):GetMouse() local speed = 8 Mouse.KeyDown:connect(function(key) ...
81560
2
75877
3
44083134
Fifkee
2017
2019-06-11 14:39:31
<p>Because Mouse.KeyDown returns a string value, if my mind serves me right. InputBegan returns an InputObject with a KeyCode value.</p> <p>Instead, you should use InputBegan, like so.</p> <pre class='brush: lua'>game:GetService('UserInputService').InputBegan:Connect(function(KeyPressed, GameProcessedEvent) if (not...
2
Player is a Nil Value?
9892401
sidekick83
80
2015-05-03 08:46:44
<p>This is a regular script, inside a TextButton, inside a frame, inside another frame, inside a SurfaceGui.</p> <pre class="brush: lua">bin.MouseButton1Click:connect(function(player) if player.Name == bin.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Owner.Value then bin.Parent.Parent.Parent.Click:Play(...
17236
2
20627
1
2053917
iaz3
190
2015-05-03 15:43:35
<p>As the <a target="_blank" href="http://wiki.roblox.com/index.php?title=API:Class/SurfaceGui">wiki</a> says</p> <blockquote> <p>Note: SurfaceGuis must be descendants of PlayerGui in order to know the player who is interacting with it.</p> </blockquote> <p>But don't worry, this is not as complicated as it sounds, you ...
0
How would I make this Frame only be visible inside of this ImageLabel?
266762322
SevenRubyRobes
6
2017-03-29 15:24:08
<p>I'm currently working on a health Gui, and I'm running into this very annoying issue.</p> <p>First off, let me explain that the health Gui is a heart, and the heart is an ImageLabel. There is a frame that will move depending on your health, however, I want that frame to be invisible if it is outside of the heart.</p...
41438
1
43289
0
143777912
TickTockTheory
106
2017-03-29 18:10:45
<p>The best way to attack this situation in my opinion is by creating separate heart pictures and changing the picture every time the health goes down.</p>
1
What is filtering enabled?
101786648
rilgundam
65
2017-09-16 21:25:56
<p>I have checked the wiki and YouTube and still don't know what it means. Please tell me so I can have a better understanding. And what effect does it have on scripts?</p>
47956
4
48383
5
198329002
luadotorg
194
2017-09-16 21:50:27
<p>Filtering Enabled is a form of anti-exploiting roblox has implemented.</p> <p>Basically, Filtering Enabled (FE) disables client modification of server values, or in simpler words, the client can't make changes to the game.</p> <p>What I mean is, let's say your local script, which only runs on player's PC, sets works...
0
Why is the # in contestants underlined red?
1172126733
aiden66362
0
2021-04-07 21:07:25
<p>I am trying to make a hide and seek game. I am trying to make it so when the seeker leaves the game or gets disconnected, then the round is over and the contestants is 0. But for some reason when I add the hashtag its underlined red. Here is the code:</p> <pre class='brush: lua'>function playerLeaving(player) ...
122129
0
How to make Group Custom Rank Leaderstats?
1469219966
IA_INDONESIA
5
2021-10-08 14:33:20
<p>I'm trying to make a Custom Group Rank Value</p> <pre class='brush: lua'>If roleId == 0 then -- Guest Rank rank.Value = "Awaiting Rank" elseif roleId == 78 then rank.Value = "PVT" end </pre> <p>but it's not working, plz help</p>
127815
0
Is there any reason for why my script (that randomizes things) is not doing anything?
85911326
aadenboy
17
2021-04-07 22:50:28
<p>I'm trying to make a script that randomized the player's face, and torso color. (also a 1/10 chance it becomes something different), but it's doing nothing. It isn't even printing chance.</p> <p><em>(it's a script inside my StarterPlayer model)</em></p> <pre class='brush: lua'>wait(1) local faces = {"18151826", "154...
122132
0
How to make my part Placement system make parts move in a grid accordingly of where it is on a part?
1649347748
TestUser4646
1
2020-08-24 03:41:42
<p>I'm trying to make a build system in my game and when you move your mouse it fires a function which is supposed to make the part move by 2 studs but when you move your mouse it moves 2 studs but it isn't in grid or orientation accordingly to where the grid texture is on the baseplate. Here's my script (portion of it...
112028
0
ROBLOX corpse despawn time?
354276518
hawkeye1940
8
2018-04-20 10:25:05
<p>How can I make it so that when a player dies, their body will stay there even after they have re spawned. Of course it cannot be permanent either, or else the body pile up would cause lag. So I need a timer. Can anyone help?</p>
57121
0
Cloned models not colliding/interacting with items?
1342634801
bear16225
7
2022-11-24 08:58:49
<p>Hi everyone, I'm currently making a game in which the player can select a map (which is just a model that I put in ReplicatedStorage) and it will get cloned into their plot. The problem I'm having is that any items like rockets from launchers or bombs seem to just go through the model and don't interact with it at a...
132363
1
What am I doing wrong with my for loop?
64961385
crystalclay
70
2016-10-10 21:43:49
<p>So this is my script which slowly turns another brick known as "seed" invisible if a player steps on another part.</p> <pre class='brush: lua'>local seed = game.Workspace.Seed script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid")then for i= 0,1,-0.01 do seed.Transp...
36238
1
38683
1
37652173
DeveloperSolo
355
2016-10-10 21:52:35
<p>You need to change your (-0.01 to 0.01) and the wait to (0.01)</p> <p>finished code=</p> <pre class='brush: lua'>local seed = game.Workspace.Seed script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid")then for i= 0,1,0.01 do seed.Transparency = i wait(0.01) end e...
0
Function pseudo-sets value for some reason?
215833213
Stiles8353
35
2023-03-19 20:42:32
<pre class='brush: lua'>game.ServerStorage.toolactive.Event:Connect(function(player, mousetarget) if rock.Transparency ~= 1 then if mousetarget == rock then rock.Transparency = 1 Owner.Value = player.Name end end end) </pre> <p>This code sets the Owner value t...
133215
1
120271
1
215833213
Stiles8353
35
2023-03-19 23:54:02
<p>I figured out how to get the player a different way with some tomfoolery on the server side.</p>
3
What is the difference between DescendantAdded and ChildAdded?
14971205
Yeevivor4
155
2015-03-30 01:21:19
<p>Hi, I had a question about this. What is the difference between these two? If they have the same basic function, how come the two was added? Is there a difference between the words "Child" and "Descendant"?</p> <p>~Thank you for reading, and/or answering.</p>
16157
2
19374
2
3508838
DigitalVeer
1473
2015-03-30 01:32:25
<p><strong><em>One Deals With Direct Children and One Deals With Children In Any Form Of Hierarchy.</em></strong></p> <p><code>ChildAdded</code> only deals with a hierarchy directly under the object while <code>DescendantAdded</code>deals with a form of child added to the hierarchy.</p> <p>For example, let's take a loo...
0
How to detect if a player touches a none collidable block?
178088402
friso9
2
2021-07-06 10:53:08
<p>So I started making a racing game, and I added a invisible block at the beginning of the race. This block will start a stopwatch at the top of the players screen. This is the code:</p> <pre class='brush: lua'>local stopwatch = 0 local Debounce = false function stopWatchstart() while true do stopwatch = s...
125105
2
Billboard gui won't work
6030494
Exsius
162
2014-03-25 01:42:46
<p>I tried using a gui script that teleports you to a specific place. It works normally with the on screen gui but when I use billboard gui's, it won't work. Here's the script</p> <pre class="brush: lua">function Click() script.Parent.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(-0.5, 734, 7.5) end s...
900
0
cant play an animation, any help?
68302091
Ali_MTR
30
2020-08-01 12:55:00
<p>so i made a textbutton that when i click at it, it does the animation</p> <pre class='brush: lua'>local player = game:GetService("Players").LocalPlayer local character = player.Character if not character then character = player.CharacterAdded:Wait() end local humanoid = character:WaitForChild("Humanoid") local b...
110463
0
I can't quite grasp StreamingEnabled after reading the Wiki page?
1017846707
Overseer_Prince
188
2022-11-15 02:18:07
<p>So I just wanted some clarification on StreamingEnabled is that basically</p> <p>The server has everything loaded and the client does not</p> <p>Basically in simple terms</p> <p>But I was wondering how this made any sense because if the server lags and has like 1 million parts in a server</p> <p>the client will obvi...
132282
1
Getting angle between two vector3's?
43821574
TechTeam911
20
2014-04-17 21:40:56
<p>I need to get the angle between two vector3 points, how would I go about doing it?</p>
2539
2
3529
4
386992
BlueTaslem
18071
2014-04-17 21:51:20
<p>We can use the fact that the <a target="_blank" href="https://en.wikipedia.org/wiki/Dot_product">dot product</a> of two vectors has two equivalent definitions.</p> <p>The first definition is the sum of the products of the components, and ROBLOX provides this for you: If <code>a</code> and <code>b</code> are vectors,...
0
How can I stop this happening? (Vehicles)
286997127
TheDev321
37
2020-02-02 19:55:39
<p>Hey so as you can see in this gif, the wheels is like bouncing a lot, how can I prevent that happening? https://i.gyazo.com/183ec8f507948bf99ea4dde6d4f7a54c.gif</p>
94023
0
CoreGui RobloxGui error stops my game Data - Any way to solve this error?
344375294
Stephirio
7
2019-12-30 20:14:50
<p>One of my friends gets this error when joining my game and then it's like my game Data Management stops working. No more data are stored in leaderstats.</p> <p>Infinite yield possible opn 'CoreGui.RobloxGui:WaitForChild("Modules")</p> <p>How can I solve this?</p>
92234
0
How do I make it so that as the speed of a car increases, the pitch of a sound increases?
68486889
TheBeaver101
28
2017-07-02 18:49:07
<p>I want to make it so that as the speed of a car increases, the pitch of a sound that is in the vehicle seat also increases. Here is the current function that I have:</p> <p>local maxSpeed = filtered local minPitch = filtered local maxPitch = filtered local pInc = (maxPitch / maxSpeed)</p> <p>local function setPitch(...
44700
2
How to Lower Audio On Certain Points
2108078
Mirror_Master
25
2014-02-16 23:13:24
<p>Say I have wind noise in my game and once I enter a house, I want the wind noise sound to lower but not be completely removed? How?</p>
16
3
29
3
13416513
Merely
2122
2014-02-17 00:38:16
<p>You will need to create local sounds for this to work.</p> <p>Instead of putting your sound object in the Workspace, you need to place your sound object inside the current player's PlayerGui. Then when it is played, only that player will be able to hear it. Your localscript will then be able to change the volume bas...
0
How to Detect players position before they click a button?
2053085708
plf4wef4ef
4
2023-01-14 16:22:21
<p>I have a button that teleports a player to a Position in the baseplate when they click it and I want to record the CFrame they were in before they last clicked it.</p>
132832
1
119971
1
1479528071
Blueturtle8908
79
2023-01-14 17:43:03
<p>In order to see the current Cframe of the player you must see it before you teleport them</p> <p>Try placing this inside of your click detector This is a server script</p> <pre class='brush: lua'>script.Parent.MouseClick:Connect(function(plr) local Char = game.Workspace:FindFirstChild(plr.Name) local FirstPo...