question_score
stringclasses
21 values
title
stringlengths
6
119
question_userid
stringlengths
4
10
question_user
stringlengths
3
20
question_user_score
stringclasses
496 values
question_datetime
stringdate
2014-02-01 23:57:31
2023-04-02 01:40:15
question
stringlengths
0
11k
question_id
stringlengths
1
6
answer_count
stringclasses
8 values
answer_id
stringlengths
0
6
answer_score
stringclasses
18 values
answer_userid
stringclasses
946 values
answer_user
stringclasses
963 values
answer_user_score
stringclasses
692 values
answer_datetime
stringlengths
0
19
answer
stringlengths
0
10.7k
1
How do you give a certian tool to a team
15454657
GreekGodOfMLG
244
2014-03-03 03:13:34
<p>I had a glimpse of an idea, but I tried it and roblox crashed. Can anyone help?</p>
460
0
How can i tell to a script to run a script 6 times in a row?
146100287
Gigaset39
87
2022-09-18 08:01:49
<p>how i can tell to a script to run 6 times in a row? like:</p> <pre class="brush: lua"> local Dice = math.random(1,3) hint.Value = '3' wait(0.9) hint.Value = '2' wait(0.9) hint.Value = '1' wait(0.9) if Dice == 1 then P.CanCollide = false end if Dice...
131661
1
118906
2
1104970547
SuperPuiu
482
2022-09-18 08:12:54
<p>Hello!</p> <p>I didn't understood much, but from what I think you want the code to repeat 6 times right? Well, there are multiple ways to do that. First: <code>for</code> loop:</p> <pre class='brush: lua'>for i = 1, 6 then local Dice = math.random(1,3) hint.Value = '3' task.wait(0.9) -- use task.wait instead of wait...
0
Data store error help
33167175
1N0body
206
2014-03-12 20:27:57
<p>I was doing some research and stuff with the Data store, until this error came in my way:</p> <p>Player3STORE 22:17:15.505 - Place has to be opened with Edit button to access DataStores 22:17:15.506 - Workspace.Script:5: attempt to index global 'ds' (a nil value) 22:17:15.506 - Script 'Workspace.Script', Line 5 22:1...
652
1
1052
0
2900811
Vrakos
109
2014-03-13 10:30:59
<p>If your script doesn't work in online mode, use a <code>remote error debugger</code>. ROBLOX has made one and it is really helpful as it tells you errors in game.</p>
0
How do you make someone switch teams when they touch a player?
147305218
PeterParker17386
16
2021-08-14 14:41:07
<p>I want to make a tag game so when you touch someone the tagger goes on the runner's team and the runner goes on the tagger's team. I also want to know how to make all the runners turn into taggers (and vice versa) at a specific time in the match.</p>
126462
1
114947
0
1339927097
MightBeAHaxxer
24
2021-08-14 15:14:15
<p>Hello <strong>PeterParker17386</strong>,</p> <p>This is a simple task. and we recommend you give it a shot before asking! but anyways:</p> <p>You probably want to use a .Touched Event with "Touching a player" And a function with a loop inside for the all runners into taggers. I have made some scripts for you!</p> <p...
0
Why does this kohls infinite admin custom command not work?
125785010
ezra37170
0
2022-06-22 05:59:52
<p>I have this custom command setup for my pet based game so admins can give players pets(pet giving code not yet implemented):</p> <pre class='brush: lua'>{{'Give','givePet'},{'Gives a player a pet','ezra37170 ice_golem'},3,{'string','string'},function(pl,args) print(args[1], args[2]) </pre> <p>for some reason...
130453
0
tower defense simulator upgrade gui?
712776098
xristos1902
0
2022-07-30 15:53:13
<p>whne you click at the tower it shows gui but if you click somewhere the gui stays and says this on output</p> <p>attempt to index nil with 'Config'</p> <p>here is the script pls help me fix this</p> <p>local function CreateRangeCircle(tower, placeholder)</p> <pre class="brush: lua">local range = tower.Config.Range.V...
131013
1
How do I make a script using the animation tool?
33409355
wwwo197
5
2014-02-26 01:55:22
<p>Like if I make a code where you would say something(emotes) or in general how would I play it?</p>
306
0
How to make a touched event work past when it is touched?
215833213
Stiles8353
35
2022-08-11 18:13:31
<p>I have this bloxy cola that I want to move upon being touched, and I want it to stay there. It successfully goes to that position, but as soon as I step off where its original position was, it teleports back there. How would I fix this?</p> <pre class="brush: lua">game.Workspace.obby.ending.BloxyCola.Touched:Connect...
131199
0
How can I weld models or parts to the camera? [FPS]
137505940
GameBoyOtaku
63
2017-10-25 03:50:31
<p>I'm trying to make a fps like the famous Phantom forces not exactly but you get the idea. The problem is I really don't know where to start I can't even make welds I don't know what to do and I am learning CFame:lerp() luckily but I don't know how to weld a model to the camera. An example would be extremely helpful ...
48880
3
I need help with a script?
12132870
Prioxis
673
2014-04-17 00:03:26
<pre class='brush: lua'>local numPlayers = 0 for i, v in next, game.Players:GetPlayers() do if v:FindFirstChild("TeamColor") == BrickColor.new("Bright red") then numPlayers = numPlayers + 1 elseif v:FindFirstChild("TeamColor") ~= BrickColor.new("Bright red") then numPlayers = numPlayers - 1 end end if numPlayers ==...
2315
2
Are Module Scripts accessible by the Client?
151702995
RealTinCan
217
2019-07-19 20:41:29
<p>I know clients can't access server scripts and can access local scripts but what about ModuleScripts?</p>
84014
0
Hello, My NPC Chat thingy Isn't working. Do ya'll know why?
339941400
Superboybull2
2
2020-06-08 17:50:32
<p>Hello, Uh... I need help to fiqure out what is wrong, Can ya'll do this for me? It's kinda long</p>
105751
2
if statements are running for no reason?
1222281551
botw_legend
452
2020-06-08 00:29:28
<p>so this is my code:</p> <pre class='brush: lua'>local CurrentAmmo = script.Parent.CurrentAmmo local MaxAmmo = script.Parent.MaxAmmo local config = script.Parent.Parent.Parent.Parent.Backpack.AWP.Config while true do if CurrentAmmo.Text ~= config.CurrentAmmo.Value then CurrentAmmo.Text = config.CurrentAmm...
105675
1
97381
1
46052
chess123mate
5408
2020-06-08 14:41:09
<p>This happens because <code>.Text</code> is a string and CurrentAmmo and MaxAmmo are IntValues or (NumberValues) meaning that their <code>.Value</code> are numbers. According to Lua, strings and numbers are never equivalent. Meanwhile, Roblox allows you to assign a number to <code>.Text</code> and it will perform <co...
1
Good Tweening for CanvasPosition?
2933011
Nickoakz
231
2015-08-17 05:45:55
<p>Is there a good method of CanvasPosition Tweening to make bouncing down the list more smoother?</p>
21510
0
How do I rotate a MeshPart?
363446931
ToddyWars
41
2018-07-01 10:47:20
<p><strong>How do I rotate a MeshPart, with script?</strong></p>
61563
1
60007
0
6773911
Launderer
343
2018-07-01 23:25:34
<p>The same way you rotate any other part.</p> <pre class='brush: lua'>MeshPart.Orientation = Vector3.new(X, Y, Z) </pre>
1
Resize Increment in parts?
11808841
blowup999
659
2014-07-18 18:45:08
<p>I'm trying to script parts to EXACT sizes and I'm having issues with ResizeIncrement in Part Its automatically set to 1 and I can't figure out how to change it cause everytime I try it errors and says "can't set value"</p> <p>Trying to get a new right arm and the size is automatically changed to Vector3.new(1,2.4,1)...
8323
1
10787
1
22850617
ColdSmoke
55
2014-07-18 18:55:30
<p>``right.FormFactor = 'Custom'</p> <p>You need to make the form factor either custom or symmetric in order to get that size, at default it's at brick which goes in 1.2 increments</p>
0
ServerScriptService.Stats:102: Expected identifier when parsing expression, got ')' can u help me?
1360697062
TheUltimateBluer
2
2021-06-07 18:30:42
<p>local dataStores = game:GetService("DataStoreService"):GetDataStore("BucksDataStore") local defaultCash = 50 local playersLeft = 0</p> <p>game.Players.PlayerAdded:Connect (function(player)</p> <pre class="brush: lua">playersLeft = playersLeft + 1 local leaderstats = Instance.new("Folder") leaderstats.Name = "leaders...
124173
0
Making players spawn in seats, them not allowing then to jump out?
328413134
LiLFriks
39
2018-07-01 01:54:42
<p>I'm making a game but I don't know what functions I would use to make the table seats spawn by the # of players in the game, then put all the players into the seats and make it so they can't move. Help?</p>
61542
1
59980
0
189233107
XxTGLxX
7
2018-07-01 19:57:07
<p>put them in the seat and anchor theyre humanoidrootpart, that will make them not able to jump.</p>
1
Can we set the GetChildren() order in a folder?
180954931
palame135
44
2019-04-22 12:29:59
<p>I'm making an tower defense game but the enemies are taking random path. Is there a function that change the order for example: Apple: 0 Cheese: 0 Water: 0 To Apple: 1 Cheese: 0 Water: 0 So when i call the GetChildren function he give me apple first?</p>
79338
1
74008
3
303361292
Twinbrotato
543
2019-04-22 13:06:57
<p>You will have to sort the table of children yourself. Luckily for you, lua has a sort function for tables that allow you to use a custom sorting function: <code>table.sort</code>.</p> <p><code>table.sort(t, comp)</code> The function's first argument is the table you want to sort, and the second is the comparison fun...
0
I made a boss battles if i = 2 but something is not quite right?
86859562
fatih1106
5
2021-03-10 19:02:49
<pre class='brush: lua'>if i == 2 then game.Lighting.DarkSkies.Parent = game.ServerStorage game.ServerStorage.Hell.Parent = game.Lighting game.Workspace.wave45:Stop() game.Workspace.FinalBossMusic:Play() game.ServerStorage.FinalBoss.Parent = game.Workspace ...
121166
1
110403
0
407180563
robloxtitanic584
87
2021-03-10 22:56:25
<p>You need to separate the two if statements by putting an</p> <pre class="brush: lua"> end </pre> <p>after the</p> <pre class="brush: lua"> game.ServerStorage.Towers.Parent = game.Workspace </pre> <p>and deleting the last</p> <pre class="brush: lua"> end </pre> <p>of the code. Your code should look like this:</p> <pr...
0
Teleport GUI script not working, doesnt print any errors either?
221498422
Octocentillion
15
2019-02-01 04:48:14
<p>The script i have here is simple, when clicked the clicker is teleported to the position of forestbrick, in workspace. This is a normal script in a TextButton, which is in a frame thats in a gui.</p> <pre class='brush: lua'>function Click() script.Parent.Parent.Parent.Parent.Character.Head.CFrame = CFrame.new(game.W...
75527
2
70992
6
74087102
Ziffixture
6785
2019-02-01 06:13:18
<blockquote> <p>Introduction &amp; Understanding</p> </blockquote> <hr /> <p>The reasoning behind this issue is mainly due to <em>FilteringEnabled</em>. Before continuing, please learn more about this by watching <a target="_blank" href="https://m.youtube.com/watch?v=_jTd4sfCh7Y">this</a> quick video covering a bit of ...
1
Assign Player to Team on Join?
1661478101
Bob4koolest
23
2020-11-21 20:44:49
<p>There are two teams: Red and Black. When a new player joins, they'll be assigned to the team with the least amount of people.</p> <p>For instance, if Red has 18 people and Black has 22, then the next player that joins will be assigned to Red. If both teams have the same amount of people then the next player that joi...
116122
1
106696
0
1300267101
KadeinwalesRBLX
69
2020-11-24 20:47:08
<blockquote> <p>Help</p> </blockquote> <p>I suggest reading up on this: <a target="_blank" href="http://">https://developer.roblox.com/en-us/api-reference/function/Team/GetPlayers</a></p> <blockquote> <p>Code (Server Sided)</p> </blockquote> <pre class='brush: lua'>local Teams = game:GetService("Teams") local amountOnR...
0
Can you pass a value to a Module Script?
674490026
SteelMettle1
394
2019-01-27 15:20:18
<p>I am currently trying to learn modules so I can use them correctly and effectively, but there is a single line in both the developer and the wiki that reads:</p> <p>Developer: "If a ModuleScript is required multiple times in the same environment the return value from the first execution will be used for every requir...
75265
1
70768
1
60691297
seith14
206
2019-01-27 16:48:15
<p>Using a <code>ModuleScript</code> Can be very useful for a whole lot of things like Organization,Storing Data,returning data. I mainly use it to Organize but I'm sure there are tons of more uses.</p> <p>You can store data inside a module script, You can also send things to a function for example: <code>Server Script...
0
Why does my gun stop firing if i use debounce and shoot behind me ?
85438156
Abdul2404
0
2022-05-06 03:52:04
<p>the gun script has magnitude &lt; 1.33 in it and it makes it so that when you shoot behind you, the gun doesnt shoot. i added a debounce to the gun script and it works until you shoot behind or to the side of your character it stops shooting and it doesnt let you shoot forward again. it used to let you shoot forward...
129924
0
How do I make a surface GUI cycle between text?
58235802
Chromathyst
10
2014-04-21 21:05:55
<p>How so I make surface GUI text transition loop?</p>
3195
2
4464
1
29422476
starkiller523
65
2014-04-21 21:13:37
<p>If i understand you right do this:</p> <p>Put a script in the TextBox/TextButton/TextLabel and put this in it</p> <pre class='brush: lua'>TextBox = script.Parent while wait(1) do -- Change 1 to how long you want it to wait TextBox.Text = "I like bacon" -- change to text you want wait(1) -- How long you want it to wa...
1
Getting DataStore Error &quot;DataStore Request Added To Queue, further requests will be dropped&quot;?
443643048
Soban06
410
2020-10-25 04:34:55
<p>I have these 2 files (which I will show soon after explaining), called Leader board and Skips. The Leader board files simply creates a leader board and the skips script creates skips inside the player. I am using datastores on both of these scripts (leader board and skips).</p> <p>I have recently implemented <em>Bin...
114854
0
How do I tween a model?
1791296853
xbantixx
10
2022-12-22 10:30:09
<p>Hello, I am attempting to make a door that when interacted with a proximity prompt, it goes upwards using tweens, and if it is interacted with when it is up, it goes down. I have no idea as I am not experienced at coding. Replies are appreciated. Thanks</p>
132633
0
How do i select the clickdetector of many buttons in a folder?
98383385
hellmet1
40
2022-09-21 19:48:53
<p>So, I am making an elevator that has a fading gui when you click a button, just to clarify, this script isn't mine, but how do i get the clickdetector of every part in the folder?</p> <pre class='brush: lua'>local Frame = script.Parent local Buttons = game.Workspace.Buttons:GetChildren() local ClickDetector = -- i w...
131689
2
118936
1
110029109
loowa_yawn
281
2022-09-21 20:00:54
<p>If you are looking to get <strong>every</strong> click detector inside a given folder (either as a child of a child, child of a child of a child, etc..):</p> <p>you can use <code>GetDescendants()</code> and <code>IsA()</code>, both respectfully getting every object inside an object, and checking if a Roblox object i...
0
How to delete accesories on local player in local script?
449298285
StirSavvy
31
2020-07-07 01:07:21
<p>Hello. How do you delete accessories on the local player in a local script? Is it something like:</p> <pre class='brush: lua'>game.Players.LocalPlayer.CharacterAdded:Connect(function() local plr = game.Players.LocalPlayer.Character if plr.Accessory then --Not sure what to do at this part and after, I don't e...
108394
2
99599
1
169428835
Cynical_Innovation
597
2020-07-07 01:24:33
<p>This is my way of doing it. If it doesn't work then I made an error on my end</p> <pre class='brush: lua'>game.Players.LocalPlayer.CharacterAdded:Connect(function() local plr = game.Players.LocalPlayer.Character for i, v in ipairs(plr.Character:GetChildren) do if v:IsA("Accessory") then ...
0
Why is my touched script not detecting a block?
275257157
marsdonh
6
2020-10-17 22:48:24
<p>so right now i have a script (below) which is a placement script. there is a part below which is supposed to see if a block is being touched then turn it red but it isnt working too well. (vid below) https://streamable.com/fx84wh</p> <pre class='brush: lua'>wait() local Players = game:GetService("Players") local pla...
114494
0
How do I get a image of a players avatar?
450355199
4d61736f6e
59
2017-12-05 21:37:04
<p>I'm not sure how to go about this. I want to get a players avatar into an image and attach it to an ImageLabel GUI. Any help is appreciated. Links to API classes that can help are welcomed.</p>
49945
1
Why is a Local Part destroyed or not destroyed depending on a value?
150331781
TheGamerGuy82
8
2022-08-04 19:55:49
<p>Sorry to ask such a simple question, but I've been scratching my head at this for a while now. I have a script that generates a local part and automatically destroys it when Rebirths, a leaderstats value, is >= 1. Here is the script:</p> <pre class='brush: lua'>local Player = game.Players.LocalPlayer local Leadersta...
131101
1
118425
0
263275634
HEMAN_9
70
2022-08-04 20:12:47
<p>The problem is that your code only checks if it should destroy the part the one time it is first ran. to fix this and get the desired result you could use the event ".Changed" for the rebirth leaderstat. on line 14 you could write: Rebirths.Changed:Connect(function(value)</p> <p>if value >= 1 then print('Milestone')...
0
How to make sound not play when character dies and respawns?
129789664
nathanielstanle
20
2022-08-01 06:23:19
<p>How to make it so that when a player has already touched a checkpoint and the sound is played, if they end up dying and respawns, the sound would not be played again??</p> <p>Every time I reset my character while testing and I respawn on a checkpoint that I have already touched and the sound has already played, the ...
131034
0
Why RemoteEvent doesn't fire from TextButton?
140563842
NoReal229
19
2022-06-23 08:40:05
<p>Local Script</p> <pre class='brush: lua'>local event = game.ReplicatedStorage.Events.ACTransfer local button = script.Parent button.MouseButton1Click:Connect(function() event:FireServer() end) </pre> <p>Server Script</p> <pre class='brush: lua'>local event = game.ReplicatedStorage.Events.ACTransfer event.OnServe...
130477
2
Is there a difference between for _,v in pairs() and for i,v in pairs() ?
192986548
iiParadoxLegacy
38
2017-01-04 18:49:23
<p>Is there a difference between <code>for _,v in pairs()</code> and <code>for i,v in pairs()</code> ?</p> <p>Just something I wanted to finally figure out with some help.</p> <p>I havent found anything on the wiki yet.</p>
38719
0
How would I make the hand motor 6d face the mouse?
490346166
A_Mp5
146
2021-02-21 20:19:49
<p>I have a flashlight tool, and I want to make it so the shoulder, elbow, and wrist joints will make the flashlight point at your mou8se location. I already have a script for the torso and head, but I need to replicate this onto the elbow, shoulder, and wrist joints. (r15)</p> <pre class='brush: lua'>local RunService ...
120477
0
Viewmodels to FE GUN KIT?
670968631
Lubie_placki1231
0
2021-05-16 17:00:07
<p>Hello, this is my first post on this page :D and I have one question, how to use ready-made viewmodels? for example, I have a viewmodel ready, but I don't have a tool, what should I do to have this gun, what is on this viewmodel? thanks in advance :) :) :) :)</p>
123496
0
Why doesn't this work in a real server?
11600866
1GREENBOB123456
15
2014-02-20 00:40:36
<p>This here code piece doesn't work in a real server, and it's in a localscript. I've tried changing the code up a little bit but it still wouldn't work, Here it is:</p> <pre class='brush: lua'>local damagemultiplier = 1 local passes = {{"Peeta's Perks", 146508254}} for _, pass in pairs(passes) do if G...
144
0
How to make the only moving part in the player the HumanoidRootPart?
514362715
therotatedo
19
2020-05-08 10:37:15
<pre class='brush: lua'>game:GetService('RunService').Stepped:connect(function() game.Players.LocalPlayer.Character.Head.Anchored = true game.Players.LocalPlayer.Character.Torso.Anchored = true game.Players.LocalPlayer.Character["Left Leg"].Anchored = true game.Players.LocalPlayer.Charac...
102352
0
Can someone help me with my damage and message button?
535045242
Tipsy_Juicebox
12
2021-06-12 21:01:05
<p>I am trying to print a message that a player clicked the button then do 500 damage to all players. Please explain and help me figure out why this isn't working.</p> <pre class='brush: lua'>local M = Instance.new("Message", game.Workspace) local p = game.Players:GetChildren() function onClicked() M.Text = "The bu...
124331
1
How to make this script play audio only once and stop when new audio needs to start?
114757536
NothingnessZ
5
2016-08-16 16:09:45
<pre class='brush: lua'>local brick = script.Parent local sound = script.Parent.Sound debounce = false brick.Touched:connect(function(hit) player = game.Players:GetPlayerFromCharacter(hit.Parent) if player and not debounce then debounce = true play = sound:Clone() play.Parent = player.PlayerGui play:Play() wait(5) debo...
34612
1
How do I use the semicolon ; symbol?
13405461
TheDarkOrganism
173
2015-04-22 16:55:09
<p>All I really want to know is how use <strong>;</strong> in my scripting and also I want to know when and what for I should use it.</p> <p>Here is some code I have been using it for without knowing what it does:</p> <pre class='brush: lua'>return setmetatable({},{ __metatable = true; __index = {}; __newin...
16925
1
20303
5
386992
BlueTaslem
18071
2015-04-22 17:32:40
<p>Semicolons have two uses in Lua.</p> <h1>Semicolons in Table Constructors</h1> <p>First, there's the use you named here, which is <strong><a target="_blank" href="https://www.lua.org/pil/3.6.html">described in 3.6 of PIL</a></strong> -- semicolons inside tables are exactly the same as commas. They separate different...
0
Game teleport help?
25037645
turtle2004
167
2016-06-12 14:18:43
<p>So I am developing a game that starts with a GUI intro and when you press play it will teleport you to a game which I have linked as an other game in the game settings. I want this place to be a start place and be able to teleport the player to the linked game. It keeps coming up with this error:</p> <blockquote> <p...
31717
0
My door parts are going on top of my door when I tween it?
113764295
Superameno
34
2018-11-22 01:06:12
<p>I have a door, and 2 union parts which are the sides that slide out when tweened, but when I try it they still tween to the right position, but just get pushed on top of the door. When I turned off "CanCollide" in all the parts and unions of the door it worked, but it seems it doesn't tween properly when CanCollide ...
70956
1
67444
3
61716444
theking48989987
2141
2018-11-22 01:23:27
<p>Basically, the problem here is that you are tweening with Position</p> <hr /> <h2>BodyMovers</h2> <hr /> <p>The position property of a part, like velocity and Orientation, factors in collisions. If the part is colliding with the hitbox of another object. However, BodyMovers such as BodyPositions, BodyGyros, Bodyforc...
0
What type of script would work for cross place chat?
1934696602
TrendMasterG2
0
2021-09-14 10:38:40
<p>I have a one place game with lots of parts and I’d like to spilt it into multiple places to reduce lag. How would I do that while keeping the ability for players to chat to eachother? Also how do places work? Do they use separate servers?</p> <p>I’ve tried the messaging service playground sample game with another pl...
127436
0
How can I change the name and color of a team with a script?
1503498860
surviarlTheJefkillre
38
2021-04-06 17:43:36
<p>My script duplicates the default team and edits some properties, this works in the explorer, however, in game it shows that there is another white team called default.</p> <p>here is my script:</p> <pre class='brush: lua'>local input = script.Parent local button = input.Parent local place = button.Parent.ScrollingFr...
122085
0
How to Make a TextButton open a frame with a different parent?
463758281
Guest_99866
9
2022-06-22 17:51:56
<p>Ive tried using the regular code for opening a frame but it does not work, can you assist me in how i could do this?</p>
130468
1
my script wont work ive been searching on YouTube but nothing popped up?
183885957
Chaotic_Devel0per
7
2021-06-10 17:21:54
<p>what is wrong with this function</p> <p>armor.Touched:Connect(function(touchedPart) local humanoid = touchedPart.Parent:FindFirstChild("Humanoid") if humanoid then humanoid.MaxHealth = 200 armor.Position = Vector3.new(torso.Position) end end)</p>
124251
0
How to make music playlist shuffle?
26269831
ShadowNinja1080
6
2017-10-23 00:52:12
<p>Hello, I made GUI of where you click button and it plays songs. What I did was made a button GUI and added an empty Audio inside of it. Then inside the empty Audio, I added a script which is below. It works well but the only problem, I want to make it when you click, the list of songs in script don't go in order, th...
48843
0
How do i fix &quot;attempt to index string with text&quot;?
691264863
XxDawitGamerYTxX
0
2022-07-29 14:28:00
<p>How do i fix "attempt to index string with text"</p> <p>this is the code that is being marked</p> <pre class='brush: lua'>-- Changing Display itemNameT.Text = toSelectIB.Name itemDescT.Text = toolData.Items[1].ToolTip </pre> <p>this is the full code if you need it</p> <pre class='brush: lua'>-- Player Stuff ...
130994
2
String Manipulations? &quot;String.&quot; Question
29413559
alphawolvess
1784
2015-05-08 21:39:19
<p>I'm a bit confused with String.(WhateverHere). What i'm confused of is the String part. I'm asking about:</p> <pre class='brush: lua'>string.len() --The string part string.lower() -- The string part, Function doesn't matter, I'm showing it doesn't matter by showing two different functions </pre> <p>I've noticed I ca...
17372
1
20759
0
19566737
Unclear
1776
2015-05-08 22:44:43
<p><code>string</code>is a variable that implicitly refers to the built-in string library. You can check out the contents of the string library <a target="_blank" href="http://wiki.roblox.com/index.php?title=Function_Dump/String_Manipulation">here</a>.</p> <p>Because it is a library, it is basically <em>a table</em> fu...
0
How would I use CFrame lerp?
33349964
KennySfromTitan
106
2015-07-23 02:37:59
<p>I really cant understand it, but it would be extremely helpful in my game.</p>
20257
0
No Events And Functions Are Working When Fired Regarding A GUI?
353632707
SuperSM1
67
2021-08-03 16:10:33
<p>So you can teleport somewhere in the same game (used a CFrame) and then there's a leave button, the problem is, when you press leave you're still sitting (you teleport into a seat for the first teleportation) and I've tried to get the character to unsit in this post: https://scriptinghelpers.org/questions/126022/how...
126028
0
How to make parts point in the direction of the mouse?
24462345
Mowblow
117
2014-04-22 19:13:35
<p>I'm making a turret for my tank game, how would I make all the parts in the turret face the mouse? Also, how would I make it so if the mouse is closer to the top of the screen, it only moves the barrel?</p>
3288
1
4616
2
9542689
Vathriel
510
2014-04-22 22:05:46
<p>Lets start about thinking about CFrame, CFrame can be made in 2 ways, first is the basic</p> <pre class='brush: lua'>CFrame.new(0,0,0) </pre> <p>However there is also another way! If say a part's orriginal CFrame was 0,10,5 and you wanted to have this part's lookvector point a position you can do like so</p> <pre cl...
0
How can I make my Daily Reward timer after claiming the reward start again at 24 hours?
667211255
GodOf_Lua
25
2019-08-04 20:52:11
<p>Hello basiclly what I do like to ask is in the title. I already tried a solution with datastore cause it takes everytime the datastore but due to queue this won't work and I don't have a idea.</p> <p>Claim script:</p> <pre class='brush: lua'>local DataRow = game.ReplicatedStorage.GetDataRow:InvokeServer() local sec ...
85103
2
79014
0
365688207
Arsubia12
1733
2019-08-04 22:14:12
<p>You could use data store, like this; NOTE: I assume you already made a <code>leaderstats</code> of cash, but this will work on anything rewards:</p> <p>in server script:</p> <pre class='brush: lua'>local dataName = "DailyRewards_InThisCoolGame" local datastore = game:GetService("DataStoreService"):GetDatastore(data...
0
Attempt to index nil with name??
58142212
ReeseTP
7
2023-02-07 15:45:48
<p>This is a teleport script, but for some reason I am getting a "Attempt to index nil with name Line 5" and I don't know why. Any help is really appreciated!</p> <pre class='brush: lua'>local Pad = game.Workspace.SecuritySystem.Pad2 script.Parent.Touched:Connect(function(hit) local Player = game.Players:GetPlayerF...
133037
0
Script scans every players but How do I clone a GUI to every player it scans?
2421626
charles600
0
2021-01-12 18:22:07
<p>I made a script that scans all the existing players then server clones the GUI I made inside the player's playergui. Code is below</p> <p>Message = script.Message Popup = Message:Clone()</p> <p>game.ReplicatedStorage.DialogueEvent.OnServerEvent:Connect(function()</p> <pre class="brush: lua">wait(2) for i, v in pairs...
118600
1
How do I make a part that has a changed position go back to it's original position?
161262344
sean_thecoolman
190
2019-06-14 00:36:30
<p>Code I have so far:</p> <pre class='brush: lua'>script.Parent.ClickDetector.MouseClick:Connect(function() script.Parent.CFrame = script.Parent.Parent["FrontHood_I"].CFrame script.Parent.Orientation = ("0, 0, -30") end) </pre> <p>Now that it's position is exactly FrontHood_I's, how do I make it go back to it'...
81695
1
76007
1
70235059
BennyBoiOriginal
293
2019-06-14 00:40:47
<p>You should store the position in a variable before you change it and then have it go to the position stored in the variable when you need to.</p> <p>Sample code:</p> <pre class='brush: lua'>local myPart = Instance.new("Part") -- Create a part local myPartPos = myPart.Position -- Reference this to get the original po...
0
What is the purpose for &quot;local&quot; in a script?
222326960
iiMLGPanda
0
2020-02-17 06:15:48
<p>why do people do</p> <h2>local block = script.parent</h2> <p>instead of just doing</p> <p>block = script.parent</p> <p>thanks for the help, sorry if this is a dumb question I'm not very advanced in lua.</p>
94713
2
87460
11
44083134
Fifkee
2017
2020-02-17 06:54:09
<p>You use the <code>local</code> keyword to ensure that your variable doesn't leave the current scope.</p> <p><strong>Scopes</strong> are like dividers for your code to run in, the mnemonic not to be confused with a function, that are blocks of code that can be called so segments of code can be ran everywhere. Everyth...
0
How to fix &quot;Invalid argument #2 (string expected, got nil) error?
56052431
EmperorByshu
0
2021-06-09 20:38:06
<p>The error happens on the teamPlayer function: "local newTeam = playerFrame[team]" On line 94</p> <pre class='brush: lua'>local playersService = game:GetService('Players'); local localPlayer = playersService.LocalPlayer; local localName = localPlayer.Name; local leaderboardGUI = script.Parent; local mainFrame = leade...
124230
0
How do I get rid of my menu GUI frame when the player clicks the play button?
34134079
ScarlettPhoenixx
2
2021-07-21 03:07:11
<p>So, I made a menu for my game when a player loads in they'll click the Play button to return their camera to their character, but the GUI won't go away. I have the scripts</p> <p>Start GUI CameraGui Frame Camera PlayBtn Script.</p> <p>The Camera Script is</p> <p>local Player = game.Players.LocalPlayer local Characte...
125557
1
114263
0
1674805834
Black_Magic2533
22
2021-07-21 18:24:23
<p>Instead of going from the Player Gui you can go directly from the Starter Gui and destroying isn't the best for GUIs because if it was ran on a SS script it would function when ANY player pressed the button</p>
0
Why is table.getn(table) faster than #table?
128325709
0hsa
193
2021-03-08 19:58:52
<pre class='brush: lua'>t=tick() print(#{"value1","value2"}) print(tick()-t) -- prints 0.0003 </pre> <p>,</p> <pre class='brush: lua'>t=tick() print(table.getn({"value1","value2"})) print(tick()-t) -- prints 0.0001 </pre> <p>numbers vary, but usually the first one is slower :/</p>
121092
1
110353
1
124281858
DeceptiveCaster
3744
2021-03-09 12:44:07
<p>Well, you're actually wrong.</p> <p>The length operator uses the same baseline as <code>table.getn()</code> (which is deprecated btw), but the difference is calling its base function. Calling the function explicitly, as in <code>table.getn()</code>, is faster than calling the operator associated with that function, ...
0
Help print hello world?
496670508
Hogsan
2
2018-02-13 03:27:49
<p>My code isn’t working (I’m a beginner) how do I fix it?</p> <pre class='brush: lua'>local message = “ hello world” print(“message”) </pre>
53652
1
52835
0
33666987
XDgirl909090
143
2018-02-13 03:30:03
<p>If you want to literally print "message", then keep the code.</p> <p>Otherwise, you need to remove the quotations around message.</p> <p>Should look like this:</p> <pre class='brush: lua'>local message = " hello world" print(message) </pre>
2
How would I save leaderstats?
454606509
Spiyder1
72
2020-06-16 15:36:51
<p>I'll make this short, so I am trying to make a currency save system, but it won't work. So If I change "lvl" to 5, next time when I join the game it'll say "0", that means that I have no currency, obviously, no output errors as far as I can see.</p> <pre class='brush: lua'>local players = game:GetService("Players") ...
106545
2
98073
2
1222281551
botw_legend
452
2020-06-16 15:41:22
<p>try watching this video https://www.youtube.com/watch?v=5AUP9C0rtBY</p>
0
How would I make the players name invisible?
22814853
Senor_Chung
210
2015-03-27 03:23:17
<p>Is there a way to do this? I'm trying to make a custom name tag.</p>
16076
1
19297
1
3508838
DigitalVeer
1473
2015-03-27 03:43:50
<p>There are two properties of Player that you may find useful:</p> <p><code>NameDisplayDistance</code>: <a href="http://wiki.roblox.com/index.php?title=API:Class/Player/NameDisplayDistance">http://wiki.roblox.com/index.php?title=API:Class/Player/NameDisplayDistance</a></p> <p><code>HealthDisplayDistance</code>: <a hre...
0
How can I store maps in a game?
18592157
Carvyy
15
2014-04-17 21:09:25
<p>I need to store different maps, with the bricks and all somehow so I the game can choose one later on and load it. For now I just want to know how I can store them all and make them appear/disappear. I was thinking something that would have them there, but disable and enable then when needed.</p>
2530
5
3523
0
43821574
TechTeam911
20
2014-04-17 21:44:43
<p>Store the maps in ReplicatedStorage, they'll load on both the client and the server. Storing maps in server-storage won't replicate it to the server, and it'll take longer to replicate the maps to the client once you parent/clone them to Workspace.</p>
0
Struggling with Syntax errors on a gamepass button, can i please have help?
169304457
CreamySamoyed
2
2021-09-14 19:44:46
<p>I've been coding a gamepass button on my game, but i can't find a way to fix the syntax errors as i am a new coder. can somebody please help with the syntax errors?</p> <pre class='brush: lua'>local button = script.Parent local function onButtonActivated(local MarketplaceService = game:GetService("MarketplaceService...
127442
1
115629
0
1475446152
uf5m
15
2021-09-14 23:03:23
<p>I'm not sure if this would work but I tried</p> <pre class='brush: lua'>local button = script.Parent local function onButtonActivated() local MarketplaceService = game:GetService("MarketplaceService") local Players = game:GetService("Players") local gamePassID = 22453139 local function pr...
0
How to Make Spawn Into Map GUI That Appears When You First Join Into The Game?
1375787127
lolgetjebaited
0
2020-08-01 01:42:51
<p>I'm working on a game and I don't know much about scripting (only a little) and I'm not sure on how to make a spawn GUI that appears when you first load the game. Could anyone help me with this? Thanks.</p>
110433
0
How would i go about transferring local parts to the server?
1919544428
Cill_Roblox
2
2023-03-22 18:56:17
<p>Editing a collection of parts (and/or objects, for example accessories or meshes, etc) through localscripts and getting them to show up in the serverside workspace later. It's that simple. If there is a way, how would i go about doing that? Feel free to ask any questions if necessary.</p>
133231
0
how to get a npc to activate a tool?
200553631
rabidazara
0
2021-10-11 16:42:06
<p>im trying to create a npc that uses a staff this is my script:</p> <pre class='brush: lua'>local staff = script.Parent.BoonStaff local rarm = script.Parent:FindFirstChild("Right Arm") local larm = script.Parent:FindFirstChild("Left Arm") function dmg(hit) if hit.Parent ~= nil then local hum = hit.Parent:...
127835
0
HTTP 403 (Forbidden) on roblox client only how fix?
348829746
ym5a
52
2021-10-01 19:38:44
<pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(player) local data = { ["embeds"] = {{ ["title"] = "Player Info", ["thumbnail"] = { ["url"] = string.format("https://www.roblox.com/headshot-thumbnail/image?userId=%s&amp;width=150&amp;height=150&amp;fo...
127771
2
115835
1
110029109
loowa_yawn
383
2021-10-01 21:04:16
<p>Heya, might I recommend googling what HTTP 403 is?</p> <p>The HTTP 403 Forbidden client error status response code indicates that <strong>the server understood the request but refuses to authorize it.</strong></p> <p>Also a <a target="_blank" href="https://scriptinghelpers.org/questions/56187/http-error-403-with-a-d...
0
Why can't I set this script's Source?
54680
jaytheidiot
60
2014-02-28 14:29:53
<pre class='brush: lua'>Part = Instance.new("Part") Part.Size = Vector3.new(1,3,3) Part.BrickColor = BrickColor.new(23) Part.Transparency = .3 Part.Reflectance = .3 Part.Parent = game.Lighting Part.Name = "Trail" s = Instance.new("Script") s.Parent = game.Lighting.Trail s.Source = [[ wait(2) script.Parent:Destroy() ]] ...
362
0
Trying to make my camera go from 2D to 3D by stepping on a part | ?
170982395
kostantinos699
0
2022-06-23 16:26:31
<p>I'm kinda new to scripting and I was trying to make the camera go from 3D to 2D when stepping on a part but I can't figure out how to do that Can anyone give me a hand?</p>
130481
2
How to work with chatting and tables?
10350854
dreamy67
135
2014-04-24 23:33:00
<p>Im trying to test somethings with chatting and tabels but im trying to make this work, can someone help?</p> <pre class='brush: lua'>admins = {"dreamy67"} game.Players.PlayerAdded:connect(function(player) p.Chatted:connect(function(speaker, message, chatColor) if message == "/myname" and player == admins...
3466
1
4846
0
8869935
wattleman
90
2014-04-25 00:23:42
<p>Basically, there are a few things you messed up on, such as searching for an admin. And also the chatted event could be altered/shortened. Try this:</p> <pre class='brush: lua'>admins = {"namehere"} game.Players.PlayerAdded:connect(function(p) for i,v in pairs(admins) do if p.Name == v then ...
0
What is an &quot;if not&quot; statement?
13667373
LordDragonZord
3546
2015-01-02 21:17:36
<p>What is an <code>if not</code> statement? I see it in scripts. I think it might mean not equal to or not nil.</p>
13929
0
BodyPositions and their speed
25691148
FromLegoUniverse
264
2014-03-12 17:22:09
<p>Is there any way to make it so they move at a constant speed? If not, any bodyobjects I can use to help me where a CFrame position destination is available?</p>
647
1
1036
2
4030068
jobro13
980
2014-03-12 18:06:08
<p>Yup. BodyVelocity! Just set the <code>velocity</code>property of it to the speed vector. So, for instance, if you say</p> <pre class="brush: lua">local bv = Instance.new("BodyVelocity", game.Workspace.PartToMove) bv.velocity = Vector3.new(20,0,0) </pre> <p>That will start moving the body to that direction at a const...
0
How do I make a function execute once and only once?
4338714
OniiCh_n
410
2014-02-28 04:03:52
<p>I only want a certain function to execute once, and then the next time the same event happens, another function will follow.</p> <p>Here's my current code for the first response.</p> <p>(I'm making a text-based adventure)</p> <pre class='brush: lua'>local gui = script.Parent.Parent --The script is inside a TextBox w...
348
1
639
2
4785454
Everesty
1001
2014-02-28 04:13:21
<p>One way you can do this is to set a variable to true once the function has executed.</p> <pre class='brush: lua'>local FuncExecuted = false function f1() if not FuncExecuted then print("Hai") FuncExecuted = true end end function f2() f1() f1() f1() end f2() </pre>
3
How would I attach an object to camera?
6030494
Exsius
162
2014-03-04 02:17:24
<p>Like making parts that are attached to players camera.</p> <p>I have done it once in unity but the unity engine is different from roblox's</p> <p>Any tutorials on this I can find?</p>
474
0
Any way to IP ban a player from your game?
181386826
Derzett
51
2019-07-19 22:01:51
<p>So i'm looking for a method to IP ban any player from your game since today a user of mine reported that an exploiter was constantly killing him in the games lobby. Well i didn't ban him yet since he will just use an alt account but i were wondering if i actually can get completely rid of him? He was really toxic to...
84020
0
Can I use return to call a set of numbers?
5538435
AwsomeSpongebob
350
2014-07-18 17:20:15
<p>Is it possible to use return to call a set of numbers? I'm sorry if this doesn't make much sense, I'm still kind of new to this and I'm not really sure how to word it right. Here is a section of my script so you can get a better idea of what I'm asking.</p> <pre class='brush: lua'> if game:GetService("Marketplace...
8318
0
The scripts are supposed to add power to my Tool but it does not work, anyone know how to fix this?
1941325766
mepoopycoming
0
2022-05-13 20:52:56
<p>"Tool = script.Parent Handle = Tool:WaitForChild("Handle") Hand = game.StarterPack.Hand NewServer = Hand.NewServer Server = Hand.Server StarterPack = game.StarterPack</p> <p>Tool.Equipped:Connect(function() print("Equipping tool") end)</p> <p>Tool.Activated:Connect(function() print("Tool Activated") Server.Disabled ...
129991
2
What is a Module Script, and when should it be used?
16581981
sgsharp
265
2014-02-11 05:49:56
<p>ROBLOX recently added a new object, "ModuleScript," to the Basic Objects window in studio. How does it work? What is it? When should I use the new object?</p>
3
0
My Health and Touch script does not work and does not destroy the model?
1400234436
KoalaKo_XD
27
2023-03-08 22:24:09
<p>Hello!</p> <p>I am making a game where you shoot a part at enemies, and when the part named "Ray" touches an enemy it should destroy it, but it does not work! (canTouch = true) Here is my Touch Script:</p> <pre class='brush: lua'>local HRP = script.Parent.HumanoidRootPart HRP.Touched:Connect(function(hit) if hit...
133162
1
CFrame or Primary Part To Move Group?
100717824
UnforgivenJr3087
26
2019-11-06 20:44:09
<p>Ive been trying to figure out how i would move a group though a script. would i be using CFrame or Primary Part?</p>
89703
2
83153
0
263802104
CeramicTile
847
2019-11-06 21:18:25
<p>There are several ways to do it, and moving it with the PrimaryPart requires CFrame. The other way is called the :MoveTo() function. It doesn't requite a PrimaryPart, but if you have one it will move it with the PrimaryPart, otherwise it will try to move the model using the root part.</p> <p>(More info on :MoveTo())...
0
How do I give players tools when they join a game due to the hats they're wearing?
1621720
dukemoepicklepoe
0
2014-04-16 12:26:48
<p>I did it cheaply where I'm going to put a can't-collided brick at every spawn, each for a hat (similar to a VIP door but for hats). I was wondering what to base the hat texture on (I went by mesh). I was also wondering how I would change the two lines labeled --this is wrong, because I'm clueless about getChildren. ...
2132
1
2833
0
47420928
Scriptury
70
2014-04-16 12:32:47
<p>I am not sure whether the rest of your code will work but I changed the lines that you highlighted. You will also need to place the tool into Lighting.</p> <pre class='brush: lua'>permission = {""} -- not needed texture = "http://www.roblox.com/asset/?id=152725777" -- Basic Egg texture...? function checkOkToLetIn(na...
0
im trying to make a milk simulator and i cant gain milk why?
98600858
cjkizzy286
24
2020-05-27 18:58:38
<p>this is the code</p> <pre class='brush: lua'>game.StarterPack.Milk.Activated:Connect(function() Milk.Value = Milk.Value + 1 end) </pre>
104537
1
96494
0
167154017
yumaking
63
2020-05-27 21:23:23
<p>OK so this is the way I would do it, I would make a tool called "giveMilk" and put it in the starter pack, then i would make a folder called "Values" and put it inside StarterGui inside a screenGui, then put an int value called "milk" inside the folder, then I would create a local script that fires a remote event I ...
0
Touched event not working when updating a region3?
158811
TGazza
1306
2020-07-09 06:55:10
<p>Hi guys. im kinda new here. Been looking for a roblox help fourm for a while now and found this site. weird verification thingy .... o.0!</p> <p>Anyway My Problem: i've written a script that clones a part or a model depending on how a user configures it.</p> <p>The script checks for 2 things,the checks are as follow...
108592
2
Gamepass script wont execute when criteria is met?
9398142
noob1126
34
2017-06-26 00:48:33
<p>I'm trying to make a script so that if a character has a gamepass their walkspeed is increased to 25. No errors are showing up in output, so I don't know what's wrong. The script is a server script found under ServerScriptService. Am I missing something here?</p> <pre class='brush: lua'>for i, v in pairs (game.Playe...
44447
1
45564
0
97089278
Apostasla
27
2017-06-26 00:58:02
<p>Try using</p> <pre class='brush: lua'>repeat wait() until game.Players.LocalPlayer local service = game:GetService("MarketplaceService") for i,v in pairs (game.Players:GetChildren()) do if v then if service:PlayerOwnsAsset(v, 880299391) then v.Character.Humanoid.WalkSpeed = 25 end ...
0
how do I make the script running detect the players speed thats being changed from another script?
132316072
dawg_tagz
0
2021-01-13 01:59:25
<p>I want it to detect the speed 8 and make it stop the running and cancel the animation but I can't figure out how to do it without breaking the script</p> <pre class='brush: lua'>local camera = game.Workspace.CurrentCamera local TweeningService = game:GetService("TweenService") local UIS = game:GetService('UserInputS...
118619
0
Not at all sure how to make color changing script for checkpoints?
689836815
jraffey
1
2022-08-03 02:26:20
<p>Ok so basically I'm making an obby and I have a script that makes the checkpoints change color once they are touched. To expand on this, I'm trying to make a script that checks the player's stage value and if the stage value is higher than the value of a checkpoint, then the color of the checkpoints up to that stage...
131075
0
What is &quot;1e3&quot; in Lua code?
57706445
RedCombee
585
2014-09-01 22:08:27
<p>I've noticed that in a script that involves BodyVelocity, this person used "1e3" to determine the velocity of the object.</p>
10503
1
13331
2
6409615
bbissell
346
2014-09-01 22:23:58
<p>1e3 is 1,000. It's a Hexadecimal. Click <a target="_blank" href="http://wiki.roblox.com/index.php?title=Hexadecimal#Hexadecimal_Literals">here</a> to read a the section about Hexadecimal Literals on the ROBLOX wiki.</p>
1
How to let mouse move freely in a gui?[Solved]
49773669
cowsoncows
946
2018-02-01 23:30:21
<p>My game forces first person, so the mouse is locked in the middle of the screen. However, I would like to add a shop gui. The gui is pretty much useless when the mouse is stuck in the middle of the screen and can't click the buttons. I want to try to avoid making a keybind for every button in the gui. Is there any w...
53008
2
52361
0
46052
chess123mate
5637
2018-02-02 03:47:40
<p>[Edit - I like your solution better, but didn't fully read your comment until after I posted this. I'll leave this here as an alternative.] You can have a GuiButton in your GUI with the <a target="_blank" href="http://wiki.roblox.com/index.php?title=API:Class/GuiButton/Modal">Modal</a> property enabled. If you don't...
0
How do I fix Humanoid is not a valid member of &quot;Model&quot;?
999502939
Dragonboy99711
5
2023-01-24 12:32:02
<p>Hi, I'm trying to make walking npcs fight enemy npcs, this was successful however there's a bug where if the enemy is already dead by the time the ally npc detects the enemy, it will freeze and be unable to do anything. How can I fix this?</p> <p>I tried adding so it would detect if the humanoid WAS nil beforehand h...
132934
0
What should I learn next, I do not know what to learn since I think I learned a lot?
467337150
XDvvvDX
186
2020-03-07 16:02:45
<p>Hey, my name is XDvvvDX and I've been learning Roblox lua for 7 months, I started working with Roblox Studio in 2014 with no lua experience though. Well, after 7 months of learning, I know all these subjects :</p> <p>-CFrames</p> <p>-Instances</p> <p>-Vectors</p> <p>-For loops</p> <p>-Infinite loops</p> <p>-Values</...
95706
0
Is this how you use the return function?
2668
MustangHeart
67
2017-04-09 19:10:42
<p>For example:</p> <pre class='brush: lua'>thing = false function okay() wait(2) if thing == false then print ("Hello World!") thing = true return okay() elseif thing == true then print("Goodbye!") end end </pre> <p>If it works correctly, it should print hello world, and then goodbye.</p>
41810
3
43574
0
173088939
OldPalHappy
1477
2017-04-09 21:04:48
<p><code>return</code> "returns" a value of a function. For example:</p> <pre class='brush: lua'>local function returnOne() return 1 end </pre> <p>The function above will return 1. Example:</p> <pre class='brush: lua'>print(returnOne()) --&gt; 1 print(returnOne()+10)--&gt;11 </pre> <hr /> <p>However functions are u...
0
How to make a button to change a character type?
547812463
Stoutscientist
16
2020-11-23 21:49:07
<p>I am making a obby and I want there to be a button when you join to choose a r15 avatar or r6 how would I script this?</p>
116226
0
Attempted to index nil with 'Clone'? Problemo :/
755131693
LolXD_ItzTreyXDLol
0
2020-08-01 10:14:30
<p>Alrighty, so i am currently making a Egg Hatching system and when i try to clone my pet to the Egg position to show the player what they got, It doesn't show the pet! I dont know if i need to include my module script or not so that will be at the bottom:</p> <pre class='brush: lua'>--Local Script-- local TweenServic...
110455
0
When a player first joins my obby, they're stuck halfway in the floor. How to fix?
37745860
BunjiBloxxer
12
2022-06-21 12:55:18
<p>When you first join my obby, you're always stuck halfway in the floor until you reset or die which fixes it. Here is the script that causes the issue (It helps run the checkpoint system):</p> <pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(plr) local stage = plr:WaitForChild("leaderstats").Stag...
130437
3
117778
0
94006350
BulletproofVast
776
2022-06-21 19:28:30
<pre class='brush: lua'>local Players = game:GetService('Players') Players.PlayerAdded:Connect(function(player) local stage = player:WaitForChild("leaderstats"):WaitForChild('Stage') player.CharacterAdded:Connect(function(character) local checkpoint = game.Workspace.Stages:FindFirstChild(stage.Value) ...
1
Getting an error when trying to prompt the player w/ a purchase?
161262344
sean_thecoolman
190
2019-07-11 02:36:49
<p>Code I have so far:</p> <pre class='brush: lua'>local button = script.Parent local ProductID = 607020275 local Player = game.Players.LocalPlayer button.MouseButton1Click:Connect(function() game:GetService("MarketplaceService"):PromptProductPurchase(Player.UserId, ProductID) end) </pre> <p>I am not too sure why I...
83431
1
77523
2
144604579
sheepposu
546
2019-07-11 02:45:55
<p>For purchasing, this should work</p> <p>Purchase script in ServerScriptService</p> <pre class='brush: lua'>local mps = game:GetService('MarketplaceService') local credits = --purchase id mps.ProcessReceipt = function(receiptInfo) if receiptInfo.ProductId == credits then local player = game.Players:GetPla...
0
How to add parts to my startercharacter?
984384728
RebornedSnoop
165
2020-04-26 06:08:41
<p>When I try to add ears to my startercharacter , it just drops off when I play the game.</p> <p>https://gyazo.com/cab0043246fbe2bf22bcdfc718a4787c &lt;--- How its suppose to look like (Not playing yet)</p> <p>https://gyazo.com/088a4eaddb448abd52bf931e63155011 &lt;--- How it looks like (Playing)</p> <p>The ears doesnt...
100775
1
93053
1
791392321
DuckyRobIox
280
2020-04-26 06:11:48
<p>Well if you just attach the ears to the head that wont work you gotta add a weld to it Ask for help if still need help</p>