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
How do I make this door?
33645123
ClassiclySmart
10
2014-04-16 14:01:36
<p>I am making a place for the group: C&amp;G Council I want to make a door which only allows this group to pass, but I want to be able to allow players who aren't in this group pass through the door if I press a certain button.</p> <p>So basically, I will have a control room with buttons (parts you can click) and one ...
2151
0
Inventory slot trying to find another when full?
2869366
Paldi
109
2017-01-18 22:30:58
<p>Anyone could help me figure this out? this is for when i pick up an item it goes in my inventory but now if my inventory is full (there is 12 slots) it will try looking for the 13th slot and create an error, how could i make it detect that "i" is higher than 12?</p> <pre class='brush: lua'>if invslot["Slot"..i] == "...
39159
1
41452
1
8310972
RubenKan
3590
2017-01-18 22:32:17
<p>simpfuly do</p> <pre class='brush: lua'>if i &gt; 12 then break end </pre> <p>This will check if i is greater then 12, if so, it will end the current loop. (Thus, <code>break</code>).</p>
0
Union is not a valid member of Player?
14411926
Anciteify
70
2015-05-08 00:32:44
<p>Ok so the teleport script I have it has to be the same name for the models but How can Union not be a vaild member of Player if it's in the model? I'm trying to get it to probably animate and I can't do game.Workspace.InstantTeleport.Union it won't work with that. So how can I animate the brick without having to do ...
17350
2
My Badge script isn't working to how I want it to, If you knows how to fix it I would be greatful?
1073917569
Puppy_lovertheawsome
84
2023-02-22 10:17:09
<p>I need help with this badge awarding script, can I please have help with it, I am following a series of tutorials by NetheriteStudio and im trying to fix some buggy script.</p> <pre class="brush: lua">local Tool = script.Parent.Parent local Anim = script:WaitForChild("Animation") local AnimTrack local hitChars = {} ...
133102
1
120196
2
559514967
T3_MasterGamer
2189
2023-02-22 11:22:58
<ol> <li><code>game.Player</code> doesn't exist and should be using <code>game.Players</code>.</li> <li><code>ePlr</code> could be an NPC and that could break the script. You should always check if it's an actual player using <a target="_blank" href="https://create.roblox.com/docs/reference/engine/classes/Players#GetPl...
0
Changing custom attribute doesn't send signal?
271844971
Dothemariobowp9
24
2022-08-03 11:20:10
<p>I'm using a custom color attribute on a Humanoid that changes the colors of the custom body parts. I'm testing it on a single body part with this script:</p> <pre class='brush: lua'>while true do script.Parent.Color = script.Parent.Parent:FindFirstChild("Humanoid"):GetAttribute("color") end </pre> <p>and I chang...
131079
0
How do I teleport a player when they click on a GUI?
18369403
Lem0nzz
5
2014-02-25 02:54:24
<p>How do you make it so if you click, it teleports two players in 2 seperate positions?</p>
289
0
Why does the cards not go down when going left to right?
95024732
unidentifiedw
5
2021-02-21 22:25:41
<p>I am trying to make the cards tween up when you hover over the gui with your cursor and go back down when your cursor is out of the gui. I have 5 gui in this so far for testing and when i hover my mouse left to right the cards doesn't go down. When I go right to left it works as intended. "https://media.giphy.com/me...
120484
1
Help me! = expected near end?
23704748
Falcon2k12
0
2014-03-04 21:03:58
<p>So every time i try to do a script it says " = expected near end?"</p>
488
0
Currently working on first person arms, does anybody know how I can fix this?
1314599390
NuggetHasJoined
7
2021-02-10 09:27:18
<p>I've been making a game, and have made some first person arms after watching a tutorial. When the player dies, the arms stay floating midair when they respawn, but they still have the arms on their screen. Does anybody know how I can add to the script so when they die, the arms disappear?</p> <p>This is the script:<...
119907
1
109453
0
1085356580
LeedleLeeRocket
1094
2021-02-10 09:29:11
<pre class="brush: lua">char.Humanoid.Died:Connect(function() arms.Parent = nil end) </pre>
0
How to disable the space bar temporarily after jumping?
1357339884
SilverishReign
55
2021-04-05 12:58:49
<p>I want to add a denounce to the space bar after it is pressed and disable it temporarily. The problem is, I don't know how to do this. Here is my failed attempt.</p> <pre class='brush: lua'>UserInputService = game:GetService("UserInputService") local character = script.Parent local humanoid = character:WaitForChild(...
122033
1
111149
2
1608691335
scripterhelper5354
406
2021-04-05 13:14:41
<pre class='brush: lua'>local character = script.Parent local humanoid = character:WaitForChild("Humanoid") local UserInputService = game:GetService("UserInputService") local DisablingJumpingTime = 5 local debounce=false UserInputService.InputBegan:Connect(function(input) if debounce then return end if input.Ke...
0
Why isn't HumanoidRootPart not teleporting?
676627265
iSimonPlayz
0
2020-12-16 12:54:40
<p>Hello there, So I'm trying to teleport a player to a certain part using HumanoidRootPart after the timer is over. But it doesn't seem to work.</p> <p>Here is the script:</p> <pre class='brush: lua'>local roundLength = 5 local intermissionLength = 5 local InRound = game.ReplicatedStorage:WaitForChild("inRound") local...
117256
0
Does anyone have a script that will turn the player in to a noob?
218270607
ear_thy
0
2020-06-08 01:27:07
<p>So I'm makeing a ro-bio type game but makeing custom viruses. And I need a script that will turn the ro-bio npc in to a noob. It would just need to turn the npcs avatar in to a noob.</p>
105680
2
How do you insert a local script into player gui?
15454657
GreekGodOfMLG
244
2014-06-03 02:03:15
<p>I wanted to remove health, playerlist, and backpack. But it won't allow me to put it in there without me having to start a server and won't save. I used a script to switch the parent to playergui. Can you help me?</p>
6101
2
8094
1
17514438
TheeDeathCaster
2336
2014-06-03 02:06:46
<p>You could put the Script in StartGui, if you mean the Player's PlayerGui, or you could make a script;</p> <pre class='brush: lua'>game.Players.PlayerAdded:connect(function(plr) if plr and plr.PlayerGui then find=script:FindFirstChild("LOCALSCRIPTNAMEHERE") if find then find:Clone() find.Parent=plr.PlayerGui end end ...
0
How to make an event happen on only the Client that clicked the button/part?
161757041
krowten024nabrU
291
2020-08-06 10:55:18
<p>I've been trying to make a Click for Cash button in Roblox, only to find out that the cooldown/debounce can also happen to other players. I've tried switching the Scripts to Local Scripts, but it does not work (I'm a beginner at coding) This is my code right now (Getting Money Script):</p> <pre class='brush: lua'>lo...
110824
0
How do I reference only the clicked part in a group of parts?
936746552
FireTypeHydra
11
2022-03-12 03:30:15
<p>So I am new to scripting and I am trying to make a very simple drawing game. I'm trying to make it so when you choose a color from given color choices, it makes whatever one part of the canvas you click on turn that color. I have attempted this in the script below (I know the script does not work). Could someone ple...
129271
1
116933
0
1122312651
totosimamora608
61
2022-03-12 06:20:52
<p>Fixed script:</p> <pre class="brush: lua"> script.Parent.ClickDetector.MouseClick:Connect(function() for _,Canvas in pairs(game.workspace.Model:GetChildren()) do -- Model is the canvas Canvas.ClickDetector.MouseClick:Connect(function() if Canvas.BrickColor == BrickColor.Re...
1
How to make players not kill each other?
183699517
Coolmansunsh
17
2022-08-04 18:22:24
<p><strong>I'm making a game in and I'm new to Roblox I'm having trouble finding any videos on how to do this as my players are supplied with swords in there backpack but one issue is that i want players to only be able to kill Npcs. If you can please help.</strong></p>
131099
0
How to make a bone follow a part while being parented to another part?
204448429
youngmacka123
15
2020-11-21 18:08:33
<p>So I'm trying to make a "morph" type of thing using the new skinned meshparts update. I am trying to make a bone copy the same movements as another part. By the way, I don't want to make an animation as this is meant to work with all roblox animation packs.</p> <p>Here is some code:</p> <pre class='brush: lua'>local...
116111
2
How do you exclude something from i, v in pairs?
190788793
FadedJayden_Dev
118
2019-06-13 20:59:09
<p>Soooooo.... I wanna create a new part whenever the players are close enough to a part in the workspace. It applies to all the parts in the workspace. When I used <code>i,v in pairs</code>, it won't work as there is Camera, Terrain in it. How do I exclude them out from <code>i,v in pairs</code>?</p> <pre class='brush...
81684
1
75996
3
44083134
Fifkee
2017
2019-06-13 21:03:59
<p>Check if <code>v</code> is a basepart using the method :IsA().</p> <pre class='brush: lua'>for i, v in pairs(workspace:GetChildren()) do if (v:IsA('BasePart')) then -- if v Is A BasePart then.. --Base part is the base class for all parts, like meshparts, normal parts, wedges, and all that. end end </...
0
How would I make a script that is able to get a random players avatar and name? (Camping Game)
1169362290
iiMxtt_Destinyii
62
2019-07-30 01:31:00
<p>I am looking for someone who is able to help me make a script that selects a random player from the player list. I also want the script to get their avatar and username. I was using a local player script but then I realized that the player would see their own avatar instead of random players.</p> <p>I made a little ...
84688
1
82528
0
1305839388
GodOfTemplates
10
2019-10-22 11:03:36
<p>Okay Make a ****RemoteEvent**** Call it Dialogue Put it in ReplicatedStorage And Make a ****Script**** Here's a script: l</p> <pre class='brush: lua'><br /></pre> <p>local dialogue = game.ReplicatedStorage.Dialogue local type = Enum.ThumbnailType.HeadShot local size = Enum.ThumbnailSize.Size180x180</p> <p>function M...
0
How to script movement for a simple imported character?
379782887
Shounak123
461
2023-01-21 12:12:15
<p>I have imported a simple Soldier rig from Blender. The Rig is animated and I need it to move like a normal roblox character would do. I have tried scripting like:</p> <pre class='brush: lua'>while true do Soldier.RootPart.CFrame=Soldier.RootPart.CFrame*CFrame.new(0,0,-0.1) wait(0.1) end </pre> <p>This makes ...
132906
0
How can I tween things like slice scale and slice center on Image Labels?
1042173723
7zjh
74
2020-07-31 23:04:43
<p>Edit: I found the solution after hours of digging.</p>
110420
0
How to make script continue after function?
677278792
NickIsANuke
217
2020-07-20 00:41:53
<p>So lets say I had a script:</p> <pre class='brush: lua'>local function a() wait(math.random(1,5)) print("This is a function") end) while true do a() wait() end </pre> <p>With this script, it would wait until our function, <code>a</code>, is complete before running it again. Is there any way that I co...
109498
1
100584
3
1708043824
TheLuminent
970
2020-07-20 00:45:39
<p>Yes, you use the <code>coroutine.wrap</code> method to do this!</p> <pre class='brush: lua'>local function a() wait(math.random(1,5)) print("This is a function!"); end while true do coroutine.wrap(a)() wait() end </pre>
0
Unwanted Pop Up: Would you like to take Easter Eggs for FREE? Whenever player joins the game.
443643048
Soban06
24
2020-09-15 18:33:09
<p>This bug is new in my game. I didn't make any changes to the scripts.</p> <p>Problem:</p> <p>Whenever the player joins the game, this message pops up:</p> <p>"Would you like to take Easter Eggs for FREE? Your account balance will not be affected by this transaction."</p> <p>Why does this pop up? And how to remove it...
113201
1
103923
0
58729054
Dovydas1118
972
2020-09-15 18:35:12
<p>You have a backdoor or virus on your game. Make sure you use appropiate free models and/or plugins, as they can install backdoors into your game. If you're planning to use Free Models, then put them into workspace, <strong>do not click play or click publish</strong> and delete all of the scripts. In the worst case s...
0
SurfaceGUI's in first-person view.
1788996
Jackd44
35
2014-04-08 11:10:30
<p>As I was making my new game, I had noticed that my textboxes in my surfaceGUI work fine in third-person, but as I switched to first-person it didn't seem to fire the MouseButton1Click event anymore but it worked again when I swapped back into third-person. Is this just me, or is it a ROBLOX bug, or what?</p>
1142
1
1631
1
6030494
Exsius
162
2014-04-09 06:15:09
<p>I had the same problem trying this a week ago with surface guis.</p> <p>It is probably a ROBLOX bug.</p>
0
How would I make a dialogue option that plays a sound when selected?
71179217
damianbratonja
20
2019-07-22 14:47:52
<p>I'm trying to make a dialog choice that when selected plays a sound effect. Can somebody help me out?</p>
84192
1
78206
0
52208338
Spiritlotus
151
2019-07-22 15:18:45
<p>very easy and simple :) by using DialogChoiceSelected we can check to see if a certain choice was selected, and do something.</p> <ul> <li>firstly, you need dialog. and a character. this is a very good API that has a lot of customization:</li> </ul> <p>https://www.roblox.com/library/59391730/Advanced-Player-AI</p> <...
0
Ingame Purchases
29806839
ConnorVIII
448
2014-03-10 20:08:11
<p>Is there a function that tells if a player has bought something ingame, so they dont have to leave and rejoin to receive their purchase?</p>
612
1
968
6
21540827
Articulating
1335
2014-03-10 20:31:12
<p>Change the ProcessReceipt callback, for Developer Products, or the PromptPurchaseFinished event, for other items. http://wiki.roblox.com/index.php?title=PromptPurchaseFinished_(Event) http://wiki.roblox.com/index.php?title=ProcessReceipt_(Callback)</p>
0
Why does the part wont rotate constantly as in script?
94203834
AswormeDorijan111
531
2017-12-24 22:07:51
<p>So, hi! I have problem with this normal script. I dont know why does it wont rotate part constantly.... I dont know how to use "for" loops... So please help me!</p> <pre class='brush: lua'>p = script.Parent.Parent.VIPAD while true do p.Orientation.Y = 40.52 wait(0.1) p.Orientation.Y = 45.52 wait(0.1)...
50873
2
50669
0
390163698
iiSpeak_Lua
35
2017-12-24 22:41:10
<p>You can't assign a number to only one component to the Orientation (X,Y,Z) of a part. It won't work. Instead, you have to use <em>Vector3</em>. So in this case it would go like this:</p> <p><code>p.Orientation=Vector3.new(0,40.52,0)</code></p> <p>And then you would repeat this as much as you need to. However because...
0
Killstreak board not showing?
1961959172
imnotaguest1121
74
2022-06-18 23:57:11
<p>So there was a problem, for some whatever reason, the killstreak board wouldn't appear, The output also said there wasn't a problem</p> <p>Script:</p> <pre class='brush: lua'>local DSS = game:GetService("DataStoreService"):GetDataStore("Kills") game.Players.PlayerAdded:Connect(function(player) local LS = Instanc...
130398
4
Linear table calculator issues?
74087102
Ziffixture
6785
2018-12-19 04:49:03
<p>I'm study Linear Relationships in mathamatics, I came across the formatting of the table used to provide the positioning of each value of the Graph, Looking something like this...</p> <p>Table[i] | Table[v]</p> <pre class="brush: lua">1 3.50 2. 7.00 3. 10.50 4. 14.00 5. ...
72552