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 | What do [] brackets do and the other ones if my understanding is wrong? | 1792108186 | santafatso28 | 4 | 2022-07-22 23:47:25 | <p>I have seen all kinds of brackets these : {} I think are for tables
these () I think are for parameters .
BUT THESE [] I cannot understand. I don’t get what [] bracket do.</p>
| 130897 | 4 | 118178 | 0 | 226832508 | MattVSNNL | 614 | 2022-07-23 13:26:10 | <p>A lot of times it's used to get certain stuff out of tables or dictionary's, but it can also be used to find a child inside of Workspace or another place, It can find children with spaces</p>
<p>Dictionary example: (Tables and Dictionary's are almost the same}</p>
<pre class='brush: lua'>-- Make the dictionary using... |
0 | How do i make car crushers 2 explosion? | 1878947327 | MyoldhamiYeari | 0 | 2021-09-14 17:43:19 | <p>Hi how do i make a car crushers 2 self destruct explosion? Thanks if you responded Apprecieate it!</p>
| 127438 | ||||||||
0 | SCP like camera bobble? | 585579419 | Superstar234231 | 0 | 2021-05-01 22:15:32 | <p>Hi i am trying to recreate the scp camera bobble</p>
<p>i already have the formula</p>
<pre class='brush: lua'>xoffset = math.sin(time * 1.0 * speed) * distance
yoffset = math.cos(time * 2.0 * speed) * distance
</pre>
<p>but i don't know where to put it in.
i tried to put it instead</p>
<pre class='brush: lua'>local... | 123009 | ||||||||
0 | [SOLVED] How to get the normal of a mouse hit? | 288843257 | Griffi0n | 315 | 2018-09-10 15:37:36 | <p>3rd return value of <code>workspace:FindPartOnRay()</code></p>
| 67206 | ||||||||
0 | luau How do i make it so it show up to other players? | 803129850 | watarod | 0 | 2023-03-03 21:07:48 | <p>Hi, first of all i am very sorry if this question is dumb or smth but i'm very new to coding in roblox.</p>
<p>So i made this script (and i made 4 of these for every light) so when i press E on the keyboard the police lights on this car flash for few seconds and then stop but when i wanted to show it to my friends i... | 133138 | ||||||||
0 | Can someone help me with size? [Solved] | 12014954 | Tempestatem | 884 | 2014-06-04 20:29:37 | <p><strong>I thought I knew how to make a brick change size, based off of CFrame, but I guess not.</strong></p>
<p><em>(Like it can re-size through a wall or something)</em></p>
<p><strong>Here is what I tried:</strong></p>
<p><em>(Note all variables are defined earlier in the script)</em></p>
<pre class='brush: lua'>f... | 6171 | 1 | 8189 | 1 | 29251132 | HexC3D | 830 | 2014-06-04 20:36:44 | <p>Try Vector3, it would help alot.</p>
<p>This is what Vector3 is( I believe you know it)</p>
<pre class='brush: lua'>Vector3.new(x,y,z) -- Coordinate's of Roblox Game Engine since it is 3D, z was added.
</pre>
<p>So this how it would look in the script</p>
<pre class='brush: lua'>for i = 1,1 do
wait()
door1.Size = do... |
0 | How do you implement a Stack(data structure)? | 336467162 | TribotGamerGX | 169 | 2020-09-10 02:07:50 | <p>I've been messing around with a lot of data structures lately and I can't figure out how to implement a Stack in Lua. <a target="_blank" href="https://pastebin.com/7SwNGxML">Here</a> is how it would look like in Python.</p>
<p>Is there a possible solution to implement a Stack in Lua? If so, please provide me with a ... | 112954 | 1 | 103713 | 1 | 1015375651 | davidgingerich | 603 | 2020-09-10 14:52:01 | <p>A very simple stack system can be implemented using built-in Lua functions.</p>
<pre class='brush: lua'>local function top(stack, item)
table.insert(stack, item)
end
local function pop(stack)
return table.remove(stack, #stack)
end
function peek(stack)
return stack[#stack]
end
local stack = {}
top(stack, ... |
0 | I can't seem to get my face changing script to work, can somebody point out why this may be? | 117817326 | andypop12345 | 0 | 2020-11-22 21:09:14 | <p>So basically I'm making a face changer UI, And the code linked worked fine.
Until I tried to show my friend it in a game, Which then, he didn't see my changed face. So I thought the script being a local script was the problem, So i made it a regular script and now i get this</p>
<pre class='brush: lua'>Players.andyp... | 116173 | ||||||||
0 | I wanna do a in my game crounch but i don't know how to code czn YOU help me please? | 1483090108 | wiktor50l | 0 | 2022-10-30 21:20:40 | <p>I wanna do a in my game crounch but i don't know how to code can YOU help me please? Explain: cause i wanna make a horror game like doors</p>
| 132090 | ||||||||
0 | Move replica model with additions to the exact same place as another model? | 49776603 | TomsGames | 225 | 2014-02-19 12:38:18 | <p>Model bc = bluecar
Model ebc = editbluecar</p>
<p>ebc:MoveTo(bc:GetModelCFrame()) doesn't work as MoveTo uses Vector3.. But I also want the model to be rotated. Yet I am taking into account the cframe of a model is the center, it's the same size (a replica) just with an addition.</p>
<p>TY!</p>
| 83 | ||||||||
0 | I want to learn how to code for a piggy style game? | 476141627 | jtath120 | 0 | 2021-04-06 06:35:27 | <p>I want to learn how to script for a piggy style of game? anyone willing to help with teaching me some of the code for this style of game.</p>
| 122061 | ||||||||
0 | Is there anyway you can make a dance floor using SurfaceGUIs, if so, how? | 22187857 | Pawsability | 65 | 2014-04-15 05:35:04 | <p>Making a game that needs a dance floor. I have no clue how to script that using SurfaceGUIs. The base block color is black, but I don't know how to make it random colors. Any tips/help?</p>
| 1534 | ||||||||
0 | Any tips when getting this error: Not running script because past shutdown deadline? | 452463049 | tyorange09 | 4 | 2019-05-29 02:33:05 | 80873 | |||||||||
3 | How Do I Check If The Player Is On A Vip Server? | 124136116 | ricelicker | 52 | 2019-10-09 00:27:47 | <p>I Don't Really Know How To Do Anything With Identifying Servers So This Will Probably Suck</p>
<pre class='brush: lua'>Parent.Workspace.VipServer (3577727344)
</pre>
| 88535 | 2 | 82021 | 1 | 154348887 | mattchew1010 | 396 | 2019-10-09 01:32:02 | <pre class='brush: lua'>if game.PrivateServerId ~= "" then
--is Private
end
</pre>
<p>please upvote if this helped</p>
|
0 | How to get a player image? | 34082258 | Lineout | 10 | 2014-06-22 10:33:06 | <p>This is a straight-forward question: Using the 'player' how can you get the Avatar Image of that player for something like I GUI. I am really just looking on how to get the ID of the players avatar image. Any help would be appreciated,</p>
<p>Lineout</p>
| 7047 | 1 | 9196 | 0 | 3774904 | TofuBytes | 500 | 2014-06-22 10:55:40 | <p>150x200 Image: <code>http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=</code></p>
|
0 | Im a starter Scripter. How can i make A gui that recordes the stage your on with the stage group? | 1804271500 | Jayden_OwU | 2 | 2021-06-10 20:25:19 | <p>I did not try anything im very confused where to start. Info-- I want to make a difficulty chart obby.</p>
| 124255 | 1 | 113268 | 0 | 1752724383 | Xyternal | 145 | 2021-06-10 21:26:45 | <p>So in every level, you should add a huge block, which is anchored, and transparent, and CanCollied should be off. Then, you should create a screen gui in starter gui, and in the screen gui put a frame, and in the frame, place a text label. Now, in that part you had earlier, place a script and put the following.</p>
... |
0 | How can I create a random song playlist? | 1394293597 | Obammium | 0 | 2021-05-04 21:38:38 | <p>I'm trying to implement a working random song playlist with a skip and mute feature onto my game.</p>
| 123101 | ||||||||
0 | Why I cannot press text button like play button? | 1132112233 | eromusics | 10 | 2020-07-01 16:02:02 | <p>I made a text button much like those play buttons. i put local script inside it and boom it's not working. I cannot press it. It's like a scriptless button. Any idea?</p>
| 107948 | 3 | 99256 | 0 | 58729054 | Dovydas1118 | 1097 | 2020-07-01 16:16:29 | <p>So there are a few issues with your script. First of all, you need to edit your question to include the script (but that's a bit off-topic.) Secondly, When you use StarterGui, it will immediately replicate everything to the <code>PlayerGui</code>. So here's the solution. Put your localscript UNDER the <code>ScreenGu... |
1 | Players.coolmansunsh.PlayerGui.ShopGui.GuiHandler:34:index nil with 'CFrame? | 183699517 | Coolmansunsh | 17 | 2021-10-01 16:42:36 | <p>what did i do wrong and what does it mean?</p>
<pre class='brush: lua'>local btn = script.Parent:WaitForChild("ShopBtn")
local shopFrame = script.Parent:WaitForChild("ShopBG")
local itemScroller = shopFrame.ItemScroller
local itemPreview = shopFrame.ItemPreview
shopFrame.Visible = false
itemPreview.Visible = false
b... | 127769 | 1 | 115836 | 0 | 419000434 | Omq_ItzJasmin | 666 | 2021-10-02 00:05:47 | <p>you tried to access the CFrame of "displayPart" before giving it a parent, which is why it's returning nil. try this between lines 31 and 34</p>
<pre class='brush: lua'>local displayPart = item.Handle:Clone()
displayPart.Parent = itemSelection.ItemView
displayPart.Anchored = true
displayPart.CFrame = CFrame.new()
</... |
1 | Invisible keyframes in the animator? | 1586362458 | DmrGamingX | 64 | 2020-07-10 09:34:58 | <p>Hello,I don't know why but some of my keyframes in roblox animator is invisible,but I can still move or edit them.But they are not showing in the animator UI.Any help would be so amazing.Thanks.I will be linking a <a target="_blank" href="https://gyazo.com/be504417ffc07395ea1c0aa18002e230">photo</a> of how they are ... | 108677 | 1 | 99805 | 1 | 366734064 | JeffTheEpicRobloxian | 258 | 2020-07-10 13:13:40 | <p>Maybe Roblox Studio isn't working well? Try reinstalling it. If not, try Moon Animatior 2. And if you aren't used to the UI (Although it has a similar one to Roblox Animation Editor) you can search up how to use it, there are plenty of tutorials on Youtube.. Hope this helps!</p>
|
1 | Why does the '=' have a syntax error saying "Expected then when parsing if statment. got '='? | 1488957970 | Radiant_Sparkles | 69 | 2021-01-04 12:34:19 | <p>Why does the '=' have a syntax error saying "Expected then when parsing if statment. got '='?
code:</p>
<pre class='brush: lua'>if workspace.Timer.Value => 0 then
function leftClick()
workspace.Classic.Value = workspace.Classic.Value + 1
script.Disabled = true
end
script.Parent.MouseButton1Click:Connect(l... | 118152 | ||||||||
0 | Is there a way to load roblox assets with rbxasset? | 13405461 | TheDarkOrganism | 173 | 2017-11-04 21:27:54 | <p>Is there a way to load .rbxm into roblox studio using built in functions within plugins?</p>
<blockquote>
<p>I have been trying to get it to work with a plugin I am making.</p>
</blockquote>
<p>Here is the code I have tried to use:</p>
<pre class='brush: lua'>game:GetObjects('rbxasset://avatar/characterR15.rbxm')
</... | 49136 | ||||||||
0 | Why does mouse.hit.p x orientation vary based on y axis? | 52556007 | thecoolguy436 | 37 | 2022-05-20 07:08:20 | <p>Found this script that shoots a projectile but its gets more tilted based on how high its fired please help</p>
<pre class='brush: lua'>script.Parent.OnServerEvent:Connect(function(plr,direction,mouseaim)
local hrp = plr.Character:WaitForChild("HumanoidRootPart")
local Slash = game.ReplicatedStorage.Yoru.Yor... | 130054 | ||||||||
1 | Why is this debounce nonfunctional? | 5454586 | NetherGranite | 12 | 2014-02-21 02:04:13 | <p>In this kill script that sucks that remaining parts of the player's character into the center of a part named "orb," the debounce acts as if it weren't there; it inserts the BodyPosition into each body part numerous times. Does anyone know how to make a working debounce for this function?</p>
<pre class="brush: lua"... | 188 | ||||||||
1 | How to make an NPC follow a player? | 714312166 | PrismaticFruits | 842 | 2020-07-10 13:56:58 | <p>Here is what I have so far (Server Script inside the rig's model:</p>
<pre class='brush: lua'>local NPC = script.Parent
local Humanoid = script.Parent:FindFirstChild("Humanoid")
local HRP = script.Parent:FindFirstChild("HumanoidRootPart")
local function GetClosestPlayer(range)
local List = {}
local Target = ... | 108689 | ||||||||
1 | textbox to change property? how to make it a numbervalue? | 1483026272 | wswswff | 39 | 2022-10-13 20:24:45 | <p>so you probably did not understand the question but what I want to do is make a textbox, whatever you put in it is the rate of particles of a particle emmiter except im getting a string value so how do I do this????? ill show you a screenshot and my code</p>
<pre class="brush: lua">script.Parent.InputChanged:Connect... | 131906 | 1 | 119126 | 1 | 1483026272 | wswswff | 39 | 2022-10-14 00:22:05 | <p>hey, no one answered me but after lots of work and thinking I found out how to do this</p>
<pre class="brush: lua">local box = script.Parent
local isPlayerEditing = true
box:GetPropertyChangedSignal("Text"):Connect(function()
if isPlayerEditing then
isPlayerEditing = false
box.Text = string.gsub(... |
1 | FPS after clicking a button? | 42139522 | kapitanovaskapandr | 0 | 2014-04-18 22:14:25 | <p>How would I let me people be free camera and then when you click the button then it puts on FPS camera? my guess is</p>
<pre class='brush: lua'>script.Parent.Button(OnClicked) do
Player.FirstPersonCamera = true
</pre>
<p>something like that anyway... but so I don't know if that would work, I came here for your sugge... | 2751 | 1 | 3821 | 1 | 1986945 | PiggyJingles | 358 | 2014-04-18 22:15:57 | <p>http://wiki.roblox.com/index.php/First_person</p>
<p>Tells you all about it.</p>
|
0 | Is it possible to Union/Negate through scripts? | 379782887 | Shounak123 | 314 | 2021-05-03 10:26:02 | <p>It's a silly, yet important question. Is it possible to Union/Negate parts through scripts?</p>
| 123054 | 3 | 112137 | 1 | 1708043824 | TheLuminent | 970 | 2021-05-03 22:28:16 | <p>I made this sweet little function help you union parts through scripts, they just have to be in a model!</p>
<p>Where you see <code>GetChildren</code> can be changed to <code>GetDescendants</code> if you decide you want to union the entire hierarchy of the Model.</p>
<pre class='brush: lua'>local function UnionModel... |
4 | How can I wrap a surface gui around a mesh or curved object? | 67275669 | plasma_node | 343 | 2017-09-01 05:31:09 | <p>I need to wrap a surface gui around a mesh or curved object, but I don't know if this is possible. How could I achieve this?</p>
| 47470 | 1 | 48016 | 3 | 51237105 | PyccknnXakep | 1225 | 2017-09-01 19:46:48 | <p>Good question, I've also been wondering myself. But unfortunately, it has not been added yet as a feature. <code>SurfaceGuis</code> cannot currently wrap around meshes and curved objects like <code>Decals</code> can. I found this out <a target="_blank" href="https://devforum.roblox.com/t/surfacegui-wrapping-around-h... |
0 | == and = and spacing | 29806839 | ConnorVIII | 448 | 2014-03-10 19:24:53 | <p>I read this. I did not understand what it meant. Could anyone expand on this. + What is the difference between = and ==.</p>
<p>"not is simply a negation of a condition. It will be inverted. True becomes false and false becomes true.
e.g. (5 == 5) the result is true. At the condition
not (5==5) we get false as resul... | 607 | 1 | 967 | 6 | 4030068 | jobro13 | 980 | 2014-03-10 19:40:23 | <p>You use the <code>=</code> character to set variables. <code>==</code> basically means "check if equal". This will "return" either true or false.</p>
<pre class='brush: lua'>a = 5 -- Set a variable
-- b == 5 -> This is not correct and will result in a syntax error
b = 5
a = (b == 5) -- This is correct though. It ... |
0 | this sprint works but once a player dies it stops working why is that?? | 40807098 | coda6000 | 2 | 2022-08-05 20:06:22 | <pre class='brush: lua'>wait(2)
local Player = game.Players.LocalPlayer
local UIS = game:GetService("UserInputService")
local Humanoid = Player.Character.Humanoid
UIS.InputBegan:Connect(function(input, GameProcessedEvent)
if input.KeyCode == Enum.KeyCode.LeftShift then
Humanoid.WalkSpeed = 50
end
end)
U... | 131114 | ||||||||
0 | How do I fix this custom chat tag error? | 103919802 | TheBuliderMC | 64 | 2020-10-17 18:53:27 | <p>Error: GetPlayerName is not a valid member of Players "Players"</p>
<pre class='brush: lua'>local ServerScriptService = game:GetService('ServerScriptService')
local ChatService = require(ServerScriptService:WaitForChild('ChatServiceRunner'):WaitForChild('ChatService'))
local Players = game:GetService("Players")
loca... | 114489 | ||||||||
0 | Filtering Enabled Fireball is laggy? | 111523961 | Azure_Kite | 870 | 2018-05-27 03:43:22 | <p>I have been trying to make a Fireball, but its always a little bit laggy</p>
<p>So what tried to make is:</p>
<p>-Player Press Q > FireBall came out > FireBall Flies to where mouse is pointed > Destroy itself when it touch something, do damage if its a player</p>
<p>How I do it : Local script contain a script where ... | 59092 | ||||||||
0 | How do I add a dialog without player having to click? | 55549078 | dakanji123 | 97 | 2019-12-18 13:31:55 | <p>So I made a boss and in 20 seconds I want it to say something without having to click some stupid dialog
How would I do this?</p>
| 91560 | 2 | 84765 | 1 | 810187599 | FlabbyBoiii | 81 | 2019-12-18 16:58:24 | <p>Ok, so assuming you want the classic roblox dialog to appear over the head of your boss <em>without</em> having to click it first. I may have a solution</p>
<p>So basically, instead of using dialog, you can use the <strong>Chat:Chat()</strong> function.</p>
<p>Of course you have to fill out the parameters, so here's... |
0 | how do i make my announcements gui go to every server? | 293895601 | ads_bv | 29 | 2021-05-01 22:23:27 | <p>here is the script inside the submit button (the announcement only goes to 1 server so help me make it go to every server by giving me an improved script):</p>
<pre class='brush: lua'>script.Parent.MouseButton1Click:Connect(function()
script.Sound.Playing=true
local textbox = script.Parent.Parent.Text
ga... | 123010 | 2 | 112084 | 1 | 1708043824 | TheLuminent | 970 | 2021-05-01 23:23:28 | <p>In order to send a message across all servers, you need something that can be used to connect to all servers. In this case, we'll use the easiest method; a DataStore Instance.</p>
<p>This is a brief example of what it may look like.</p>
<pre class='brush: lua'>-- ServerScript
local DataStoreService = game:GetService... |
0 | Snow Plower rewarding points is not rewarding? | 275142499 | BabyBearPowStuff | 11 | 2019-12-03 23:28:59 | <p>I am trying to make a snow plowing job in my game, and when you plow a part off, you get a SnowPoint in the leaderstats. I am a scripter who learns on very little, and because of that, I need some help. I took a vehicle from workspace and welded a part on the vehicle, named "PLOW PART" . This part is the part that '... | 90934 | 1 | 84256 | 0 | 680620891 | CosmicIsGod | 139 | 2019-12-04 14:45:24 | <p>Now tell me exactly where this script is but from looking at the script I think I know where so try this:</p>
<pre class='brush: lua'>local user = script.Parent.Parent.Parent.Parent -- First Parent Plow Part, Second Tool, Third Backpack, and Finally Player
local stats = user:FindFirstChild("leaderstats")--added
... |
0 | How to make a ViewportFrame of your ROBLOX Character? | 1062637009 | ThanosOfficials | 2 | 2019-08-02 13:52:08 | <p>So I am working on a survival game and for the avatar editor, I needed a 3D Version of the Player. I tried making one but it ended up making the character glitch out of the Frame, And I was wondering how to do that.</p>
| 84939 | 1 | 78918 | 0 | 314075941 | Eternalove_fan32 | 188 | 2019-08-03 13:03:05 | <p><a target="_blank" href="http://">https://devforum.roblox.com/t/rendering-the-character-with-a-viewportframe/241369/31</a></p>
<p>Post 31 by Boatbomber
please read the problem and check out the script of Boatbomber that you can download (don't forget the credits)
<a target="_blank" href="http://">https://devforum.ro... |
0 | Hello im trying to loop a certain animation but the looped doesnt work why? | 1973099835 | G4BR13L_progamer123 | 5 | 2022-11-24 12:11:10 | <p>Hi whoever read this post im currently trying to animate an NPC and the script work however for some reason i dont know even using anim.looped it doesnt work here the script:</p>
<p>local hum = script.Parent:WaitForChild("Humanoid")
local anim = hum:LoadAnimation(script:FindFirstChildOfClass("Animation"))
anim:Play(... | 132364 | ||||||||
3 | Help w/ touching part and GUI comes up? | 27621739 | FiredDusk | 1466 | 2015-05-04 21:41:40 | <p>I want to have a part when you touch it a GUI comes up and you are able to close it.
In workspace I have a Part named "Part". In "Part" I have a script named "OpensExampleGui" in the script I have a GUI named "ExampleGui". In ExampleGui I have a frame named "ShopFrame". In ShopFrame I have a TextButton named "Close"... | 17285 | ||||||||
1 | Make 2 bricks go through eachother | 2197987 | omarz123 | 5 | 2014-02-25 00:44:37 | <p>Hi, I was wondering how to make 2 bricks go through eachother? Can anyone help? Thanks.</p>
| 287 | ||||||||
0 | How can you make so that characters can reset when the CharacterAutoLoad is false? | 19328197 | WiseDumbledore | 15 | 2014-04-17 12:43:26 | <p>So this is my script so far:</p>
<pre class='brush: lua'>local Players = Game:GetService("Players")
Players.CharacterAutoLoads = false
local char = game.Workspace.Part
game.Players.WiseDumbledore.Character = char
game.Workspace.CurrentCamera.CameraSubject = char.Humanoid
</pre>
<p>As you can see what I am trying to ... | 2419 | ||||||||
0 | How to detect when a tween repeats? | 178628425 | Jac_00b | 157 | 2023-03-05 19:14:17 | <p>Hello, I am making a game where cars drive on a road and then infinitely loop using tweens. I want to make it so that on some repeats, I can change something on the car. To do this, I would need to detect when a tween repeats so I can apply the change when it repeats and then take it off on the next one. I tried loo... | 133147 | ||||||||
0 | Im trying to make a code where it gives a random player a weapon after clicking a button? | 1617380653 | jumpy_legs | 12 | 2020-12-18 23:45:39 | <p>Hey, does anyone know a code where when you click a button it gives a random player a weapon?</p>
| 117347 | ||||||||
0 | How do you give cash through chat commands? | 586053124 | Electrowizard12312 | 2 | 2021-04-07 09:29:16 | <pre class='brush: lua'>--Scripted by Electrowizard12312--
local Players = game:GetService("Players")
local cashCommand = "/give "
--
local function onOwnerChatted(player, message)
if message:sub(1, cashCommand:len()):lower() == cashCommand:lower() then
local name = message:sub(cashCommand:len() + 1)
... | 122106 | ||||||||
0 | How do I remove part of a string? | 25484931 | lucas4114 | 607 | 2015-09-13 14:15:17 | <p>I know how to add onto strings, it would be this for example: String.Value = "Hi"..Player.Name.."!" But how do I remove parts of a string an exmple would be I have something named "Player's_House" and I want to remove "'s_House" off of it?</p>
| 22683 | 1 | 26304 | 5 | 4388351 | CoffeeFlux | 55 | 2015-09-13 14:39:54 | <p>This is easily accomplished with patterns! The function you need is <code>string.gsub</code>. This function takes in a string to replace in, a pattern, a replacement string, and optionally a limit of the number of substitutions. Patterns, which are similar in function to Regex (though far more lightweight), are a wa... |
1 | Why doesn't my leaderstat update until I rejoin the game? | 571963777 | JipSea | 23 | 2020-09-14 03:11:40 | <p>Hello! My leaderstat for Most purchased items in game is now working, but it doesn't update until I quit and rejoin the game-</p>
<p>Any advice or suggestions on what I can do to allow this script to update real time?</p>
<p>Thanks.</p>
<pre class='brush: lua'>local marketPlaceService = game:GetService("MarketplaceS... | 113148 | ||||||||
0 | How to change LookVectors into a sideways version of themselves? | 722000934 | popsi_le | 102 | 2021-02-25 20:43:46 | <p>I'm trying to make a pet system, but I need to offset some of the pet's positions to fit more than one. Subtracting Vector3s from the position resulted in an offset based off of the player's angle, which is not what I wanted to make. Here is my current script:</p>
<pre class='brush: lua'>local ss = game:GetService("... | 120679 | 1 | 110026 | 1 | 32447496 | tristanperry | 20 | 2021-02-27 07:08:50 | <p>Use CFrame.RightVector, if you want it to go left multiply by negative one.
https://developer.roblox.com/en-us/api-reference/datatype/CFrame</p>
|
2 | How to make a part give a "point" to a leaderboard value? (SOLVED) | 45803743 | DrCylonide | 146 | 2014-05-29 02:29:30 | <p>I have a points/money system in my leaderboard, and I would like to know how to make a part award the player that touches it to gain a "point" in the leaderboard.</p>
<p>How would I do this?</p>
<p>Thank you.</p>
| 5783 | 1 | 7715 | 5 | 49352468 | fireboltofdeath | 630 | 2014-05-29 03:00:10 | <pre class='brush: lua'>script.Parent.Touched:connect(function(hit)
if game.Players:GetPlayerFromCharacter(hit.Parent) then
player = game.Players:GetPlayerFromCharacter(hit.Parent)
player:FindFirstChild("leaderstats").Points.Value = player:FindFirstChild("leaderstats").Points.Value + 1
end
end)
... |
0 | how would i reference the player torso? | 183885957 | Chaotic_Devel0per | 7 | 2021-06-10 05:35:31 | <p>local torso = game.Players.LocalPlayer.Character:WaitForChild("Torso")
this wont work</p>
| 124240 | 1 | 113260 | 0 | 526210522 | Dehydrocapsaicin | 463 | 2021-06-10 09:09:03 | <p>Hello, I am assuming you are using a Local Script. Here's how I would've done it:</p>
<pre class='brush: lua'>--R6
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local torso = character.UpperTorso or character.Torso
</pre>
<p>If you are using a Server Scrip... |
0 | Humanoid respawn with more health? | 454915 | nick2222 | 9 | 2020-05-09 17:01:37 | <p>hello, im pretty new to building, but im trying to make this game. i want to make a NPC or Zombies respawn with more health. for example, it'll have a MaxHealth of 100, and then on its cloning function come back with a MaxHealth of 200. I've tried this:</p>
<pre class='brush: lua'>name="Humanoid"
robo=script.Parent:... | 102509 | 2 | 94682 | 0 | 393270753 | itz_rennox | 412 | 2020-05-09 17:03:48 | <p>Try this:</p>
<pre class='brush: lua'>name="Humanoid"
robo=script.Parent:clone()
script.Parent.Humanoid.Died:connect(function()
--Your code
end)
</pre>
|
0 | Why can't I use RemoteEvent:FireAllClients? | 1544724616 | sidb0102 | 0 | 2021-05-02 17:01:07 | <p>I want to check whether a character is in a Region3 at a certain time on the server, so I made a remote event called FloorCheck.
Now, I put this in my main Script when I want to check:</p>
<pre class='brush: lua'>if game.ReplicatedStorage:FindFirstChild("FloorCheck") then
print("FloorCheck exists")
end
game.Repl... | 123034 | ||||||||
1 | How to Position Region3 in front of the player? | 225388415 | SaitamaSaan | 9 | 2020-09-15 16:06:42 | <p>I just started learning about region 3, and I want to make a region that appears in front of the player when he presses a key. The problem is that the region3 always get in the same direction no matter how I move the player. can someone help me settle it please??</p>
<p>Here is the script,</p>
<pre class='brush: lua... | 113196 | ||||||||
0 | Why does my fall damage script kill you when the character is in a negative Y value? | 25926813 | laughablehaha | 494 | 2017-04-16 15:06:11 | <p>I know I'm bad at phrasing titles, but my point is that whenever the character is in a Y-axis of (0,-1,0) and below, it just automatically dies. I do not know at all why! Also, in some general cases, the character just dies for unkown reasons because of fall damage. If you can help me improve this script or create a... | 42070 | ||||||||
0 | Why wont a Players name be put into TextLabel? | 150334552 | vincentthecat1 | 193 | 2021-10-01 01:01:02 | <p>I'm currently working on a scrip that fires a client when a player dies and sends the name of the player who died and sends the player's killer but for some reason, I'm unable to put the player's name into a text label, and I know it's not an issue from the server I've tested the server 3 times with prints so I'm su... | 127763 | 1 | 115831 | 2 | 458330449 | MarkedTomato | 665 | 2021-10-01 14:52:42 | <p><strong>Problem</strong></p>
<p>This is a misunderstanding of <code>RemoteEvents</code> with the <code>:FireClient()</code> and <code>.OnClientEvent</code>.</p>
<p><strong>The first argument of :FireClient() is the player you want to fire to</strong>, and arguments after the first are other arguments you want to pas... |
0 | How i make a text apear when all the parts in a folder are black? | 146100287 | Gigaset39 | 111 | 2023-02-25 07:40:00 | <p>Hello im have a script that, when you touch a part it turns black, but what im tring to make, is a script that after all the parts inside BlueFolder are black,
the ... games text wiil change to GAME OVER:</p>
<pre class="brush: lua"> local Status = game.ReplicatedStorage.GameStats.Status
local blue = workspace.... | 133119 | 1 | 120210 | 1 | 559514967 | T3_MasterGamer | 2189 | 2023-02-25 09:23:47 | <p>You can iterate <code>BlueFolder</code>'s children using a <code>for</code> loop and <code>pairs</code>/<code>ipairs</code>, then check if each child is black.</p>
<pre class='brush: lua'>local Status = game.ReplicatedStorage.GameStats.Status
local blue = workspace.BlueFolder
local function allChildrenPartsAreBlack(... |
0 | Why cannot Roblox find a child within an object in workspace? | 18664243 | lazycoolboy500 | 582 | 2019-11-16 23:35:30 | <p>I have created a script that when a player looks at an object it then displays a BillboardGui to let the player know how to interact with an object. Now the issue is that on the server side it cannot find the BillboardGui at all. The following are snippets of my code.</p>
<p>On the Client side the player requests fo... | 90113 | 1 | 83666 | 0 | 18664243 | lazycoolboy500 | 582 | 2019-11-20 00:39:37 | <p>I had solved my issue. I instead placed the GUI within the object using a LocalScript. This allows me to only display the GUI only towards the player. Not just that but as well was able to find the GUI stored within the object by keeping it stored in a variable within the LocalScript.</p>
|
1 | Why won't any of my stats save? They stick at 1 value and don't save. | 56633716 | attackonkyojin | 135 | 2015-04-29 22:17:37 | <pre class="brush: lua">local ds = game:GetService("DataStoreService"):GetDataStore("stats")
local stats={"Intelligence","MaxEXP","EXP","MagicEnergy","MaxMagicEnergy","Level","LastLevel","Defense","Strength","Team","Cash","Wind","Fire","Earth","Water","Reputation"}
game.Players.PlayerAdded:connect(function(plyr)
lo... | 17122 | ||||||||
1 | BindableFunctions vs. BindableEvents | 25691148 | FromLegoUniverse | 264 | 2014-03-11 11:48:51 | <p>Out of curiosity... other than their icons, what do BindableFunction and BindableEvents have different?</p>
| 632 | 1 | 995 | 2 | 53627646 | modFrost | 130 | 2014-03-11 13:17:15 | <p>It's in the name? You use BindableFunctions to call a made function from a different script and BindableEvents to call events with a custom set of arguments.</p>
|
0 | Multiple teleport locations how to make every player go to a different location? | 494292273 | DrBeCool | 0 | 2021-04-06 13:46:51 | <p>I have made it so i teleport a bunch of players to different locations, but sometimes they go to the same location. I want to assign every teleporting player a different location to teleport to all random. So if i have 8 players and 8 locations, every player has his own location. As if right now i can get random tel... | 122073 | ||||||||
0 | Function Doesnt Clone Part And Position Randomly? | 1680108820 | JmoneyPlayzOfficial | 49 | 2023-02-24 05:35:19 | <p>what this script is made to do is it there's a function that sets a random position for a part and gets the part name, then it clones the part, then starts setting the clone value / variable to a clone of the previous clone and sets the position to random it repeats that 20 times before stopping, but it doesn't work... | 133113 | 1 | 120206 | 1 | 559514967 | T3_MasterGamer | 2142 | 2023-02-25 02:42:05 | <p>It's probably because either there are many parts with the same name or the parent of the clones is <code>nil</code>. You don't need to get the name and use the function, just clone <code>script.Parent.poggy.Smiler</code> 20 times using <code>for i = 1, 20 do</code>. Also you don't need to put that loop in a <code>w... |
0 | How do I put clothes on a character when they touch a door? | 15297810 | xXScorpianKillerXx | 25 | 2014-03-01 17:36:33 | <p>I want to make it so when a Player touches a door, it puts a certain Shirt and Pants on them. Does anyone know how to do this?</p>
| 393 | ||||||||
0 | How do I check if the player touched a brick? | 22026745 | raystriker6707 | 30 | 2014-12-13 00:34:07 | <p>I have looked through the Player API in the wiki and I didn't find anything to do with this. I was wondering if you could detect if someone touched a brick. Is this even possible? If it is could you explain it to me?
Due to confusion this is basically what I would want if I wanted this script.</p>
<pre class="brush:... | 13202 | ||||||||
0 | How to get rid of leaderstats in PlayerList? | 101879484 | XxSHjokerxX | 18 | 2016-06-15 21:28:53 | <p>If I had a leaderstats with coins and points and I wanted to keep default roblox player list (I can't make my own) how would I get rid of the coins and points near their name on the player list.</p>
<p>I've seen some games do it</p>
| 31834 | ||||||||
0 | How do i disable a material changing script using another click detector in a different part? | 348200991 | gpp_CSRO | 4 | 2020-08-01 20:48:14 | <p>I just started scripting last week and im trying to make a brick thats flashing neon red turn to "Institutional white" and stop flashing after the click detector is clicked.</p>
<p>Here is the click detector script. Its not in the same group as the neon flashing red brick.</p>
<pre class='brush: lua'>local cd = scri... | 110495 | 1 | 101499 | 0 | 5816073 | AlmostADemon | 30 | 2020-08-02 01:01:13 | <p>If you want to disable scripts from within a script you can use script.Disabled = true to disable it and script.Disabled = false to enable it.</p>
|
0 | Parts Freeze While In Mid Air? | 94559842 | Rileyboy1223 | 0 | 2020-10-18 14:41:52 | <p>I was testing the exploding parts for my brickbattle game but this happened while testing, they also unfreeze when i move close to them, anyone know how to fix this? https://imgur.com/a/RflGWk4, sorry for the lag.</p>
| 114518 | ||||||||
0 | How can this local script be re-written to work on a server script? | 449298285 | StirSavvy | 38 | 2021-04-06 00:49:32 | <pre class="brush: lua">This was written on a local script, but the server doesn't recognize this for all players in-game to see what it does. How can this be changed so it can work and be written in a server script, and is a RemoteEvent an absolutely necessary thing to use for this?
</pre>
<pre class='brush: lua'>game... | 122051 | 3 | 111183 | 0 | 1361134044 | NotedAPI | 809 | 2021-04-06 01:32:22 | <p>Hey Savvy,</p>
<p>You can use <a target="_blank" href="http://https://developer.roblox.com/en-us/api-reference/class/BodyColors">BodyColors</a> to achieve this.</p>
<pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:connect(function(Character)
local bodyColors = Cha... |
0 | Anyway to speed up CFrame animation? | 103168431 | YouSNICKER | 131 | 2018-08-15 23:37:28 | <p>Basically, I am making a door open with this animation which rotates on a hinge I have created. Is there any way I can make this faster or even possibly use <code>TweenService</code>?</p>
<pre class='brush: lua'>local Door = script.Parent:WaitForChild("Door")
local Hinge = script.Parent:WaitForChild("Hinge")
local h... | 65559 | 2 | 63403 | 1 | 142366479 | the8bitdude11 | 358 | 2018-08-15 23:59:42 | <p>I recommend a tween because they're easy to use</p>
<pre class='brush: lua'>local goals = {
CFrame = CFrame.new(CFRAMEHERE) -- the ending CFrame position
}
local Speed = 2 -- in seconds
local tween = game:GetService("TweenService"):Create(DoorHinge, TweenInfo.new(Speed), goals)
tween:Play()
</pre>
<p>more info a... |
1 | Making Sure Player has hat? | 358294883 | LegoUnicornRoblox | 37 | 2019-08-22 03:55:46 | <pre class='brush: lua'><br />-- Hat
----------------------------------------
local NewHat = game.ReplicatedStorage.HeadBands.Headband
repeat wait()
NewHat.Parent = script.Parent
until NewHat.Parent == script.Parent
</pre>
<p>I've made this simple script, yet when I die the hat doesn't appear on the player?!?
(In Start... | 86325 | ||||||||
0 | "Is not a valid member of backpack" error, I need help please (?) | 1961959172 | imnotaguest1121 | 287 | 2022-08-07 19:51:50 | <p>Hello!</p>
<p>I am trying to make a tool (with no handle) that makes you dance when you equip It, the problem Is that It does literally nothing</p>
<p>Script:</p>
<pre class='brush: lua'>local Tool = script.Parent
local Troll = Tool.Parent
local CopeAnimationTrack
Tool.Equipped:Connect(function()
Troll.HumanoidR... | 131132 | ||||||||
1 | ScreenGui is not a valid member of PlayerGui? | 84828376 | PoppyandNeivaarecute | 99 | 2019-01-31 05:08:42 | <p>hello! I am trying to code a game with a shop that opens when you stand on a brick. Whenever I try this it tells me that 'ScreenGui is not a valid member of PlayerGui', which I can confirm it is. Here is my script Below. Thank you anyone who helps me :D</p>
<pre class='brush: lua'>script.Parent.Touched:connect(funct... | 75479 | ||||||||
0 | This thing wants everything to be in question format? | 13667373 | EzraNehemiah_TF2 | 3546 | 2014-04-30 21:52:25 | <p>How do you add Player Points? I've heard of it but never used it. How can you give player points to people playing your game or buying a shirt form your shop or stuff. Also, is it possible to give yourself player points?</p>
| 4011 | 1 | 5516 | 0 | 3200702 | Michael007800 | 144 | 2014-04-30 21:59:58 | <p>This code here automatically gives the player playerpoints when joining a game.</p>
<pre class='brush: lua'>-- declare service
local PointsService = Game:GetService("PointsService")
-- Bind function to player added event
game.Players.PlayerAdded:connect(function(player)
-- Get total number of points the game has... |
0 | Looking for help on converting my existing placeable system to work with models? | 153830228 | KCbiulder | 0 | 2022-05-26 21:45:25 | <p>Hello, I was looking for help on converting my existing placeable system to work with models. Currently it only works with parts but I have been trying for the past couple of days to figure out a some what simple way to incorporate models.
Here is the code, I added a few labels to make reading easier digest:</p>
<pr... | 130112 | ||||||||
0 | Looking for a script that will close Roblox from clicking a button inside a GUI, Help? | 82158179 | Tyserkhan004 | 22 | 2018-11-12 04:50:57 | <p>I have this GUI that has a Quit button on it, I couldn't find anyone having the script.
I'm looking for a script that allows the GUI to close Roblox when you click it.</p>
| 70446 | 2 | 67128 | 1 | 335376705 | SCP774 | 191 | 2018-11-12 13:11:43 | <p>There is no way to close RobloxPlayerBeta.exe using scripts from your game. But you can kick the player out of the server.</p>
<p>Here's a demonstration of how to do it:</p>
<pre class="brush: lua">local PLAYER = game.Players:FindFirstChild("PLAYERNAMEHERE")
local BUTTON = script.Parent:FindFirstChild("BUTTON")
BUTT... |
0 | how to clone player when dying and appear on his body? | 1739689185 | MatiasHarders | 0 | 2021-01-31 15:34:49 | <p>Hello, I would like to know how I can make the player when he dies a copy is created on the ground and that the player after a few seconds appears on his body, how is this possible?</p>
| 119453 | ||||||||
6 | Transforming 2D point to 2D object-space | 947798 | MrNicNac | 855 | 2014-02-16 22:42:09 | <p>I have a plugin, GUI Studio, and I want to add support for rotated GUIs. Right now, I'm trying to position pseudo-resize handles (just other GUIs) on the left/top/bottom/right sides of the GUI no matter it's rotation.</p>
<p>I will present the Left handle code. The issue I am having is that it is slightly below the ... | 15 | 1 | 30 | 6 | 849264 | blocco | 185 | 2014-02-17 00:47:40 | <p>GUI objects in ROBLOX are positioned based on their top-left coordinates when they're not rotated, and they're rotated based on their center coordinates. This can cause some problems when figuring out where things are rendered.</p>
<h2>Center Coordinates</h2>
<p>Since GUI objects are rotated around their center coo... |
1 | Why does my script not know what HumanoidRootPart is? The script tells it what it is | 226832508 | MattVSNNL | 614 | 2021-03-23 20:36:09 | <p>I'm making a game for fun and I'm coding the MainFramework but with teleporting it says Attempted to index with a nil value:WaitForChild(), Can anyone help me?</p>
<p>Here's the code:</p>
<pre class='brush: lua'>local EventsModule = require(script:WaitForChild("EventsModule"))
local MethodNames = {}
for MethodName, ... | 121600 | ||||||||
0 | How do I stop this While True Do loop? | 2668 | MustangHeart | 67 | 2019-07-12 02:31:24 | <p>There are the proper variables in place btw</p>
<p>Anyways, this script is supposed to make a block strobe and stuff, but I can't get it to stop. I try to break the loop but it does nothing and keep strobing. What am I missing here?</p>
<pre class='brush: lua'>function strobe()
s:Play()
local parts = a:GetCh... | 83505 | 1 | 77609 | 1 | 55174990 | sO_Ov | 275 | 2019-07-12 02:38:15 | <pre class='brush: lua'>--You can stop while true do making a variable true and changing to false
local loop = true
--Example using click
script.Parent.MouseButton1Click:connect(function()
loop = false
end)
while loop do
wait()
print("Hello")
end
</pre>
|
1 | How to make a mobile button that replicates a mouse click? | 167536064 | MelodicSea5914 | 21 | 2020-08-03 12:19:10 | <p>Hi, so I have swords in my game and I want it so that when you press a button on a phone, it will make the sword attack. The tutorials I have seen for mobile buttons is always replicating a keyboard key and not the a mouse click. Please help.</p>
<p>Sword Script:</p>
<pre class='brush: lua'>wait(1)
script.Parent.Equ... | 110618 | 1 | 101601 | 0 | 835155757 | BRO_ITmeYO | 121 | 2020-08-03 12:55:55 | <p>I'd reccomend seeing this tutorial:</p>
<p>https://developer.roblox.com/en-us/articles/ContextActionService-Creating-Mobile-Buttons</p>
|
0 | Table not reseting after getting event getting fired on server? | 1012714707 | imKlevi | 74 | 2020-12-20 15:24:55 | <p>Hello, i checked if this remote was firing and the table was not reseting, may anybody help me?</p>
<pre class='brush: lua'>game.ReplicatedStorage.resetTable.OnServerEvent:Connect(function(player)
print("Game Reset!")
for index in pairs(blacklist) do
blacklist[index] = nil
end
end)
</pre>
| 117419 | 1 | 107571 | 2 | 103833540 | deeskaalstickman649 | 388 | 2020-12-20 15:37:16 | <p>I recommend setting <code>blacklist</code> to an empty table.</p>
|
0 | How do I make it so i click a part and then a gui appears? | 682417590 | SubNinjaPav | 0 | 2021-06-07 06:35:00 | <p>Im new to coding so please don't judge. The code i wrote in the part is :</p>
<p>script.Parent.ClickDetector.MouseClick:connect(function(player)
player.PlayerGui.ObbyGui.Enabled = true
end)</p>
<p>The name of the screen gui is ObbyGui btw. This was wrote in a local script in workspace.</p>
| 124160 | ||||||||
0 | Make a "backpack" stick on the player's torso? | 10186880 | wddd89 | 35 | 2014-03-06 02:02:02 | <p>I know for sure this has to do with welds, and this time I would really appreciate a full script (sorry for being greedy if i do sound like it). The model is called "backpack", if you need to know what it is.
So, this is what I have tried but never got it to work...</p>
<pre class="brush: lua">local w = Instance.new... | 514 | ||||||||
0 | How to change a property of an object in replicated storage on the client? | 216815068 | ShineBright2775 | 30 | 2020-07-25 21:47:12 | <p>So I have a hair color GUI that's supposed to change the color of all the hair in Replicated Storage. It works fine if I put it in a server script the problem with that is that it changes the color of everyone's hair on the server. I tried putting it into a local script and it changes the color of the hair but when ... | 109965 | ||||||||
0 | my tool saving script doesn't work when reseting character? | 1304881502 | AvocadoM678 | 17 | 2022-05-02 18:29:39 | <p>i want to make it so the script can save your tools when u die but it doesnt work help?</p>
<pre class='brush: lua'>local dss = game:GetService("DataStoreService")
local toolsDS = dss:GetDataStore("Data")
local toolsFolder = game.ServerStorage.ToolsFolder
game.Players.PlayerAdded:Connect(function(plr)
local tool... | 129894 | ||||||||
2 | What is difference between making a variable with local and without local? | 126333053 | zamd157 | 1036 | 2020-03-21 17:00:44 | <p>Title says it all. Example:</p>
<pre class='brush: lua'>randomvariable = 100
local anothervariable = 100
</pre>
| 96633 | 3 | 89267 | 2 | 37652173 | DeveloperSolo | 355 | 2020-03-21 17:11:14 | <p>The difference in them is called scope.
Where different things can be accessed.</p>
<p>For example,
a local variable can only be used in the surrounding brackets.</p>
<p>A global variable can be used anywhere in the script, no matter where it's located.</p>
<p>e.g</p>
<pre class='brush: lua'>local test1 = 1
test2 = ... |
0 | What is the difference between an ipairs loop and a pairs loop? | 121777358 | diamondpearl135 | 0 | 2023-01-12 16:00:06 | <p>The title pretty much sums it up. What is the difference between the two?</p>
| 132815 | ||||||||
0 | Text is not a valid member of Model "Workspace.GameScripts" ? server script | 235251315 | Wrathoxicihatehim | 5 | 2022-09-14 09:54:26 | <pre class="brush: lua">while true do
wait(0.1)
if script.Parent.Running.Value == 2 then
if script.Parent.Text == "Time Left: 225" or script.Parent.Text == "Time Left: 224" then
game.Lighting.NTFTP:Clone().Parent = game.Workspace
game.Workspace.Audio.NTF:Play()
game.Lighting.AntiAFKB... | 131622 | ||||||||
1 | What is printing for and the point of it? | 984384728 | RebornedSnoop | 170 | 2019-11-15 12:33:22 | <p>Like when I do : Print(something)</p>
<p>It prints a message but what is the point of printing it?</p>
| 90044 | 1 | 83490 | 1 | 189846200 | Lazarix9 | 245 | 2019-11-15 16:12:41 | <p>its for debugging so you can put it under every line to see what doesnt execute</p>
|
0 | Why does a script come and say require(5543277991) script:Destroy()? | 1098704750 | Trampyling | 36 | 2020-08-29 15:11:02 | <pre class='brush: lua'>require(5543277991)
script:Destroy()
</pre>
| 112355 | 3 | 103179 | 0 | 631603904 | BestCreativeBoy | 1395 | 2020-08-29 15:32:31 | <p>It looks like it's a free model script and you are most likely to get Malware (not Virus). You might have, unintentional GUI appearing randomly on your screen.</p>
<p>I saw in comments, and found out you didn't know where the script is.
The simple thing :
Press Ctrl + Shift + F</p>
<p>Then a Find UI will appear. Jus... |
0 | How do you make it so when a player gets a kill they grow and when the die they shrink? | 1835598251 | ItsSENNOX | 0 | 2022-11-13 21:03:14 | <p>How do you make it so when a player gets a kill they grow and when the die they shrink</p>
| 132270 | ||||||||
0 | Anyway to Find Who Clicked a SurfaceGui While Still Having it Visible to All? | 24056470 | Vescatur | 95 | 2014-04-30 03:44:51 | <p>Name kinda says it all. I've been told countless times to put it in the StarerGui to figure out who clicked it, but that just doesn't work for what I'm trying to do. I want EVERYONE to be able to see what they see, but I want to give a gear to only the person who clicked it. I'm having a lot of trouble figuring out ... | 3969 | ||||||||
0 | How do I make a textlabel change color when clicked? | 1196782326 | BACONBOX_MAN | 0 | 2023-01-23 01:59:23 | <p>The title isnt exactly what I cant do but its close. I want the text to progressively change from red to green over the RGB spectrum. I have tried but at the end it starts glitching and changes colors to light green and the green that I want. My current code is this</p>
<pre class='brush: lua'>local parts = script.P... | 132920 | ||||||||
0 | first loop only running and not the other loop??? (i woke up at 3AM, pls i need quick answers) | 1563294759 | CaIcuIati0n | 163 | 2020-08-01 09:01:05 | <p>In my game I need to tween stuff when you're close to the things, and the first loop is only running, not the other loop?</p>
<pre class='brush: lua'>local Player = game.Players.LocalPlayer
local CheckItem = require(script.CheckItem)
local Char = Player.CharacterAdded:Wait()
local TweenItem = require(script.TweenIte... | 110450 | ||||||||
2 | Why do I lose more value than what the script says to lose? | 345256394 | HeyItzDanniee | 252 | 2019-01-09 05:06:43 | <p>I have a gun, and it has an ammo value.
Everytime I shoot the gun, it works fine.. I have the max amount of ammo (15).
It shoots it all, then I reload and shoot it again, still, everything works.</p>
<p>But when I unequipt my gun, then I take it back, suddenly it shoots <strong>8</strong> bullets instead.
And its li... | 74116 | 1 | 69873 | 1 | 180784359 | oilsauce | 196 | 2019-01-09 11:31:27 | <p>I'm assuming the problem is, you're connecting the function that shoots the gun every time its equipped.
It should be an easy fix, let me explain.</p>
<pre class="brush: lua">script.Parent.Equipped:Connect(function()
out = true
idle:Play()
mouse.Button1Down:connect(function() -- connects the function to ... |
0 | what does the 2nd "part" represent in this script and what does the first one represent? | 12132870 | Prioxis | 673 | 2014-06-09 23:04:06 | <p>I'm making a script that will make npc's move from 1 position to the next one but I don't understand what the first part and 2nd part represent in this script? the npc moves to the first position but not the 2nd one</p>
<p>here's my script</p>
<pre class='brush: lua'>local part = game.Workspace.Part
game.Players.Loc... | 6439 | ||||||||
0 | Change the GUI transparency when you touch a part? | 650688567 | libaryman1 | 6 | 2022-11-09 05:21:41 | <p>Hi, I'm trying to make it where when the player touches a certain part it will change the GUI's transparency but it didn't work.</p>
<pre class='brush: lua'>local wall = workspace.wall
local frame = script.Parent.Parent.FRAME
if wall.Touched:Connect(onTouch) then
frame.Visible = 0.5
end
</pre>
<p>What do i do?</... | 132206 | 2 | 119413 | 0 | 433962773 | theking66hayday | 841 | 2022-11-09 05:36:20 | <p>Issue is <code>frame.visible</code> <code>visible</code> can only be set to <code>true or false</code> So your going to need to go to the property tab under frame and look for background. and there should be something on the lines called <code>BackgroundTransparency</code> you can use that in your script instead. (I... |
0 | How do I change the size of a part in just 1 direction? | 2955961 | Ross1397 | 25 | 2015-07-02 22:53:10 | <p>I'm trying to make it so that, when you change the size of a part with code, the part will only scale in the direction I want it so. This is similar to how the scale tool will only increase the size of a part in the direction that you drag it.</p>
<p>So far, this is the only code I have</p>
<pre class='brush: lua'>l... | 19234 | ||||||||
2 | Force a model to a specific position without collide? | 2933011 | Nickoakz | 231 | 2014-04-15 00:47:10 | <p>I have this car spawner with the car in game.ServerStorage.
The only problem is, that the MoveTo function does not move the car to the position to spawn it.</p>
<pre class='brush: lua'>ction GenerateCar()
--pcall(function() LastCar:Destroy() end)
script.Parent.Gen.BillboardGui.Frame.Visible=true
script.Parent.Gen.Bi... | 1371 | ||||||||
1 | How to add a Delay to a script? | 56667665 | bhob12 | 5 | 2014-02-25 22:35:14 | <p>Hey guys, I'm trying to delay something happening but it's not working very well ... can you help me?</p>
| 298 | ||||||||
0 | Model glitching when using :MoveTo? | 1073917569 | Puppy_lovertheawsome | 84 | 2023-03-29 10:28:31 | <p><strong>I am making an elevator</strong> and when I call the first <em>:MoveTo</em> it moves up about <strong>2-4 studs</strong> and then immediately continues the script and <strong>works flawlessly after.</strong> The reason I have a problem with this is that it <strong>teleports the player under the elevator</str... | 133248 | ||||||||
0 | Error: invalid argument #3 (string expected, got nil)? | 1883890415 | ImTooGoodFR | 0 | 2021-05-02 19:55:12 | <p>I get this error: invalid argument #3 (string expected, got nil). These are the scripts:</p>
<p>Server script:</p>
<pre class='brush: lua'>local rigs = game.Workspace.Rigs:GetChildren()
local event = game.ReplicatedStorage.RigTouched
for _, rig in pairs(rigs) do
rig.OpenGuiPart.ClickDetector.MouseClick:Connect(f... | 123040 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.