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 can I modify this morph tool, so It gives you a morph you (more Information In post) ?
1961959172
imnotaguest1121
313
2022-09-05 14:03:44
<p>Hello!</p> <p>I was wondering how can I modify this morph tool that permanently gives you a morph which you cannot remove unless If you either save It or load It or delete the morph</p> <p>Also don't mind the "EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY" text, Its just the name of the morph</p> <p>Script:</p> <pre cl...
131519
0
Why does roblox's collision system go off with the Touched function?
47189013
farrizbb
465
2017-10-25 09:26:09
<p>I've made a script and it is supposed to CFrame a part to a Player's torso(yes he part does have CanCollide off), but for whatever reason as soon as I set a touch function the part goes above the Player's head as if CanCollide is on.Is there anyway to get around this or is it just my code?</p> <pre class='brush: lua...
48883
1
Are you able to use catalog hats, Clothing and accesories on the catalog by free will?
1744049418
TeaWithMee
76
2021-04-20 12:59:24
<p>Such as, am i allowed to use hairs made by roblox up on the catalog or accessories made by roblox. And with clothing am i allowed to use any by free will? Can you please let me know &lt;3</p>
122594
1
When a player joins, can I clone and import their avatar into a position?
158740059
z_lm
9
2021-01-06 03:33:19
<p>When a player joins my game, I want a clone of their avatar to be put into a sitting animation in a spot, preferably I just want a script where I am able to have a player join my game, have their avatar (including accessories) cloned into a position I set for them. I wish I knew if this was easier! I'd just like to ...
118274
0
How to make a debounce even if a player rejoins it doesnt restart?
1319896863
ZombieApocalypz3
35
2020-09-18 03:31:12
<p>I'm trying to do this with every way I can and some ways are like never gonna work, it's weird but I hope I can find an answer to this question. I'm trying to make it so that if a player touches the brick, he can never touch it again or the code inside the touched event will never run again even if he rejoins Here's...
113290
2
How do I make something occur when a player clicks on a part of another player within 20 studs?
57706445
RedCombee
585
2014-03-20 11:33:51
<p>I have some ideas, but everything I try won't work. Any idea?</p>
815
1
1263
7
4030068
jobro13
980
2014-03-20 15:05:15
<p>You need two things:</p> <ul> <li>A way to get if someone clicks a part of a player</li> <li>A way to get if this part is closer than 20 studs</li> </ul> <p>The first one is simple: if the part's parent has a humanoid AND game.Players:GetPlayerFromCharacter(target.Parent) returns something, you know it's a "characte...
0
Is this a safe technique?
9552668
SteamG0D
1633
2018-12-22 01:47:35
<p>So I have been trying to figure out a way to access a model without knowing exactly which model I was trying to access by assigning a value inside my player model to the model object when I sat down on a seat within the model. It was a huge mess.</p> <p>My solution was to instead of assigning the model to a value wi...
72698
0
Part Movement
29806839
ConnorVIII
448
2014-03-13 19:12:18
<p>Can anyone tell me whether there is something like TweenSize and Position for Parts. If not, can you tell me anything that is similar that does the same for Parts that you can do with GUI's.</p> <p>Thankyou.</p>
667
1
1069
6
21540827
Articulating
1335
2014-03-13 19:33:39
<p>There is no built-in part interpolation API, however the following library works very well: <a href="http://www.roblox.com/Interpolation-API-item?id=133228275">http://www.roblox.com/Interpolation-API-item?id=133228275</a></p>
0
Is there a way you can 'reverse' a bool?
53688834
TheDeadlyPanther
2460
2016-08-20 20:29:00
<p>What I mean by that, is, can you basically get <code>false</code> from a <code>true</code> and a <code>true</code> from a <code>false</code> in one line? I can make a function to do it, but I'm lazy, and I would have to do it for every script.</p> <p>E.G;</p> <pre class="brush: lua">local boolVal = false while wait(...
34820
2
37410
6
39250676
ScriptGuider
5640
2016-08-20 20:34:38
<h2>Not!</h2> <p>There's a nifty logical operator called <code>not</code> (also known as an inverter, or "not" gate), which <em>inverts</em> any boolean value provided (in the case of Lua however, you can also use this operator on non-boolean values since anything that exists is evaluated as true). Here's an example:</...
1
Admin Scripts
23646544
Jacobrw01
5
2014-03-05 20:43:53
<p>When I make admins scripts, I start them like this but it doesn't work right. If I were to add an FF command and say it, it would give everyone a FF in the server. Even If I say something like ff/Jacobrw01. I don't know why. Here is how I start though;</p> <pre class='brush: lua'>local admins = { ["Jacobrw01"] = tru...
506
1
838
5
31265920
Azarth
3141
2014-03-05 22:53:36
<pre class='brush: lua'><br />local admins = { ["Jacobrw01"] = true; ["nws18"] = true; ["JEFFREY0770"] = true; } local function findPlayer(msg,findName) local seperate = msg:lower():sub(findName) for a,b in pairs(game.Players:GetPlayers()) do if string.find(b.Name:lower(), seperate) then ret...
0
Why do my local scripts break after I die?
1002773
Spongocardo
1991
2015-01-27 22:19:56
<p>Hi guys, I've been making some scripts for a friend of mine but when he tests them, he keeps having to revert back to the previous update because some of the local scripts in my GUI keep breaking.</p> <p>My friend had made a double jump script and I had made a "powerup" button for the GUI. These two things are local...
14569
1
17637
1
13667373
EzraNehemiah_TF2
3552
2015-01-27 23:11:42
<p>Use the <a target="_blank" href="http://wiki.roblox.com/index.php?title=API:Class/Humanoid/Died"><code>Died</code></a> Event.</p> <pre class='brush: lua'>game.Players.PlayerAdded:connect(function(plyr) --When there is a player plyr.CharacterAdded:connect(function(char) --And a players character char.Humanoid.Died:co...
0
Why is my local script not doing anything when remote event is fired?
102824475
NeoDogez
18
2022-06-16 11:37:24
<p>local script</p> <pre class="brush: lua">local RS = game:GetService("ReplicatedStorage") local doges = 0 RS:WaitForChild("dogecaptured").OnClientEvent:Connect(function(player, sus) local doges = doges + 1 player.PlayerGui.Doges.ImageLabel.TextLabel.Text = doges print(doges.. " " .."Doges") end) </pre> <p...
130371
0
How do I make this so that whenever a person enters, they receive a weapon?
16705511
Willie3838
5
2016-08-12 00:03:11
<pre class='brush: lua'>function onPlayerAdded(players) for -- I don't know what else to do? game.Lighting[script.Parent.Name]:Clone().Parent = players[i].Backpack game.Lighting[script.Parent.Name]:Clone().Parent = players[i].StarterGear end end </pre> <p>It's not in starter pack because I made a GUI where ...
34442
0
Is There a Way You Can Do Random for Objects?
151916604
MajinBluee
76
2018-05-26 06:21:20
<p>I'm trying to make a crate system but i'm stuck at the Random item picker. This is the script I'm using:</p> <pre class='brush: lua'>local SS = game:GetService("ServerStorage") local Items = {SS.Sword1, SS.Sword2} script.Parent.MouseButton1Click:connect(function() Random.new(Items) end) </pre> <p>And I know what...
59020
1
57477
3
338950628
RedcommanderV2
1256
2018-05-26 06:29:37
<p>You can do this</p> <pre class='brush: lua'>local SS = game:GetService("ServerStorage") local Items = {SS.Sword1, SS.Sword2} script.Parent.MouseButton1Click:connect(function() local item = Items[math.random(1,#Items)] end) </pre> <p>It shouldn't be to hard to understand, if you don't understand it though, just a...
0
Can You Make A Hidden Leaderboard Value?
999691300
xXKrixlatedXx
5
2021-05-03 17:46:13
<p>Guys, I was wondering can u make a hidden leaderboard value that doest show on the leader board like lets say.... "Upgrade Level", can u make it so it doesnt show next to the other leaderboard values such as Coins Or Wins and what not?</p>
123059
0
Tool.Equipped Function not working?
265984747
mixgingengerina10
223
2018-11-04 09:57:38
<p>I am trying to make an attack when you hold an item, here's the script I tried, but failed.</p> <pre class="brush: lua">script.Parent.Equipped:Connect(function() print("Kaka") end) </pre> <p>When I hold my item it doesn't print anything.</p>
70008
0
Trying to think of a way to make a gui &quot;activate&quot; at X distance?
458978
lomo0987
250
2015-04-08 21:58:18
<p>What I am currently trying to do is make a script that will only show up at X distance.. I know I am going to need to use Magnitude to see how far a person is from a spot. I have done some testing and I was able to create a local script within a player to see if the player was within the distance of a brick that was...
16507
0
Why does the CoreGui only work in solo?
30303065
PWNTART
33
2014-11-29 02:57:47
<p>So for some reason game:GetService("StarterGui"):SetCoreGuiEnabled("All", false) wont work. Any idea why?</p> <p>game.Players.CharacterAutoLoads = false Player = script.Parent.Parent.Parent.Parent.Parent game:GetService("StarterGui"):SetCoreGuiEnabled("All", false) script.Parent.MouseEnter:connect(function() script....
12839
0
Why wont my cash display update?
1503498860
surviarlTheJefkillre
38
2021-02-25 21:32:27
<p>When you click the part it should disappear and add 1 to your Cash, right now the part disappears but the value of cash stays the same. Right now the script is a script inside the part.</p> <pre class='brush: lua'>local CD = script.Parent.ClickDetector local Cash = game.Workspace.Value.Value game.StarterGui.ScreenGu...
120681
0
How do i change this script to save and load the data as a table?
25240799
BearKranz
41
2020-06-22 02:25:15
<p>I have this Datastore script that works, however it needs to be changed to a table as the datasave tends to time out.</p> <p>Here is where the values are located:https://gyazo.com/3ac00ccf52bf748b092974fce64806f6 :https://gyazo.com/d4ab0e289813de593585b8136713c6a9</p> <pre class="brush: lua">local DSS = game:GetServ...
107045
1
Why is Humanoid.Died not working on anchored characters?
559514967
T3_MasterGamer
242
2022-06-21 08:03:49
<p>When I kill an anchored character with a sword, <code>Humanoid.Died</code> works. <strong>However, when I shoot it with a Hyperlaser Gun, it doesn't work.</strong></p> <p>I tried editing the tool script, I tried unanchoring, I tried <code>SetNetworkOwner(nil)</code>, I tried changing the <em>HumanoidState</em>, I tr...
130434
0
Gamepass tools
38091715
Liftingoneweight
0
2014-02-19 20:38:08
<p>id = 140837471 --gamepass id game.Players.PlayerAdded:connect(function(plr) repeat wait() until plr.Character if Game:GetService("GamePassService"):PlayerHasPass(plr, id) then tool = game.ServerStorage["88885539"] tool:clone().Parent = plr.Backpack tool:clone().Parent = plr.StarterGear end end)</p> <p>I'm trying to ...
113
0
how do i make a part delete ONLY unanchored parts?
394658123
ILoveMemes9005
16
2020-01-27 21:57:44
<p>I am making a game that i want the ground to delete unanchored parts but i dont want humaniods to die. I made a script that deletes the parts but i deletes all parts humans, anchored parts, and unanchored parts.</p>
93694
1
86578
0
137316813
I_Nev
200
2020-01-27 22:02:30
<p>This isn't tested and may be a bad way to do it, but i think this may help you</p> <pre class='brush: lua'>for i,v in pairs(Part:GetTouchingParts()) do if v.Anchored == false and not v.Parent:IsA("CharacterMesh") and not v:IsA("CharacterAppearance") then v:Destroy() end end </pre>
0
Unable to use ROBLOX's Universe feature
49316000
IntellectualBeing
430
2014-03-01 20:57:20
<p>http://www.roblox.com/Bloxy-Platform-HUGE-UPDATE-place?id=141925189</p> <p>When I touch the teleport</p> <p><strong>Teleport started...</strong></p> <p>then this happens.</p> <p><strong>Teleport failed, insufficient privileges or target place does not exist.</strong></p> <p>What exact privileges do I need? Because t...
406
0
Why does this script not disable the spotlights?
849113456
NICULL897
4
2021-05-20 14:41:56
<p>So since i decided to make my own car lights script and i want it to be inside the vehicle seat or just anywhere inside the car. Using a local script, i added 2 spotlights in 2 different meshparts.</p> <pre class='brush: lua'>local LeftHL = script.Parent.Parent.Body["Rogue Paramount Coupé 300"].FLH.SpotLight local R...
123622
1
112719
0
738846584
SparkyTheCorruptCone
35
2021-05-20 22:38:00
<p>Sometimes items don't replicate fast enough. You can use :WaitForChild, :FindFirstChild, and others so errors are not thrown</p> <p>If there are no errors, and the problem is that other clients can't see it, you may need to use a remote event to make it appear on the server.</p>
1
Help With This Custom Chat GUI?
5617025
DapperLink123
30
2014-04-17 00:50:43
<p>My custom chat GUI made to resemble the original ROBLOX chat is broken. Everything I type out comes out as gibberish and when I type another thing in it doesn't appear nor does the original line move up.</p> <pre class='brush: lua'>function UpdateOldLabels(Parent) for i,v in pairs(Parent:GetChildren()) do ...
2323
1
3176
0
59370195
RedstoneStudios
0
2014-04-17 01:00:22
<p>CHnage it to:</p> <pre class='brush: lua'>function UpdateOldLabels(Parent) for i,v in pairs(Parent:GetChildren()) do if v.Name:sub(1,4):lower() == "line" then local LineNumber = v.Name:sub(5) if LineNumber == "12" then v:Destroy() else v...
0
How would I go about making a teleport GUI utilizing TimeOfDay or ClockTime?
41838971
ofek163
7
2020-01-15 08:53:11
<p>For a more in-depth explanation, think of it as a scheduled GUI that appears on the player's screen which offers ("Accept" / "Decline") the player to teleport to a specific coordinate once the TimeOfDay reaches a certain time. I.E: TimeOfDay reaches 14:00:00 so a GUI is then prompted to the player where they can acc...
93068
1
86097
0
536049572
NiroTurtle
83
2020-01-15 09:39:50
<p>I'm no advanced scripter or whatnot, so this may not be the best way... But, it works, so I'm going to post it. What you do is insert a remote event into ReplicatedStorage called "Teleport". In StarterGui, insert a ScreenGui, a frame into the ScreenGui, and 2 buttons in the frame. Insert the script below into the bu...
0
How to Change Proximity Prompt Hold duration in game?
934100180
testerBartipl3
0
2022-01-01 23:52:35
<p>Im making game when you hold E by 4 sec you can sell this and get Coins and you can for Coins upgrade you stuff and im dont know how to change ProximityPrompt Hold Duration In game beacuse i CANT i can only Off game change hold duration pls help i need SCRIPT when you buy item you hold duration time is shorter 2 tim...
128631
0
How do you get rid of this annoying Lua virus?
155365515
Unicxrnii
0
2019-07-13 20:01:47
<p>I was creating a game a few days ago and put a free model in. All of a sudden there were tons of inFECted items under each part in my game. Under the inFECted there was a script called "script..... or is it?" The script kept duplicating. I tried some different virus removers for it but it didn't work. I also deleted...
83617
1
[SOLVED] Why is Humanoid.Died not working on anchored characters?
559514967
T3_MasterGamer
2127
2022-06-21 08:03:49
<p>When I kill an anchored character with a sword, <code>Humanoid.Died</code> works. <strong>However, when I shoot it with a Hyperlaser Gun, it doesn't work.</strong></p> <p>I tried editing the tool script, I tried unanchoring, I tried <code>SetNetworkOwner(nil)</code>, I tried changing the <em>HumanoidState</em>, I tr...
130434
0
What is &quot;game Processed Event&quot;?
1532938866
Code1400
75
2020-05-04 02:14:06
<p>Hi. i've been using stuidio for a good while now and have been using the user input service just fine but when i see other people code or watch tutorials on youtube people add in an extra parameter to the input function, "gameProcessed". could some one please explain to me what it does and how to use it correctly as...
101812
2
94059
1
495224947
DemonHunterz6
35
2020-05-04 02:27:57
<p>This was taken from the Roblox API Reference:</p> <p>"Indicates whether the game engine internally observed this input and acted on it. Generally, this refers to UI processing, so if a button was touched or clicked from this input, gameProcessedEvent would be true. This is also true for input events connected via Co...
0
Weird error pops up every time I try to run my code. Can someone tell me whats wrong with my code?
758740345
PLAINSTER10
4
2022-06-20 03:10:15
<p>I am trying to make a tower defense game. I write some code to make the zombies spawn into the map but for some reason it says " ServerScriptService.Main.mob:2: Expected ')' (to close '(' at line 1), got &lt;eof>" and " Attempted to call require with invalid argument(s)".... I do not know what it means and it's the ...
130414
1
117751
0
34716028
cmgtotalyawesome
1403
2022-06-20 04:18:28
<p>I believe you just didn't have enough ends in your module script. The error saying that you had invalid arguments was just because your module script was written incorrectly. Here should be a fixed script:</p> <pre class='brush: lua'>local ServerStorage = game:GetService("ServerStorage") local mob = {} function mob....
0
Roblox Studio mesh deform beta feature not showing up?
87588177
Tahvosol
15
2021-02-21 04:34:12
<p>The Roblox Studio beta mesh deform feature doesn't show up</p>
120450
3
How could you access a model or audio's name through the object's id on roblox?
27718918
Blockeus
68
2015-05-09 03:33:11
<p>How could you access a model or audio's name through the object's id on roblox?</p> <p>do i need httpservice?</p>
17386
0
Where do I store client data?
61930602
ChirpPerson
49
2020-09-16 03:27:10
<p>Say that a player chooses a number between 1 and 5 in a GUI and the player chooses number 4, where/how can I place that piece of data so I can refer to it via server scripts?</p>
113218
0
How would I put a script in a player?
30372619
Roboy5857
20
2014-06-10 01:07:33
<p>I have a script, and it only works if I put it inside the player. isn't it this?</p> <pre class='brush: lua'>local player = game.Players.LocalPlayer script.Parent=player </pre> <p>I'm not very sure. Are does it need a script?</p>
6446
2
8533
0
3110492
Bebee2
195
2014-06-10 01:55:10
<p>A neat trick the majority of scripters I know placed their LocalScripts inside StarterGui so when the character spawns, they spawn with that script.</p>
1
How to make CFrame.LookAt() only look through with one axis?
143096970
Rayguyban2
76
2021-02-20 05:23:37
<p>As in the question how would you make it so LookAt will only rotate through one axis instead of all of them? I tried just putting .Y at the end but errored and said "CFrame expected got number", I also tried to put the look at in part of a vector3 like this Vector3.new(0,LookAt,0) but since it was part of a loop it ...
120398
1
109807
1
223838284
vector3_zero
1056
2021-02-20 11:39:45
<p>You can change the Y component of the target position to be the same as the NPC's Y position to have it only take X and Z into account. Modifying your code would give the following:</p> <pre class='brush: lua'>local npcPosition = NPCCharacter.HumanoidRootPart.Position local targetPosition = Character.HumanoidRootPar...
0
Checking for ALL keys instead of one?
3238120
chrono2
189
2014-02-17 21:38:43
<p>In a localscript, I'm trying to code a weapon so that it'll activate a specific function when ANY letter key, even WASD, are pressed, and terminate the same function when the key is lifted. Is there any way I can do that W/O going through and assigning every individual key?</p>
43
1
why wont the GUI image change. Did i use rbxassetid wrong?
391170608
superspeedr1234
60
2020-06-11 17:56:50
<pre class='brush: lua'>function pause() if workspace.MusicScript.S1.Playing == true then game.Workspace.MusicScript.S1.Playing = false script.Parent.Image = rbxassetid://(12255380) end end script.Parent.MouseButton1Click:Connect(pause) </pre> <p>i used</p> <blockquote> <p>rbxassetid</p> </block...
106116
0
[SOLVED] How do i get those Shirt's template (and their ID) ?
373124071
Cioss_Team
14
2019-08-19 09:56:35
<p>https://www.roblox.com/catalog/607785314/ https://www.roblox.com/catalog/382538059/ https://www.roblox.com/catalog/144076358/ https://www.roblox.com/catalog/398635081/ https://www.roblox.com/catalog/382538295/ https://www.roblox.com/catalog/144076436/ https://www.roblox.com/catalog/144076436/ https://www.roblox.com/...
86147
1
79900
1
151564166
karlo_tr10
1233
2019-08-19 12:49:55
<p>Hello Cioss I have made plugin that lets you find assets id (templates) in one click: You copy id from catalog, paste it in plugin and replace old id with new one plugin gives you. It will bring you to template page.</p> <p>https://www.roblox.com/library/3181626844/AssetGrab</p>
0
How do you make a teleport script when round starts?
777304992
Nifemiplayz
25
2020-07-13 20:23:20
<p>I know how to make a teleport script when a player touches something, but i want all the players to teleport when the game is about to start. Tell me if i should make a script attempt.</p>
108971
2
100067
1
336467162
TribotGamerGX
169
2020-07-13 22:01:19
<p>This is actually quite easy to do.</p> <pre class='brush: lua'>for i, player in pairs (game.Players:GetPlayers()) do if player then local character = player.Character if character and character:FindFirstChild("HumanoidRootPart") then character.HumanoidRootPart.CFrame = --Spawnpoint ...
0
Script has been updated and it's not working still??
18369403
Lem0nzz
5
2014-04-16 11:39:37
<p>Help please? This script was updated yet, it still wont work!</p> <pre class='brush: lua'>local player = Game.Players.LocalPlayer local swordMesh = script.Parent local GuiBar = player.PlayerGui.Example.TextBox --Change to correct path. GuiBar.FocusLost:connect(function() --When someone is finished typing into the Te...
2125
0
How do i remove money when The player clicks on a TextButton? [SOLVED]
22906685
coldkitt
0
2014-12-23 16:29:17
<p>I got an answer from ROBLOX forums.</p> <p>local Player = game.Players.LocalPlayer</p> <p>script.Parent.MouseButton1Down:connect(function() Player.leaderstats.cash.Value = Player.leaderstats.cash.Value - 5000 end)</p> <p>Incase anyone needs it.</p>
13545
0
Simple roblox api not printing what i expected?
45668168
Ortron
27
2018-01-27 19:44:31
<p>Using http://wiki.roblox.com/index.php?title=Web_APIs as a reference to get the name and other stats of an asset you should use https://api.roblox.com/Marketplace/ProductInfo?assetId=id</p> <p>I used another api to get the thumbnail of a game but how would i be able to turn this into a table as shown in the wiki bec...
52751
0
[ SOLVED ] Why is my RP Name changer not saving?
238838551
PadmeOragana
78
2022-05-21 00:01:43
<p>Hello there, thank you for reading. I am making a game where you can name your character and it saves, but the code won't save the name for some reason. It used to work, I got it from a Youtuber, and I have messed around with it, but it's still not working. It will change the player's "name," which is basically just...
130060
0
How to make a part change color?
371637657
ssgmalachi
52
2021-05-07 23:07:34
<p>Sorry for the title, it wouldn't allow my standard title. Me and my friend are making a game MMORPG game and we have been experiencing issues. For instance, one of our main problems is the interface. When I would do something on my script, my friend couldn't perform the same action on his side. For example, my doubl...
123216
1
112297
1
526210522
Dehydrocapsaicin
463
2021-05-07 23:40:01
<p>I think you should really make a group where both of you have edit permissions, save the place under the group, upload the animations there and both of you should now be able to see the animations play. Other than this, I don't know any other way of doing it.</p>
1
Why doesn't this script clone the GUI to PlayerGui?
173002126
Michael_TheCreator
165
2018-02-09 00:58:44
<p>Why doesn't this script clone the Gui to PlayerGui? How can this be fixed?</p> <p>Code:</p> <pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(plr) local LSystem = plr:WaitForChild("LevelSystem") local PStats = plr:WaitForChild("PlayerStats") local level = LSystem:WaitForChild("Level") ...
53385
0
How can I make a gun first person?
4694638
alan3401
28
2014-03-01 21:52:23
<p>How can I make a gun first person? Any help please! Thanks!</p>
414
2
724
0
19178967
TheMyrco
375
2014-03-01 21:58:10
<p>Take a look at <a target="_blank" href="https://scriptinghelpers.org/questions/5/how-do-i-force-first-person-mode">this</a> ;)</p>
0
Developer product and Data Store script not working
49776603
TomsGames
225
2014-03-05 21:01:34
<p>So, this script. It is a server side script in the Workspace. I do not know how to debug test it as I am now allowed (apparently) in start server/player and play solo. Can't see the output of the script, I don't even know if it activates. But basically, click a gui and buy a gamepass (gamepass 19186931) so I assume ...
507
1
847
1
13416513
Merely
2122
2014-03-06 01:22:12
<p>You're calling GetPlayerById on line 14, but you didn't define the function until line 23. You're going to get the error "attempt to call global 'GetPlayerById' (a nil value)". You should move the GetPlayerId function before your function for handling purchases.</p> <p>On line 12 you use GetAsync without supplying t...
2
Why is my player teleport not working?
535045242
Tipsy_Juicebox
12
2021-06-08 23:52:02
<p>Even though character collision is turned off when I teleport players instead of putting all players at a coordinate (ex. -1179.999, 0.5, -645) it drops them mid air any idea why this happens?</p> <p>The characters will eventually drop to the spawn location however if the players are moved to a room some will spawn ...
124210
2
113239
0
1792778813
Xapelize
1835
2021-06-09 07:34:13
<p>You can directly set the CFrame instead of using MoveTo. This might work:</p> <pre class='brush: lua'>p[i].Character.HumanoidRootPart.CFrame = CFrame.new(1178, 0.5, -645) -- I rounded the X axis </pre>
1
GetOrderedDataStore() with tables?
31265920
Azarth
3141
2014-04-12 02:20:07
<p>Can you use GetOrderedDataStore with tables? I don't see how that would work. I'd like to make <a target="_blank" href="https://i.imgur.com/pXvk1uS.png">this</a>, I need more than just the stat.</p>
1227
1
1686
4
21540827
Articulating
1335
2014-04-12 06:07:44
<p>I would suggest using two Data Stores, one for "spleefs", and the other for a complete table of stats. Use GetOrderedDataStore on the "spleefs" Data Store, and then use the data under the player's userId in the main stat Data Store.</p> <p><strong>tl;dr: No.</strong></p>
1
Finding X Y angle between two Vector3s?
406877893
tukars
17
2018-11-15 19:39:59
<p>For example I can do the method with cframe:</p> <pre class="brush: lua">CFrame.new(pos1, pos2) </pre> <p>but it flips past 180 degrees.</p> <p>I need to do a method which doesn't flip the angles (Im working out a planeCF) .</p> <p>I heard people use :Dot() product but only get one number?</p> <p>This is how I forma...
70608
1
67256
1
310898243
EmilyBendsSpace
1025
2018-11-16 06:21:29
<p>A dot product is definitely the simplest way. Your diagram has a black vector that is (pos2 - pos1). You want to normalize that, and take the dot product with (0,1,0), which is the green World Up vector. The dot product of two vectors is the product of their magnitudes times the cosine of the included angle (angle b...
2
How would I set Camera recoil and then return back to its last position?
440114876
Mr_MilkysButler
47
2018-01-03 16:18:43
<p>So lets say I was shooting my gun and the max recoil of the camera would be moving 3 up so kind of like Camera.CFrame=Camera.CFrame*CFrame.Angles(math.rad(1),0,0)) and everytime you tapped fire it would move 1 up and then the camera would stop going up after it moves up 3. -- How would I detect this?</p> <p>Then how...
51489
1
51990
0
2155311
EgoMoose
802
2018-01-23 23:00:08
<p>The common way this is dealt with is through springs. This allow the game coder to set some values regarding how the spring moves and then update the target. This allows you to change the spring target dynamically and not have to worry about the for loop timing or other animations.</p> <p>There's a wiki article on t...
0
Text from textlabel not changing when it is suppose to? (no errors)
1241159283
guuguu058
9
2022-06-21 02:18:50
<p>Hello. I hope you are having a good day! Like I said in the title the text in a text label is not changing (P.S. I watched Alvinblox's egg hatching system tutorial) here is the script</p> <pre class='brush: lua'>local camera = workspace.Camera local studio = workspace.Studio local template = script.Parent.Pets.Scrol...
130433
0
How should I make an add team gui (I'm only focused on gui for now)?
1503498860
surviarlTheJefkillre
38
2021-04-06 15:38:19
<p>This is either a difficult script to write, or I'm just dumb (which is probably the case), I have a gui that when you press a text button it will create a new text button in a scrolling frame that has the same name as a text box. eventually I will make it so it adds a team with the same name, but for now I have to f...
122078
0
GUI Popup on Close Distance?
64476262
RemiIsDaBawss
2
2020-08-06 21:26:39
<p>Hey, I've been wondering how when you get close to an Egg It displays a GUI containing the Pets you can get and their Rarity, I just want to know the part where the GUI pops up when you get close to it and how to check if someone presses the buttons whilst the gui is open.</p> <p>https://gyazo.com/9f0d3b1b7f99c12865...
110868
2
Is it possible to make something bigger on the inside?
46572870
CirrusVision20
10
2014-02-20 02:21:47
<p>OK, so let's say I want to make a Doctor Who game. I want the TARDIS to actually appear to be bigger on the inside, not just a lame teleport or an 8-bit picture. I want a box that is actually bigger on the inside. So, IS it possible? PS I don't know what to put so I put camera.</p>
152
0
Why is my tool not going in the backpack inventory?
1526244853
xbendaiialt
37
2021-01-13 20:36:00
<p>Basically, my tool isn't equipping right and i made a script for it.</p> <pre class='brush: lua'>script.Parent.Parent.Equipped:Connect(function() local player = game.Players.LocalPlayer local tool = script.Parent.Parent:Clone() tool.Parent = player.Backpack end) </pre> <p>No errors. I checked the backpac...
118653
0
How to make a team auto assigner using group ranks?
118061211
jacksworld2808
0
2020-08-02 03:50:08
<p>I am trying to make it so that if you are a specific rank in my group you will become that sames ranks team in my game. This is the script I've been using so far</p> <pre class='brush: lua'>local groupid = 7240924 function onPlayerAdded(Player) if Player:GetRankInGroup(groupid) == 1 then Player.Team = gam...
110521
1
How do I make a script that disable keys when damaged?
1335571124
supergamer376482
5
2022-06-20 06:00:56
<p>I'm trying to make a JOJO combat game, and I want to add a stun system when you get damaged. The script I tried using makes the user not able to move for an amount of time after getting damaged, here it is:</p> <p>local character = script.Parent local humanoid = character:FindFirstChildWhichIsA("Humanoid") local old...
130415
0
Player Points Help (Script) ?
17820096
jblade73
3
2014-05-24 14:50:43
<p>I have this Script At The moment ..</p> <pre class='brush: lua'>PointsService = game:GetService("PointsService") Stat = "Coins" --Change to the stats name Needed = 500 --Change to the amount needed to get the playerpoints. game.Players.PlayerAdded:connect(function(p) repeat wait() until p:FindFirstChild("lea...
5396
1
How do I detect if a player goes into first person?
130604534
KyofuOmo
25
2020-05-03 23:44:06
<p>I want to print "Player is now in first person." every time the player goes into first person. How would I do this? I have checked developer.roblox.com, but it doesn't seem to have an event for going into first person.</p> <p>Edit: After it detects that the player is in first person, how would I detect when the play...
101795
1
94044
0
251936426
youtubemasterWOW
2741
2020-05-03 23:58:11
<p>You have to use <code>magnitude</code> which is the distance between parts. Make sure it's a LocalScript.</p> <pre class='brush: lua'>local function isFirstPerson() local camera = workspace.CurrentCamera local character = game:GetService("Players").LocalPlayer.Character or game:GetService("Players").LocalPl...
0
Can you set a body velocity as a humanoidrootpart position?
226832508
MattVSNNL
620
2021-04-25 22:19:32
<p>So I'm making this code that sets a body velocity as the player's humanoid root part position, But the code I tried didn't work, Can anyone tell me why?</p> <p>My code:</p> <pre class='brush: lua'>while wait(1) do bodyVelocity.Velocity = players:FindFirstChild("HumanoidRootPart").Position end </pre>
122806
1
Post all players name on a gui through a loop? [MULTIPLE QUESTIONS]
37652173
DeveloperSolo
355
2017-01-06 00:05:32
<p>To be honest, I have no idea how I was gonna name this. Still, don't know if that's a good title.</p> <p>Anyway, I'm making an interview center for a group, and not one of those 1 players GUI application type game, just one of those where you go in, someone interviews you etc. Well, I don't want 10 million people in...
38766
2
41076
1
34209956
M39a9am3R
3209
2017-01-06 01:26:19
<h2>Problem</h2> <ol> <li><p>You're setting the Text property of the TextButton to the index number of the player.</p></li> <li><p>You're not connecting to the TextButton function (Not necessarily a problem, it just works with my Answer format.)</p></li> <li><p>You do not call the SetUpNames function. I am assuming you...
0
Can you Shut Down a game with Message?
528894344
The_Saver31
257
2021-04-05 10:02:52
<p>So i want to Shut Down my game because i have an update.</p> <p>Is there a way to Shut Down it with Message?</p> <p>Thank's for Reading!</p>
122029
1
GetChildren() and Clone() help?
4530254
TheArmoredReaper
173
2015-02-04 00:07:59
<p>I made a script to make a backup of every model inside a group, and then clone them in ReplicatedStorage, but it doesn't seem to work. Can someone help me with this?</p> <p>Script</p> <pre class='brush: lua'>Upgrades = script.Parent:GetChildren() for i = 1, #Upgrades do Upgrades[i]:Clone() Upgrades[i].Parent...
14728
1
MoveTo Function is slightly off? [Solved using SetPrimaryPartCFrame() instead]
29413559
alphawolvess
1784
2015-05-07 20:58:58
<p>I don't really know why the script I have will not work. All that is happening currently is a model (3 parts) is being moved from one position to another, it appears to be slightly off, the position it should actually be an exact fit (I wouldn't need to use Translate). I set this model in place before using the scri...
17344
2
Why does an InvokeClient always return this error?
44083134
Fifkee
2017
2018-04-23 01:08:01
<p><code>17:38:46.671 - Unable to cast value to Object</code></p> <p>My worst enemy, right there. The problem is, that no matter what I do to the invokeclient, it either returns nil, or that error.</p> <p><code>game.Players[script.Parent.Parent.Parent.Name].PlayerGui.mainGame['no hackie 4 u']:InvokeClient(nil, tonumber...
57285
1
55976
1
537472621
Avigant
2374
2018-04-23 03:47:22
<p>It is not safe to invoke a RemoteFunction to the client, as they can refrain from ever yielding and this will make your server wait indefinitely. You could invoke the client in a new thread in theory, but using RemoteEvents is a much nicer solution.</p> <p>The server can't access children of a player's PlayerGui, by...
0
What exactly does &quot;deprecated&quot; mean?
52730433
Thesquid13
301
2019-04-06 13:42:30
<p>I mean kind of what it means, but I want to be sure.</p> <p>Also, why is this script deprecated:</p> <pre class="brush: lua"> local part = Instance.new("Part",workspace) </pre> <p>and not this:</p> <pre class="brush: lua"> local part = Instance.new("Part") part.Parent = workspace </pre>
78631
2
73446
3
273093957
Rare_tendo
3000
2019-04-06 13:52:09
<p>When something is deprecated in roblox, it is not recommend to be used in new work as there may be a better alternative or will be removed in the future.</p> <p><strong>Instance.new's</strong> second parameter, the parent, is said to be deprecated, because it is slow and is not to be used if you care about performan...
0
Says this isn't a valid member of Local Script?
355374505
EnderGamer358
79
2019-02-27 23:03:59
<p>I'm in the process of making a sprint script for my Roblox game with a stamina function and everything, but I ran into an error halfway through development of the script. First of all, here's the script I'm using:</p> <pre class='brush: lua'>if script.Parent.ClassName == ("Model") then script.Parent.Humanoid.Wal...
76947
1
72198
1
89430243
Kiriot22
3227
2019-02-27 23:11:37
<p>The reason it happens is most likely because your script tries to index the Values before they are created/replicated to the client.</p> <p>What you should do is use <code>WaitForChild()</code> instead of indexing them directly.</p> <pre class='brush: lua'>local sa = script:WaitForChild("Stamina") local st = script:...
0
What is the best way to push (move) players?
61930602
ChirpPerson
74
2021-10-01 01:10:12
<p>I want to make a dodgeball tool that pushes players that are hit by it. What is the best way for me to apply force to a player? I've attempted to use BodyVelocity but it takes a moment before it initiates and as a result, feels inorganic; granted, I may be using it incorrectly.</p> <pre class='brush: lua'>--Given th...
127764
0
How do you make a map vote and then get teleported to random specific locations on your map?
293722975
MightyVad
0
2020-08-04 16:53:30
<p>I know <strong>some people wont help</strong>, but i really need a thorough explanation on how to make a map voting system. <strong>I need it to be explained step by step.</strong> <em>I have placed parts and already made surface guis on them with the vote buttons. i have also created the map and everything is ready...
110698
0
Destroying item from players backpack not working? [HELP PLEASE]
93123333
JellyYn
70
2018-04-03 22:36:28
<pre class='brush: lua'>local apple = script.Parent local p = game.Players.LocalPlayer apple.Equipped:Connect(function(Mouse) Mouse.Button1Down:Connect(function() p.Backpack:WaitForChild("Apple"):Destroy() end) end) </pre> <p>I have it so the apple's parent turns in to the players Backpack when clicked ...
56167
2
54913
1
264859050
Nonaz_jr
439
2018-04-04 00:18:03
<p>Hi, as Leamir points out the item when equiped is in the character, not the backpack. So as explained in his answer and the comments either check there instead or unequip the item before looking for it in backpack and destroying it.</p> <p>I would like to add that your script is not FilteringEnabled compatible: You ...
0
Data store script to store a part's property isn't working?
1319896863
ZombieApocalypz3
35
2020-09-13 00:48:53
<p>I wanna make it so when the part is touched it changes it's color, also I want it to <strong>Data Store</strong> that part's Color when a player joins and when a player leaves, it's my first time trying to <strong>Data Store</strong> a part's property so of course it's going to fail the first time and that's why I'm...
113095
2
Adding :Function() to an instance?
35298469
Mokiros
135
2015-10-22 16:38:09
<p>I want to add a function to an instance, something like Part:Clone(). So how do i do it? Here what i want it to be:</p> <pre class='brush: lua'>function Object:DoSomething() --Do something to part end </pre>
23755
2
27413
10
386992
BlueTaslem
18071
2015-10-22 17:53:01
<p><strong>TL;DR</strong>: No. See below for what <code>:</code> means and why you can't add extra methods.</p> <h1>Sugars!</h1> <p>A function like <code>part:Clone()</code> is called a <strong>method</strong>.</p> <p>Methods are just <strong>sugar</strong> for function calls:</p> <pre class='brush: lua'>obj:func( x, y...
0
How do you make a gui that only a certian team can see?
15454657
GreekGodOfMLG
244
2014-03-03 02:40:43
<p>I tried counties times and failed to do so.</p>
458
0
Why isn't this working?
34218624
Opptitronica
0
2014-06-02 18:57:17
<p>local fbi<br /> local hitman local innocent = {}</p> <p>local players = game.Players:GetPlayers() hitman = players[math.random(#players)].Name fbi = players[math.random(#players)].Name for i,v in pairs(players) do if v.Name ~= fbi and v.Name ~= hitman then table.insert(innocent, v.Name) end end</p> <p>print("HITMAN:...
6076
1
Why Is area music still playing when the player exits the area?
1961959172
imnotaguest1121
89
2021-12-05 06:36:22
<p>I am making a script where If you touch a block It plays music and when you leave it the music stops kinda like a sound region or area music. But the problem is that it doesn't stop when the player gets out of the area, meaning that the audio does play but doesn't stop when the player exits the area. This Is the scr...
128134
0
Can someone help with this rather simple but confusing for me code ?
835917525
fusroda_man
2
2020-10-17 18:09:54
<p>Sooo i have a game that is basically a scientific game i guess you could say ( for example, innovation inc stuff ) and basically theres a security room and i want only certain players to spawn in it ( yes, i said spawn in it ) so heres the code :</p> <pre class='brush: lua'>local players = {"fusroda_man", "plasper15...
114486
1
105177
0
161757041
krowten024nabrU
291
2020-10-18 01:24:08
<p>Try doing this code instead:</p> <pre class='brush: lua'>local players = {"fusroda_man", "plasper15", "Cuxrs3d"} game.Players.PlayerAdded:Connect(function(plr) for _, player in ipairs(players) do if plr.Name == player then plr.RespawnLocation = workspace.securityspawn.SpawnLocation en...
1
Does anybody have a script where if you have a certain amount of energy it gives you a tool?
159636940
Configuator
147
2020-07-19 13:05:24
<p>so I have multiple hammers and I want it to be like if you have a certain amount of energy the archivable becomes true for the fire hammer and the rusted hammer archivable becomes false. Here is the script raid6n gave me.</p> <pre class='brush: lua'>local plr = game.players.localplayer local tool = script.parent loc...
109439
2
100504
1
566296650
raid6n
2309
2020-07-19 13:08:49
<pre class='brush: lua'>local plr = game.Players.LocalPlayer local tool = script.parent local Energy = plr.leaderstats.Energy if Energy =&lt; 500 then tool.Parent = game.Starterpack end </pre>
1
How to time the flow of the script using wait( )???
6890941
brooksdart
5
2014-12-16 00:26:48
<p>I can not figure out how to use the wait( ) feature. For example I am making a brick that makes you fall if you don't walk across fast enough. I wrote the script using this format</p> <p>local trapdoor = workspace.trapdoor</p> <p>function onTouch(part)</p> <pre class="brush: lua">trapdoor.CanCollide = true trapdoor....
13317
2
16376
3
29806839
ConnorVIII
448
2014-12-16 19:28:01
<pre class='brush: lua'>debounce = false function OnTouch(hit) if debounce == false then debounce = true wait(1) --TIME FOR PLAYER TO MOVE script.Parent.CanCollide = false script.Parent.Transparency = 0.25 wait(0.25) script.Parent.Transparency = 0.5 wait(0...
0
Custom Teleport UI not working?
17458936
Raven_Caedes
95
2015-07-16 17:50:56
<p>I'm making a custom teleport screen where the screen fades to black instead of using the default place teleporting screen. I have the code in a normal script. However, when I touch it, it uses the default teleporting screen instead of the custom one.</p> <pre class='brush: lua'>local LoadingScreen function onTouched...
19932
2
i need help understanding some code (making a part move between two places)?
1222281551
botw_legend
452
2020-06-03 01:52:20
<p>so this is the code</p> <pre class='brush: lua'>while true do if math.ceil((script.Parent.part.Position-script.Parent.anchor.Position).Magnitude) &gt;= math.abs(script.Parent.part.PrismaticConstraint.TargetPosition) then script.Parent.part.PrismaticConstraint.TargetPosition = -script.Parent.part.Prismati...
105183
1
96970
2
1155618520
Lightning_Game27
218
2020-06-03 09:10:32
<p>Here is what it means:</p> <p><code>math.ceil</code> means that it rounds up to the nearest whole number. For example:</p> <pre class='brush: lua'>local num = 0.5 print(math.ceil(num)) </pre> <p>The above would print out <code>1</code> as 1 is the nearest whole number when rounding up.</p> <p><code>math.abs</code> m...
1
MarketplaceService:GetProductInfo() returns the false AssetTypeId?
295377783
RedstonecraftHD
25
2019-11-21 17:08:52
<p>Hey,</p> <p>I'm currently coding a Marketplace and I'm using Marketplace:GetProductInfo() but when I try to get the AssetTypeId it returns the false Id.</p> <p><strong>Here is my Code:</strong></p> <pre class='brush: lua'>local Product1 local Product2 local Product3 local Marketplace = game:GetService("MarketplaceSe...
90302
0
Visible and active property set to true, but I can't interact nor see it, how do I fix this?
1169890595
ghostgamer90391
9
2022-08-16 06:37:50
<p>Hello, I have a script that sets a textbutton's visible and active property to true. But I don't see the textbutton. And my script is a localscript.</p> <p>I tried searching many times on how I could fix this but I didn't find the right answer.</p> <p>Here is the code:</p> <pre class="brush: lua">game.StarterGui.Flo...
131247
1
118541
0
158443324
xXMadonXx
190
2022-08-16 07:52:10
<p>You need to edit the Gui of the player and not the StarterGui. By editing the StartGui (server-side) only new players that join are going to see the edits, as StarterGui copys its children to the player because it is only a container. Also your localscript does nothing as it can not really edit StarterGui except for...
0
Give a player a hat in ServerStorage every time they spawn? [Solved!]
18731888
iRzPWNzr
20
2014-07-17 12:53:41
<p>Hello, I'm kinda new to Lua, so if you could be specific as possible, that would be great.</p> <p>I'm trying to make a script where every time a player spawns, they get a hat, which I've put in ServerStorage. (And yes, the hat works)</p> <p>Here's what I've tried:</p> <pre class='brush: lua'>game.Players.PlayerAdded...
8258
0
How do i check if a roblox player is banned from roblox? [SOLVED]
110690937
TheEnderG
7
2021-03-28 13:56:14
<p>might seem wierd, but i actually need to know this before making datastores, because in the UK, you legally have to remove someone from the datastores if they get banned off the site. so lets say someone from the UK plays the game and gets banned from roblox for some reason, i would have to manually remove thier dat...
121761
0
Infinite yield possible on 'Players.Player1:WaitForChild(&quot;Character&quot;)'? any help
77126925
TigerClaws454
48
2017-01-08 21:47:24
<p>this is the error Infinite yield possible on 'Players.Player1:WaitForChild("Character")'</p> <p>here's a part of the script</p> <p>game.Players.LocalPlayer:WaitForChild("leaderstats") game.Players.LocalPlayer.leaderstats:WaitForChild("Level") game.StarterGui:WaitForChild("Hp") game.StarterGui.Hp.Frame.Frame:WaitForC...
38854
2
41186
0
54046671
Monsieur_Robert
338
2017-01-08 21:56:14
<p>Essentially all this means is that ROBLOX is warning you that your script can potentially wait forever, if the object you set to wait for hasn't been made.</p> <p>You shouldn't have a problem with it (and it is just a warning, not an error), but if you want to get rid of the error, set a time where if the object is ...
0
How do I SetPrimaryPartCFrame without rotating the model?
39961818
wwwdanielwww
5
2019-03-17 12:18:24
<p>When I use SetPrimaryPartCFrame it rotates my model and it faces the left instead of the front even though I only put a position in my CFrame.new.</p> <pre class="brush: lua"> jojo=script.Parent.Parent --model function apply() pos=script.Parent.Value --vector3 jojo:SetPrimaryPartCFrame(CFrame.new(pos)...
77756
1
72824
0
151079869
CrastificeDude612
71
2019-03-17 18:51:33
<p>The MoveTo object function is better in terms of moving without orientation changes. Since you are working with CFrame, it will require you to change to Vector3 for MoveTo.</p>
1
Can you detect a key input on a server script?
92181090
Marrleey
55
2016-07-17 23:45:41
<p>The question says it all. I want to do this because I want a function on the server script to be activated when a key is pressed. How would I make this possible? This is the method that I tried(this was on the server side script)</p> <pre class='brush: lua'>function onKeyPress(input) if input.KeyCode == Enum.Key...
33270
0
How can I make sure the tool Is removed as well of the tool morphing the player (?)
1961959172
imnotaguest1121
186
2022-07-29 14:03:01
<p>Hello!</p> <p>I made a morph tool that morphs you Into a character with attacks, It works just I want the tool to destroy Itself when the player Is done morphing which does not, also when morphing there Is a glitch where all Its attacks (Which are tools btw (Also there Inside of the morph)) are equip together and wo...
130993
0
How do I change the Textlabel to the Value of my NumberValue?
1331661786
Cowgato
33
2022-09-09 23:25:21
<pre class='brush: lua'>--AmountOfOrbs is a NumberValue in workspace-- script.Parent.Touched:Connect(function(hit) game.Workspace.AmountOfOrbs.Value +=1 game.StarterGui.ScreenGui.TextLabel.Text == game.Workspace.AmountOfOrbs.Value script.Parent:Destroy() end) </pre>
131563
0
(cant be solved) I dont understand this error &quot;attempted to call require with invalid arguements&quot;?
2025523139
Nozazxe
83
2021-06-09 20:45:36
<p>Hi, so im making a model inserter for my admin game. For some reason, this script fails to insert the model. Why? insert script in serverscriptservice</p> <pre class='brush: lua'>game.ReplicatedStorage.Insert.OnServerEvent:Connect(function(id) local item = require(id) item.Parent = game.Workspace end) </pre>...
124231
0
How do I use GetUserInfosByUserIdsAsync instead of GetNameFromUserIdAsync?
25240799
BearKranz
41
2023-02-07 06:56:19
<p>I need a way to convert this from GetNameFromUserIdAsync to GetUserInfosByUserIdsAsync so I can get both displayname and usernames for changing GUI text.</p> <p>"Captain" is a Title in the _G.ShipPositions Table that has UserID as the Key and Title as the value.</p> <pre class='brush: lua'>wait(1) sp = script.Parent...
133033
1
How do I make my katana equip animation work?
1112337243
Pejoume
11
2022-09-27 15:52:05
<p>So I'm making a PVP game and me and a friend made this cool equip animation, and the animation works fine on the character however doesn't do anything to the katana model even though we animated the katana too. In the attachments are gifs/screenshots of what both rigs look like in the explorer and what it's supposed...
131733
0
How do you make a Pop up GUI close it then open another?
150334552
vincentthecat1
92
2019-06-19 23:53:54
<p>So I'm trying to close a GUI than a few seconds or minutes later the other one pops up on the screen but I seem to not be able to do it can you please fix my script I'm kinda new at scripting.</p> <p>[Script]</p> <pre class="brush: lua">script.Parent.MouseButton1Click:Connect(function() if script.Parent.Parent.First...
82112
3
76340
0
328413134
LiLFriks
39
2019-06-20 00:05:26
<p>Untested, but probably will work.</p> <pre class='brush: lua'>script.Parent.MouseButton1Click:Connect(function() if script.Parent.Parent.FirstFrame.Visible == true then wait(5) script.Parent.Parent.FirstFrame.Visible = false script.Parent.Parent.SecondFrame.Visible = true wait(5) script.Parent.Pa...
1
New player join script?
51850516
Kingbeast786
0
2014-11-15 17:57:01
<p>so i'm wanting to make a script that tells everyone in the server that a new player has joined . the message will be saying "(New player name) has joined the server!" Can someone please help me on how to do this?</p>
12478
0
How would I make a button that hides/shows a GUI?
16382471
rookie423
0
2014-02-19 22:46:37
<p>I was trying to make something for Innovation Inc. using surface GUI's. It is a television with surface GUI on it. It came with a button that closed the GUI. The GUI never respawned. I looked at the script and I tried to think of a code but it wouldn't work. Can someone give me a code so I can have it respawn back? ...
135
0
How do I execute a script depending on a string value?
46714579
NortonHDD
14
2021-01-12 01:31:08
<p>I've tried 2 attempts at this, I'm putting both of them here. But I know it's the top part that isn't working right but I can't find out why. When I put everything under "then" in a onclicked script it works perfect. I'm confused, anything helps.</p> <pre class='brush: lua'>while true do RedBall = game.ReplicatedSto...
118573
1
108458
0
879399690
jamespringles
101
2021-01-12 01:39:39
<pre class='brush: lua'>while true do if game.ReplicatedStorage.RedBall.Value == "true" then print("gg") local newItem = game.ReplicatedStorage.Football.Handle:Clone() newItem.Handle.CFrame = CFrame.new(-189.549, 1.8, -37.55) newItem.Parent = workspace end ...
0
Why wont the GUI button script won't work?
33259325
SprocketSoldier
0
2014-11-28 23:04:15
<pre class='brush: lua'>local Button = script.Parent Frame = script.Parent.Parent.gggg function onClick() game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(-0,1,43) wait() game.Players.LocalPlayer.Character.Torso.Anchored=true wait() Frame.Visible = false end Button.MouseButton1Click:connect(onClick)...
12833