question_score
stringclasses
21 values
title
stringlengths
6
119
question_userid
stringlengths
4
10
question_user
stringlengths
3
20
question_user_score
stringclasses
496 values
question_datetime
stringdate
2014-02-01 23:57:31
2023-04-02 01:40:15
question
stringlengths
0
11k
question_id
stringlengths
1
6
answer_count
stringclasses
8 values
answer_id
stringlengths
0
6
answer_score
stringclasses
18 values
answer_userid
stringclasses
946 values
answer_user
stringclasses
963 values
answer_user_score
stringclasses
692 values
answer_datetime
stringlengths
0
19
answer
stringlengths
0
10.7k
0
How do I make an animated door that opens when you click a lever?
1615234129
ConorG234
39
2020-05-08 20:59:38
<p>I made a script but can't seem to get a script that works the closest I have gotten to making this script is here:</p> <pre class="brush: lua">script.Lever.ClickDetector if.clickdetector enabled opendoor = (90) </pre> <p>I am trying to get the door to slowly open around five seconds and to move 90 degrees.</p>
102419
1
94610
0
87531166
virushunter9
943
2020-05-08 21:21:19
<p>There are many different ways to animate doors, such as having 2 doors(one invisible, one visible), changing the door's position, or using hinges.</p> <p><a target="_blank" href="https://www.youtube.com/watch?v=f1BjsR-sfCY">Here</a> is a video by Model Creator that I believe will help you. It shows 5 different ways ...
0
How do i make my inventory save when leaving and rejoining?
134642503
jorrelnootje
0
2021-04-07 14:37:15
<p>I got an inventory in which your hotbar items are displayed and you can equip those through there. Now i need to get a script in which i can make sure the player keeps that inventory when he/she rejoins. I got a script for Wins &amp; Coins which are working right now. I dont understand how to save inventory slots th...
122118
0
Why is my Ray only detecting the baseplate and nothing else?
177437519
Sensei_Developer
298
2020-01-14 00:20:10
<p>So I was learning <code>RayCasting</code> and I came across an issue.</p> <pre class='brush: lua'>local mouse = game.Players.LocalPlayer:GetMouse() local ray = Ray.new(script.Parent.Handle.Position,Vector3.new(mouse.Hit.X,mouse.Hit.Y,mouse.Hit.Z)) mouse.Button1Down:Connect(function() local partThatHit = workspac...
93011
1
86040
1
710232008
SoftlockedUnderZero
586
2020-01-14 01:00:45
<p>You need a new ray every time you fire the event. Otherwise it will be using the same ray.</p> <pre class='brush: lua'>local mouse = game.Players.LocalPlayer:GetMouse() mouse.Button1Down:Connect(function() local ray = Ray.new(script.Parent.Handle.Position,Vector3.new(mouse.Hit.X,mouse.Hit.Y,mouse.Hit.Z)) loc...
0
I got an error 'Temp read failed' and I don't know how to fix it after researching. Help?
300319320
TheBeastMare
3
2022-06-24 01:00:50
<p>This simple equip script is giving off the error "Temp read failed" and I've never encountered this error before and I need help Script (line 9, at local itemp):</p> <pre class='brush: lua'>for i,v in pairs(player.Items:GetChildren()) do if not v.Equipped.Value then if player.Character:FindFirstC...
130488
0
How can I make a Touch event on a part that triggers once per hour?
95527589
VictorHero1
0
2021-09-14 00:50:47
<p>Hi, I need help making a type of Part that when you touch it, it will trigger an event that will add 1 point onto the leaderboard but you can only trigger that part once per hour and it will remember the touch event even when the player has left the server but the 1 hour counts down until its allowed to be triggered...
127423
0
How to stop a tool's idle animation after unequipping?
63359544
wesleytherobloxian
0
2022-11-24 03:18:45
<p>The idle animation does not stop after the tool is unequipped.</p> <p>This is what I have:</p> <pre class="brush: lua">local Screen local Tool = script.Parent local EquipAnimation = script.Parent.Equip local UnequipAnimation = script.Parent.Unequip local IdleAnimation = script.Parent.Idle Tool.Equipped:Connect(funct...
132360
0
How do I check if a player is not in the region anymore without using &quot;else&quot; because it won't work?
79662280
VelocityVH
6
2022-08-02 14:44:39
<pre class='brush: lua'>local region = Region3.new(Vector3.new(0,0,0), Vector3.new(182.25, 67, 101.75)) local player = game:GetService("Players") local part = Instance.new("Part") part.Anchored = true part.Size = region.Size part.Position = part.Position + Vector3.new(8.375, 24.25, 42.875) part.Parent = game.Workspace ...
131063
1
118402
0
57053468
aviel101
165
2022-08-02 15:50:37
<p>I would make a table storing players that got in the Region, and when you don't find those players anymore, it means that they left</p> <pre class='brush: lua'>local region = Region3.new(Vector3.new(0,0,0), Vector3.new(182.25, 67, 101.75)) local player = game:GetService("Players") local PlayersTable = {} local TempP...
0
How to force player to hold items?
88600083
ChainMailZombie
0
2017-12-22 17:03:25
<p>Hi guys, this is my first question and I am really new to scripting. How can I force a player to hold an item at all times? like they could switch items but could not hold nothing. Thanks for your help!</p> <p>EDIT:</p> <p>I have the code to do this, BUT removing the backpack means that I cant give players items in ...
50729
0
How I Will Clone One More Part??
71530978
enes223
312
2018-02-03 08:29:06
<p>When I Clone One More Part Other Cloned Part Is Getting Destroyed. Help Please!</p>
53074
0
Help with :SetPrimaryPartCFrame ?
37051323
Ashley_Phantom
372
2018-04-19 18:41:29
<p>Really rusty, trying to make a rotating model, using SetPrimaryPartCFrame, spent like 15 minutes like a neanderthal trying to figure out what's wrong, don't seem to find anything.</p> <p>Script outputs no errors, it's just that the model has been rotated only once in a wrong direction, has nothing to do with the "Ve...
57084
0
Why is this GUI not Tweening to the position?
50020197
Jephi
42
2016-06-20 14:48:11
<p>So the problem seems to be with line 10, the GUI doesn't seem to tween back to its original position when it's clicked again and I can't figure out why. There are no errors in the output.</p> <pre class='brush: lua'>local gui = script.Parent.Parent local hasClicked = false gui.Sizeout.MouseButton1Down:connect(functi...
31995
1
35082
1
37652173
DeveloperSolo
355
2016-06-20 15:39:48
<p>Roblox doesn't allow us to have the numbers be in decimals for the 2 close ones. the (0, 1, 1, 0) <em>1s represented</em> They can only allow us to use whole numbers.</p> <p>if anyone wants to jump/improve on that statement, please do</p> <p>To fix it, you can have {0, -2, 0.3, 0}. Having {-0.2, 0, 0.3, 0} would bri...
0
Money data gets reseted in studio sometimes??
1491184861
666_brithday
103
2023-02-13 22:59:46
<p><em>Issue my money datastore</em> sometimes when I am testing my game in studio I will notice my money disappears and resets to 0. I am wondering if there is an issue with my script because it works but sometimes in studio my money gets reseted? Also is this only an issue in studio or can this happen in a normal rob...
133068
0
How to check if a player held down the key or just pressed it?
702213653
Grazer022
128
2020-08-29 06:07:11
<p>so I’m doing a script, but i don’t know how to check if the player is holding or just pressed the key. I wanted to do a test script that checks it... but i don’t know how.</p> <pre class='brush: lua'>print(“player is holding down key”) print(“player pressed key”) </pre> <p>so what i wanna do is that when a certain k...
112337
1
103163
1
97840115
ahsan666666666666
264
2020-08-29 06:38:18
<p>So im not sure if you know how to use Inputs or not but i will show you a script and try to explain to my fullest on how it works:</p> <pre class='brush: lua'>local holding = false game:GetService("UserInputService").InputBegan:Connect(function(input, gameProcessedEvent) if gameProcessedEvent then return end ...
0
Is there a better way to put a script in ServerScriptService? [SOLVED]
42559900
andrewboy159
18
2016-07-15 02:12:02
<p>This is a Script inside game.Workspace:</p> <pre class='brush: lua'>game.Players.PlayerAdded:connect(function(Player) Player:WaitForChild("PlayerGui") local PlayerGui = Player.PlayerGui local AM = script.Admin AM.Parent = game.ServerScriptService AM.Disabled = false local c = script.Login:Clone() c.Parent = PlayerGu...
33160
0
I need Help To Make The Owner Big and no one else plz?
1630076174
TheStevenYt7758
13
2021-02-21 20:33:54
<h1>I Don't Know why dies does not work.. Also i am a newbie .-.</h1> <h1>script</h1> <p>local plr = Game.Workspace:FindFirstChild("TheStevenYt7758") &lt;----- Change The Name To Anyone Like You!</p> <p>local hum = plr:FindFirstChildWhichIsA("Humanoid") --I Think You Are Suppose To Add ~=nil Idk But I Am New.. D:</p> <...
120478
1
checked on a separate map, everything worked after I went to my map, bugs started right away???
1744613578
YTBrainBroYT
29
2021-04-25 08:34:02
<p><strong>Hello, I am a beginner game developer I take a lot of scripts from the Internet and this is no exception I took the script to the store, I checked it everything works, but when I went into my game, I got this error</strong></p> <p>ServerScriptService.LastEquipped:27: attempt to index nil with 'Clone'</p> <p>...
122781
0
How do you tween a text button when a button is clicked?
429720902
EmeraldRailYT
8
2019-12-18 00:18:45
<p>I would like the text button and a frame to stay on the scene until the button is clicked then I would like to have the button tweened off the scene. Like a play button to a new game.</p> <p>(Im very new to Lua coding)</p> <p>This is the code I have:</p> <pre class='brush: lua'>local player = game.Players.LocalPlaye...
91533
1
84746
0
33498583
roblox136393
32
2019-12-18 04:01:28
<p>when writing the...</p> <pre class='brush: lua'>object:TweenPosition(UDim2.new(-0.35, 0,0.35, 0)) </pre> <p>you forgot the numbers at the end, So it would look like this</p> <pre class='brush: lua'>object:TweenPosition(UDim2.new(-0.35, 0,0.35, 0),1,1,1,1) </pre>
2
How to disable Gui when player sits on seat??
433962773
theking66hayday
836
2023-01-10 15:37:06
<p>Hi I am wanting to remove some of the Gui when a player sits on a seat. There are no errors with the code. The code doesn't work either. JobChange is the Gui I am wanting to disable when the player sits in seat and re enable it when they aren't sitting in seat. Script:</p> <pre class='brush: lua'>local seat = script...
132798
2
119942
2
559514967
T3_MasterGamer
2127
2023-01-11 14:48:58
<p>Check if <a target="_blank" href="https://create.roblox.com/docs/reference/engine/classes/Seat#Occupant"><code>Seat.Occupant</code></a> has a value when it is changed.</p> <pre class='brush: lua'>local seat = script.Parent local Players = game:GetService("Players") local previousHumanoid seat:GetPropertyChangedSigna...
0
Can I still use lighting rather than ReplicatedStorage?
175157011
RyanTheLion911
194
2019-08-20 22:03:07
<p>I am currently making a game which will require me to use a lot of tools. Is storing all the tools in lighting still an idea or is it worth the investment of time to work out how to use ReplicatedStorage? It doesn't bug me storing them in lighting but it is just whether it is best to learn ReplicatedStorage for the ...
86253
1
79993
3
14277028
rodrigo455
578
2019-08-20 22:17:05
<p>I'd say use each service provided to you for its own purpose. Lighting is meant to be where visual options are stored, such as bloom, blur, sun-rays, etcetera.</p> <p>Do not use Lighting for storage. Its use is not intended for storage.</p> <p>Use either Replicated<strong>Storage</strong> or Server<strong>Storage</s...
0
Error cloning a model? &quot; Position is not a valid member of model&quot;
631681851
SyncSim
4
2020-05-05 17:36:17
<p>When I am trying to clone a model using the script below it brings up an error saying "Position is not a valid member of model" pointing an arrow at line 4.</p> <pre class='brush: lua'>while true do local noob = game.ServerStorage.Noob:Clone() noob.Parent = game.Workspace noob.Positio...
102009
0
Why does this script work for animations and walk speed?
470974064
2mania
2
2022-09-10 17:49:42
<p>I have not done a lot of scripting with animations so I just wanted to ask how and why this script works (Pls break down the script) ~~~~~~~~~~~~~~~~~ local UIS = game:GetService('UserInputService') local Player = game.Players.LocalPlayer local Character = Player.Character</p> <p>UIS.InputBegan:connect(function(inpu...
131576
0
Trying to make a shovel that digs out terrain?
1814440040
Louscascicly
0
2020-11-21 22:28:29
<p>I'm attempting to make a game based on the Eastern Front, so I'm making a shovel that will allow you to dig out trenches, foxholes, ditches, etc. However, my code is not working.</p> <p>The explosion just keeps inserting at the center of the map, and nowhere else.</p> <p>Please Help!</p> <p>Client Script:</p> <pre c...
116126
0
How can I make a counter go down everytime someone jumps?
424448718
Sxribbly
16
2022-07-30 19:09:30
<p>I want to make a counter that has a specific amount of jumps subtract 1 every time the player jumps. How can I do this?</p>
131017
1
118373
0
953256806
SEAN_YT213
104
2022-08-01 10:52:23
<p>You can use a number value and subtract it by 1 every time the player jumps.</p> <pre class='brush: lua'>Humanoid:GetPropertyChangedSignal("Jump"):Connect(function() YourValue.Value -= 1 end) </pre>
0
why i cannot change my stats value?
335945120
Blackbooks
10
2020-08-01 12:30:38
<p>I decided to make a rank system for my games. But i cannot change the Kepintaran.Value. Is it because it is a string or something else?</p> <pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(player) game.Players[player.Name]:WaitForChild("leaderstats") game:GetService("Players") local kepi...
110460
0
How would you clone a local script to a backpack?
39173140
BloxAdventure
0
2014-04-15 04:43:41
<p>I'm using something like this: local debounce = false</p> <p>function OnTouch(hit) if hit.Parent == nil then return end a = hit.Parent:FindFirstChild("Humanoid") if a ~= nil then</p> <p>end end script.Parent.Touched:connect(OnTouch)</p>
1520
0
Laser pointer dosent work?
74686131
kristupas12344
26
2021-05-03 07:07:27
<p>I am trying to make a laser whitch would stop at certain point were it is blocked by a part.</p> <pre class='brush: lua'>local origin = script.Parent.Position local direction = workspace.HUB local params = RaycastParams.new() local result = workspace:Raycast(origin, direction) if result then local distance = (or...
123053
3
Module Script Help?
15619704
NinjoOnline
1146
2015-12-31 10:17:23
<p>I have a brief idea of what they are and how to use, but I don't know how to properly function them. I have a normal ServerScript, and I want it to call the the code in ModuleScript, for example <strong>ServerScript</strong></p> <pre class='brush: lua'>-- ModuleScriptFunction </pre> <p>and so if you understand I jus...
25854
1
29442
6
103306590
How2Script
105
2015-12-31 11:02:16
<p><strong>Modules!</strong></p> <p>They're a wonderful thing. They give us the ability to create our own libraries in an organized fashion, or just to run arbitrary code from a <em>new script environment</em>.</p> <p><strong>Rules?</strong></p> <p>One of the beautiful things about modules, is their simplicity. They fu...
0
How do you get helmet on the head?
73735943
Lengthtracked
5
2017-07-17 03:54:58
<p>So I've gotten a script, that clones the helmet onto the ground but it doesn't put it on the head. I've made a invisible head below the helmet so it knows where to put it. I'm not too sure on how to edit it though...</p> <p>Heres the helmet model: https://www.roblox.com/library/921223663/unnamed</p> <p>Thank you ina...
45389
0
Ball Constraint won't work on moving brick's runservice i need some help please?
147178737
Daddy_Francisco
2
2023-03-16 17:43:13
<p>my moving road won't convey the ragdoll bodies using ball constraint why it won't move together with the road after they fell out of the car??</p> <p>Ragdoll system</p> <pre class='brush: lua'>local CollisionsOn = false local ogparent = script.Parent script.Parent = game:GetService("ServerScriptService") game.Player...
133201
1
How to fix GUI input keycode changes its visiblility?
331809274
TechModel
118
2021-07-24 00:51:18
<p>This is a local script that is in parent with with a frame and now I wanted to add a keyinput that if I press M then it closes or opens the GUI, but it doesnt work. The mouse button click works fine but the key input doesn't.</p> <pre class='brush: lua'>local map = script.Parent.Parent.MinimapFrame local button = sc...
125649
2
114323
1
676326715
WINDOWS10XPRO
437
2021-07-24 01:07:09
<h1>try this</h1> <pre class='brush: lua'>local map = script.Parent.Parent:WaitForChild("MinimapFrame") local button = script.Parent button.MouseButton1Click:Connect(function() if map.Visible == true then map.Visible = false button.Text = "Open Map" else map.Visible = true button...
0
Is it currently possible to control a sphere like a player, but with the sphere's physics?
34731084
Zombie_Panic
13
2018-05-16 05:07:30
<p>I've been trying all of yesterday and today to try and do this, but I can't think of any way to make this work. Anyone know anything I don't?</p>
58488
1
How to get a load animation who is stopped?
358523061
Geohad0926
5
2020-09-14 13:07:17
<p>Hello, I have did a stand and walk scrip:</p> <pre class='brush: lua'>anim = humanoid:GetPlayingAnimationTracks() for i, track in pairs (anim) do if track. Name == "Stand" then track:Stop() walk = Humanoid:LoadAnimation(script.Parent.Walk) -- The problem is here Walk:Play() end end for i, track in pairs (anim) do if...
113157
0
How do I make a train throttle system?
615211738
ProvingTrottle
18
2020-08-01 12:54:56
<p>So, I tried making a train throttle system for my new train game. I'm trying to make the train keep at the speed that you set it after you stopped hitting "W" or "S". Basically, no automatic deceleration.</p> <p>I tried this, but the train just flies away!</p> <p>(It's a server script placed inside the vehicleseat)<...
110462
0
Script not working and dont know why( I think GetService Players but have no clue why)?
562830869
Bloxerventure
5
2021-12-23 02:44:46
<p>local mouse = game:GetService('Players').LocalPlayer:GetMouse() local players = game:GetService("Players")</p> <p>mouse.Button1Down:Connect(function() print("player pressed mouse down")</p> <p>end)</p>
128405
0
Global variable in a local script not working in regular script in Workspace?
37473089
daphnie252
35
2017-01-19 00:58:27
<p>Ok. So I want to make a fighting arena where 2 players can click a button and be assigned player one or player two. To get who clicked the button I used this local script:</p> <pre class='brush: lua'>wait(.1) --Wait for player to load in player = game.Players.LocalPlayer --Get the local player _G.player1 = nil -...
39167
1
Detect if a player press a key when the tool is equipped?
27820182
ScriptAbyss
10
2017-07-12 23:56:39
<p>Hello I would like to make a skill for a game only work when the tool is equipped so I wrote the following script for example and it's not working. Any ideas on how to fix it ?</p> <pre class='brush: lua'>local uis = game:GetService('UserInputService') local plr = game.Players.LocalPlayer script.Disabled = false scr...
45197
0
How do I check if a value is greater than or equal to?
232623022
2_MMZ
1059
2021-05-16 23:23:49
<p>Hey! I'm currently in the process of making a tycoon game. When the player buys the seating, for 5$, it will take away value (which is something I don't know how to do yet). There's an IntValue inside of the money text.</p> <p>ProximityPrompt:</p> <pre class="brush: lua">local remEvent = game.ReplicatedStorage.Remot...
123507
1
112604
1
2102786
jundell
106
2021-05-17 15:40:53
<p>The greater than or equal to sign is <strong>>=</strong>, which I see you are already using in your script. I recommend you take a look at <a target="_blank" href="https://developer.roblox.com/en-us/articles/Operators#relational">this page</a> if you simply want to know operators, although they don’t seem to be your...
1
How would I unanchor all models in my game?
279107138
Latenci12
14
2020-03-02 01:24:54
<p>I am trying to write a script that unanchors all models in my game. Here is my current code:</p> <pre class='brush: lua'>for _,unanchor in pairs(game.Workspace:GetChildren()) do if unanchor:IsA("Model") then unanchor.Anchored = false end end </pre>
95453
2
88182
1
80348782
XxOPGUYxX1234567
221
2020-03-02 02:55:51
<p>You cant anchor a model so we would go through all its children instead</p> <pre class='brush: lua'>for _,unanchor in pairs(game.Workspace:GetChildren()) do if unanchor:IsA("Model") then for e, r in pairs(unanchor:GetChildren()) do --goes through the models children if r:IsA("BasePart") then --checks...
0
How do i get rounded parts?
22745426
Teeter11
281
2015-05-03 08:54:35
<p>The player has round body parts, how can i make a regular part be like this?</p>
17237
2
20626
2
14357591
Perci1
4988
2015-05-03 15:02:19
<p>If you insert a <a target="_blank" href="http://wiki.roblox.com/index.php?title=SpecialMesh">SpecialMesh</a> into a Part, you can edit the MeshType property to make a brick look like a Head, Torso, Sphere, etc.</p> <p>For custom shapes, you can use <a target="_blank" href="http://wiki.roblox.com/index.php?title=Soli...
0
How to Tween Transparency of a Part?
295750059
SuperLittleAdmin
257
2020-08-16 03:47:39
<pre class='brush: lua'>local property = { Position = Vector3.new(-22.5, 0.5, -13.5) } local property2 = { Position = Vector3.new(0.041, -0.305, 0.064) } local tweenService = game:GetService("TweenService") local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out) local tween = tweenSe...
111471
1
102308
0
1228505527
cactz
15
2020-08-16 06:09:52
<p>You did put Argument 4 in :Create</p> <pre class='brush: lua'>local property = { Position = Vector3.new(-22.5, 0.5, -13.5); Transparency = 1 } local property2 = { Position = Vector3.new(0.041, -0.305, 0.064); Transparency = 0 } local tweenService = game:GetService("TweenService") local tweenInfo = Tw...
0
Disabling a GUI while opening another?
18976509
maxi66666
6
2018-08-08 21:43:45
<p>So I have 2 GUI's, a shop GUI and a XP gui. The problem is when I'm entering the shopGUI(It's activated by hitting a brick) the XP Gui is blocking the view of the shop. My question is, what script would be able to disable the "XP GUI" when stepping on the "shopbrick", and when pressing the closebutton on the shop, i...
64987
0
The touched event in my explosion is not working?
460046422
Kaif_Mohamed
5
2022-07-16 14:12:03
<p>If you press "T" ( ik the method is deprecated ), it spawns a red ball; if another dummy or player touches it, it spawns a big black explosion where the red ball used to be the red ball gets destroyed. Everything that touches the explosion except your own character model just gets destroyed. the problem is that the ...
130820
0
Why doesn't the text transparency of my textbox change back to 0 after tween to 1?
617276212
kingblaze_1000
310
2020-05-30 14:18:48
<p>I made a remote event which fully functions as it's meant to but every time it happens It doesn't change the text transparency back to 0 how it should do. Here is my script:</p> <pre class='brush: lua'>local RS = game:GetService("ReplicatedStorage") local eventsFolder = RS:WaitForChild("RemoteEvents") local xpEvent ...
104842
2
96688
1
87736336
exxtremestuffs
345
2020-05-30 14:22:55
<p>Keep in mind, Tweens do not yield the thread until they are done. This means that if you want to wait for the tween to complete, you have to manually add a wait. Since your tween runs for 1 second, you can fix this with a simple</p> <pre class='brush: lua'>tween:Play() wait(1) </pre> <p><strong>If this answer was he...
0
Homing Projectile keeps teleporting towards the victim's body when I want It to glide towards It (?)
1961959172
imnotaguest1121
287
2022-09-12 00:50:32
<p>As the titles says, I made a tool that clones the handle, and what the cloned handle does Is that It will move In a straight line, If It touches someone, It will damage them to 1-5. And after a while It will home In towards the victim torso, dealing 10 damage. The problem Is that the homing projectile keeps teleport...
131600
0
Why won't my join log/chat log script work in the real game?
86745980
Sergiomontani10
236
2018-08-03 06:57:59
<p>basicly when you join it puts whjo joins and what they said in the discord channels. It works in studio and studio testing with the server but not the actualy real game for some reason.</p> <p>Discord API</p> <pre class='brush: lua'>--[[ Discord - Roblox hookup ConfidentCoding Do not touch this script. -...
64504
1
62563
0
185845822
Astralyst
389
2018-08-03 07:26:48
<p>Requests from discordapp.com is blocked, to fix:</p> <p>Simply replace https://discordapp.com in your webhook url to https://discord.osyr.is</p> <p>^ this is a proxy server made by Osyris solely for the purpose of discord proxy.</p> <p>Also, your webhook requests WILL also get blocked if you abuse and go over the AP...
0
Discord embed not sending (error 400)?
264614164
ParticularlyPenguin
71
2020-09-14 18:51:52
<p>Hey there! My Discord embed hasn't been sending, and I don't know why.</p> <p>It gave me the error "HTTP 400 (Bad Request)", and I don't know what's wrong with my code! I've made sure HTTP services are on, and I've double checked my code, but I can't find what's wrong!</p> <p>My code:</p> <pre class='brush: lua'>fun...
113165
1
103897
1
1283216314
Harry_TheKing1
165
2020-09-14 23:58:11
<p>Did A Bit Of Messing Around And Came Up With This:</p> <pre class='brush: lua'>function sendWebhook(user, rank) local data ={ ["embeds"] = {{ ["color"] = 5368, ["title"] = "USER PROMOTED", ["description"] = user.." has been promoted to "..rank.."!", ["fields"] = { } }} } local newdata = http:JSONEncode(data) http:Po...
1
How can I make a raycast continue through a part so I can get the opposite end from that part?
1153559731
KeyGua2_0
6
2023-03-19 17:50:54
<p>I've tried many things, but none seem to work the way I like.</p> <p>For example; the part is too far away from the actual opposite end of that part based of the raycast, and all that.</p> <p>How could I do this? (I am making an entry and exit wound for my game)</p>
133214
0
I'm getting &quot;attempt to index nil with Instance&quot; can someone help?
417031766
LiamQ926
7
2022-07-08 01:02:43
<pre class='brush: lua'>local Dictionary = require(script.Dictionary) local DictionaryHandler = {} function DictionaryHandler.find(Player, action) return Dictionary[action][Player] --Error end function DictionaryHandler.add(Player, action) if not Dictionary[action][Player] then Dictionary[action][Playe...
130690
0
&quot;Handle is not a valid member of tool&quot; - Error????
56781258
GoodkidMad
14
2019-09-17 21:22:38
<p>I have two weapons I've made &amp; scripted using the same fashion for both. One works completely fine (M1911) &amp; the other (Ak-47) doesn't work at all. Now I know its because of this one error that keeps popping up, "Handle is not a valid member of tool"? I have a handle inside of my tool exactly like my M1911 w...
87600
1
81151
0
20111088
royaltoe
5144
2019-09-17 23:04:24
<p>The script was loading before the handle loaded, wait for the handle to load:</p> <pre class='brush: lua'>local handle = tool:WaitForChild("Handle") </pre>
0
What is this &quot;inFECtion&quot; script? I don't remember using any free models...
86745980
Sergiomontani10
236
2017-08-26 18:50:08
<p>I was simply building and found some script callled "inFECtion" I opened to find there was a script that was simply a virus and have no idea how to remove it. I NEVER used any free models in my game. I have no idea what to do ;-;</p>
47292
2
47876
0
378753579
T0XN
276
2017-08-26 19:09:36
<p>Try resetting the place to the version from before you noticed the "virus".</p> <ol> <li><p>Go the "Develop" page on ROBLOX</p></li> <li><p>Access the PLACE configuration by clicking on the gearbox icon beside your place</p></li> <li><p>Click on the "Version History" tab</p></li> <li><p>Find the correct version by l...
0
How can we make the script save forever?
233224360
mastercheeseit
58
2020-09-21 13:40:14
<p>How do we make a script save for every time for example: Just like in tycoon we get money we upgrade and when we leave the server and join back later. we want the tycoon to be saved. we don't want to restart again we want to have our data saved. But i don't really understand how to do so can someone explain how we c...
113448
1
How to pause and unpause animation based on Character Movement?
96373787
hattim00
80
2022-07-11 01:10:07
<p>I want a script that uses crouching animation, and when pressing a key it enables (but animation speed is 0) when character is moving animation speed is 1, and when character stops moving animation speed is 0 again. If they press the hotkey again, they are back to walking.</p> <p>I have a script but there’s a proble...
130740
0
What in the world are inFECtion viruses in Roblox Studio?
271894121
Jigglywigglypuffy
2
2019-08-22 01:33:58
<p>I know someone asked this five years ago, but I'm still confused. I found one in my game earlier while trying to make a story-like game. I had around three free models in my game, and had inserted an extra for a joke. (The joke was a model of a chat bubble, the others that I kept were a tree, a bench, and a real cha...
86316
2
80046
1
253744762
OswinFalls
69
2019-08-22 02:11:21
<p>From what I've seen, inFECtion scripts usually find all the models in the Workspace and clone themselves into them, making the script rampant in your game, or they may delete something in your game while testing. I've used free models before and have had this happen to me as well, but the damage done has never been ...
0
Roblox Point System?
10461423
seanconnoll
9
2014-04-21 20:38:37
<p>I was just reading the Roblox wiki and I was wondering if in order to figure out how many points are available in your game you just type "GetAwardablePoints()" into the command bar in Studio or if you have to put it in a script and run the game.</p>
3188
1
How to fix inconsistent camera CFrame?
110479824
iraklisonic354
13
2022-09-21 13:25:50
<p>I am trying to set the camera of the game on a fixed position and rotate around itself. The problem is every time I run the game the camera either ends up in the position I set or some other position which is the same but the y value is a random negative number instead of 10. The rotation works fine but I can’t unde...
131687
0
How to execute a Sell gui for items in a players inventory?
494292273
DrBeCool
2
2021-05-04 22:24:03
<p>So I have been able to make a shop where i sell items, the items get send to the inventory which i made a datasave for. Meaning whenever a player joins his data, inventory is the same. The matter i havent been able to fix yet is how do i make a selling feature of certain items inside the inventory?</p> <p>My thought...
123102
0
How to make the Handles interactive with Scripts?
1288500822
Finty_james
53
2021-04-06 13:44:18
<p>Im trying to make the Handle Instance Interactive, I set up the script, put on the events, but now... I don't know What to do with those Events. Can someone Help me? My code is here:</p> <pre class='brush: lua'>Handle = game.StarterGui.ScreenGui.ArcHandles Handle.MouseDrag:Connect(function() -- This is the part ...
122072
1
Game isnt choosing a random player?
1251627904
CodeWon
176
2021-02-17 01:27:43
<p>So I was making a script to choose a random player, but it wasn't working.</p> <pre class='brush: lua'>while wait(120) do if game.Players:GetChildren() &gt; 1 then local randomPlayer = game.Players:GetPlayers() [math.random(2, #game.Players:GetPlayers())] print(randomPlayer.Name) end ...
120264
1
109714
0
158811
TGazza
994
2021-02-17 05:19:26
<p>Almost there!, Try this:</p> <pre class='brush: lua'>while wait(10) do if #game.Players:GetChildren() &gt; 1 then local Players = game.Players:GetPlayers() randomPlayer = Players [math.random(1, #Players )] print(randomPlayer.Name) end end </pre>
0
How can I switch players who have been locked to first person to third person without killing them?
72266674
Dekadrachm
50
2016-07-15 23:24:35
<p>Hello, I am working on a game, and during the break I want players to be third person for the feel of freedom and the ease of being able to use my gui. Currently, I tell the game to lock first person on the players when a match starts so that way there visibility is limited and more immersive. Since these conditions...
33197
0
How would you make a product to skip more than one stage? (Obby)
1151614368
ssj_ase
0
2022-11-23 13:26:17
<p>Hello, I'm making a obby type game with a shop gui where you can buy products to skip either one, five or ten stages. The problem is the script to skip one stage works but it doesn't work to skip 5 stages. My local scripts to prompt the purchase to the player work but for some reason when I try to add more than one ...
132351
0
I'm currently fixing an audio visualizer and have no idea why it is not working?
40621453
JerkDerekThe14alt
11
2022-05-02 18:24:58
<pre class='brush: lua'>local part = workspace:FindFirstChild("Set") -- Part which will be visualised local sizex = part.Size.X -- Unnecessary if using a fixed value for sizex local sizez = part.Size.Z -- Unnecessary if using a fixed value for sizey local positiony = part.Position.Y -- Unnecessary if using a fixed valu...
129893
0
My sprint script does not function, and returns no output?
461225349
DetectiveRaie
193
2020-05-29 06:49:41
<p><strong>Breakdown:</strong> This script is designed for my upcoming RPG, and I am having an error, I spawn with 16 speed like normal, and how I would like. But, when I press shift my speed does not increase, and if it does its not by the correct increments.</p> <p><strong>Script:</strong></p> <pre class='brush: lua'...
104712
0
How to change player body proportions?
451472157
KotyOceloty
25
2021-01-23 19:07:19
<p>my friend makes a game for the hardy and recently asked how it can be done:</p> <p>the player defaults Y is "6139.23". When their height decreases, the player will decrease their height (that is, it will start to flatten)</p> <p>I didn't know myself, so I decided to find out.That's all he told me. I don't know anyth...
119093
2
108825
0
336378476
seanieplays
88
2021-01-24 01:49:18
<p>If you want to do it for r6 rigs, it is impossible if not and if you wanna do it via script:</p> <pre class='brush: lua'>local size = 69 --lol Humanoid.HeadScale = size Humanoid.BodyDepthScale = size Humanoid.BodyWidthScale = size Humanoid.BodyHeightScale = size </pre> <p>if you wanna do it normally check the post a...
0
What is the point of ResetOnSpawn?
151545165
RiskoZoSlovenska
378
2019-11-06 19:31:45
<p>So I have been working around GUIs for some time, and I noticed that ScreenGuis (and SurfaceGuis) have a ResetOnSpawn property. I know what it does.</p> <p>When I work with GUIs, I always first reference all the PlayerGui contents and then work with the references. It's much quicker and cleaner than having to use <c...
89697
0
How to move parts to or near a players position?
148007899
TheJeffyBrothers69
2
2020-08-01 01:17:59
<p>So I know basic scripting and I'm practising to script by making an admin gui and one of the options I want on it is a "Jail Player" option, but how do teleport the jail to player so that the target is trapped inside and cant get out.</p>
110432
1
101449
1
131470756
Pupppy44
458
2020-08-01 01:22:02
<p>You can move their HumanoidRootPart.</p> <pre class='brush: lua'>local Dummy = workspace:WaitForChild("Dummy") -- There's a dummy in the workspace for example Dummy.HumanoidRootPart.CFrame = CFrame.new(workspace.Part.Position) -- We're changing the RootPart's CFrame to a Part (in workspace)'s Position </pre>
0
attempt to index field 'PrimaryPart' (a nil value)?
139792234
appleprogamer_59
29
2018-12-25 23:56:35
<p>Hello! So I'm trying to make a keycard door that opens but when I touch it with my keycard it gives my the error in the title. Here is my code:</p> <pre class="brush: lua">local db= false local open = script.Parent.Parent.Open script.Parent.Parent.Trigger.Touched:Connect(function(p) if db == false then d...
72961
1
68933
1
66822893
green271
635
2018-12-26 00:42:51
<h3>The Error</h3> <p>The error is thrown because you have tried to modify/access the <code>PrimaryPart</code> of the model. Since there is none, the error says that it is a <code>nil</code> value (no value).</p> <h3>Solution</h3> <p>The error is present in both Door1 and Door2. Make sure they are models, as <code>Prim...
0
Saving other values than leaderstats?
33666987
XDgirl909090
143
2020-05-06 14:52:34
<p>Should I be able to save values other than leaderstats? I have a boolean directly inside the player in Players. I also have leaderstats. My leaderstats save correctly, however my boolean doesn't save. I am using the same method on both, and it never gives off any errors. (I am using GetAsync and SetAsync)</p> <pre c...
102116
1
94363
1
206535752
LoveSpeaksOutTruth
848
2020-05-06 15:08:14
<p>Yeah, you can definitely save a bool value in a player. You can add it as another parameter in <code>SetAsync</code>.</p> <p>Example:</p> <pre class='brush: lua'>DataStore:SetAsync(player.UserId, true) </pre>
0
Attempted to Index nil With Character?
473246617
Error_404isGAMING
30
2020-09-16 18:36:29
<p>I am trying to make an animation when you pick up stuff but it keeps saying:</p> <p>Workspace.Part.Script:2: attempt to index nil with 'Character'</p> <pre class='brush: lua'>script.Parent.ClickDetector.MouseClick:Connect(function() local ani = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Par...
113233
1
103963
1
468944525
CreationNation1
368
2020-09-16 21:54:46
<p>Local player cannot be used in Server Sided script. However, you can utilize the first parameter of a click which is the player who clicked it. Try this out:</p> <pre class='brush: lua'>script.Parent.ClickDetector.MouseClick:Connect(function(plr) local ani = plr.Character.Humanoid:LoadAnimation(script.Parent.Pic...
0
[Solved]Why when I clone this part the code doesn't work inside of it?
104275128
PurpleSouley1234
19
2021-02-23 22:05:27
<p>So basically what I want to do is to make a script that will duplicate a part all around my map. But the problem is that the part duplicates but the script inside the part doesn't work.</p> <p>Edit1: Main Script is located in workspace</p> <p><strong>Main Script to duplicate parts</strong></p> <pre class='brush: lua...
120578
1
109939
0
14277028
rodrigo455
558
2021-02-24 00:24:09
<p>There is no point in even creating a new script instance every single time. You can just hook it up to when you create the part.</p> <p>Another thing you did wrong is that you are using the <a target="_blank" href="https://developer.roblox.com/en-us/api-reference/event/Players/PlayerAdded">PlayerAdded</a> event to g...
1
Why when I die, the walkspeed does not save?
1527823663
kickoff127
103
2021-01-12 13:08:28
<p>So I made a script saying if you have one coin, walkspeed is = 21</p> <pre class='brush: lua'> local players = game.Players.LocalPlayer script.Parent.MouseButton1Click:Connect(function(Click) if players.leaderstats.Coins.Value &gt;= 1 then players.leaderstats.Coins.Value = players.leaderst...
118587
2
108475
0
377679694
TheB4dComputer
100
2021-01-12 13:19:08
<p>You could save the value of the walkspeed somewhere other than the script and have another script load the walkspeed. You could also go to extremes and use datastores to save their data even when they leave the game (Save the walkspeed value in the player, not the character).</p> <p>Btw, even with the new improvemen...
0
GetDescendants not getting all descendants?
287206263
Dr_Smartypants123
66
2021-07-22 22:39:02
<p>I have a script that needs to find all of the descendants of the workspace using the workspace:GetDescendants() command. For some reason, when I use a server script, the command only gives me some of the workspace's descendants. HOWEVER, when I tried it with a local script, workspace:GetDescendants() returned all of...
125607
0
How do i find a players character using the touched event?
61232860
Jumbuu
110
2016-06-22 00:04:32
<p>is there a special parameter i have to use? this sint a request, i just need some insight</p>
32057
0
Join a Roblox Server using PlaceID and JobID?
2933011
Nickoakz
231
2016-04-19 07:31:35
<p>I will be able to get a servers PlaceID and JobID but how do I put that into a url to join that specific server by using the JobId?</p>
29732
0
Destroy not a valid member of a folder??
2074381
CrispyBrix
113
2016-04-30 16:07:31
<p>It's for a basic inventory system but it won't destroy the Folder when you run out of (insert object here) Here's the code</p> <pre class='brush: lua'>local item = script.Parent.Parent.Item local quan = script.Parent.Parent.Quantity local player = game.Players.LocalPlayer script.Parent.MouseButton1Down:connect(funct...
30126
1
33493
0
39250676
ScriptGuider
5533
2016-04-30 16:28:33
<p>I'm sure this will make you facepalm, but on <code>line 12</code> you spelled "<em>Destroy"</em> as "<em>Destory</em>". Change that, and your code should be working just fine:</p> <pre class='brush: lua'>local item = script.Parent.Parent.Item local quan = script.Parent.Parent.Quantity local player = game.Players.Loc...
0
How to copy your own game? Roblox Studio
146100287
Gigaset39
111
2022-08-24 12:53:33
<p>Hi, i created a game, but i want to make a copy of it, so i can have the same game,but whit little changes, what i need to do? also,if i have a copy of my own game,i i can get in trouble because of it?</p>
131341
1
118633
1
433962773
theking66hayday
841
2022-08-24 13:32:45
<p>To copy your Roblox game there are 2 ways. 1. go to file in Roblox Studio it is in the left hand corner then choose save to files save as----- 2. Go to file again and choose publish to Roblox as ---- When you do it this way you would have to choose a game you made to overwrite it.</p> <p>--Also you can't get in trou...
1
How to reload saved character customization after death?
109079013
LoyalQuickAngel
29
2021-04-05 15:11:09
<p>Hi, just joined here. Sorry in advance if i made a mistake in this post.</p> <p>I have created a character customization script, it works. Everything works perfectly except that when the character died, it didn't reload the user's saved customization. I have searched here and there and it pinpoints toward telling me...
122034
1
111163
0
505976491
lincol92008
41
2021-04-05 17:13:46
<p>Hello! There is actually a special folder in Roblox that runs all of the scripts inside every time the player's character spawns. You kind find it under Starter Player ==> Starter Character Scripts.</p> <p><a target="_blank" href="https://gyazo.com/d4e6f344a08442f41c575ea035b39a17">Screenshot</a></p> <p>Best of luck...
0
Any way to lower receiving server/client lag?
128787838
jabberbomb
0
2020-07-31 22:05:38
<p>Does anyone know a good way to lower server-client lag. Right now my receiving is extremely high, peaking at 180 KB/s.</p> <p>Right now I have a math code controlling the TargetAngle of 50-100+ instances of HingeConstraints. I can't seem to find a way to lower it the network lag. I have already set network ownership...
110412
0
How do I fix this model positions with a script?
1400234436
KoalaKo_XD
27
2023-03-07 18:41:59
<p>When I clone a model and change its position to a part's, the pivot point is at the part but not the model, how do i fix?</p> <p>Here is my script:</p> <pre class='brush: lua'>local RS = game:GetService("ReplicatedStorage") local enemiesFolder = RS.Enemies local enemySpawn = workspace.EnemySpawns:GetChildren() local...
133154
1
Is there a way to use parameters in ContextActionService?
1251627904
CodeWon
121
2021-05-03 21:03:51
<p>I tried to make a script using context action service, but the function has a parameter, is there a way to get around this?</p> <pre class='brush: lua'>function openPhone(player) -- This is the function that will run local playerGui = player:WaitForChild("PlayerGui") local frame = playerGui.PhoneMenuGui.Main...
123065
1
112142
1
121672610
Speedmask
540
2021-05-03 23:50:40
<p>sure. in lua, you can always wrap it with an anonymous function when you get a parameter issue like this.</p> <pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(player) local localPlayer = player if UserInputService.KeyboardEnabled then ContextActionService:BindAction( "openAnd...
0
My object tweens wired?
213384280
WindowsXPisathing
2
2021-01-14 12:12:37
<p>So I want my lever to go up and down but it twists then goes up and down what is the problem here</p> <p>Vid link: https://streamable.com/cejhwu script:</p> <pre class='brush: lua'>local bar = script.Parent.Bar local cd = script.Parent.Bar.ClickDetector local ts = game:GetService("TweenService") local ti = TweenInfo...
118677
0
(FIXED) Anyway to calculate velocity before impact?
1565853299
KneeDeepInTheDoot
2
2021-02-23 14:09:26
<p>Sorry about the request post, I didn't get the rules clear.</p> <p>So, as you already know from my last post, I'm trying to play a sound when an object is hit hard. This is my code sample, and it didn't work.</p> <pre class='brush: lua'>local soundvel = 10 if script.Parent.Velocity.Magnitude &gt;= soundvel then ...
120561
2
Is the new Player instance will overwrite the old Player everytime PlayerAdded fired?
404984521
Block_manvn
395
2020-03-18 01:48:26
<p>I don't know how to explain this well but I will try my best.</p> <p>I have this example script:</p> <pre class='brush: lua'>game:GetService("Players").PlayerAdded:Connect(function(player) game:GetService("Workspace").Part.Touched:Connect(function(hit) local Money = player.leaderstats.Money Money...
96331
0
How to add custom data files to Roblox DataModel?
187009239
doomiiii
112
2016-11-29 06:28:30
<p>I also asked this question <a target="_blank" href="http://stackoverflow.com/questions/40858864/how-to-add-custom-data-files-to-roblox-datamodel">in this StackOverflow post</a> (where I am more likely to actually see an answer, because I am not checking this site or my related e-mail very often):</p> <p>I don't seem...
37617
0
Is it possible to dynamically create or load in all local variables of the current scope?
77284141
movsb
242
2017-07-13 17:30:51
<blockquote> <p>In regular Lua, it is possible to dynamically create and load in all local variables of the current scope into a table using <strong>debug.getlocal</strong>, but ROBLOX has removed every single useful function that is supposed to be in the debug library.</p> </blockquote> <p>Yet, it is still easy to <st...
45222
1
How would I properly use a ROBLOX API?
49316000
IntellectualBeing
430
2014-05-04 03:39:51
<p>I am trying to utilize this API made by Usering.</p> <p>This is section of my script.</p> <pre class='brush: lua'>Content = script.Parent.Content VisitsText = Content.Page.Visits PlaceVisitCount = function(plr) return tonumber(DecodeJSON(GET("Users/PlaceVisitCount","UserId=" .. tostring(plr))).PlaceVisi...
4290
0
this is a sever script Downloading asset failed for asset id 2135455447. Is the asset id correct?
12475209
67peicbm46bv8buws8ig
0
2022-09-11 19:27:02
<p>--[[</p> <pre class="brush: lua"> ____ _ | __ ) __ _ ___(_) ___ | _ \ / _` / __| |/ __| | |_) | (_| \__ \ | (__ |____/ \__,_|___/_|\___| Admin Essentials 2.0 Created by TheFurryFish Instructions: Place this Model in "ServerScriptService" Note: You can remove the Model and place the script itself in Serv...
131597
0
My value / repeat shows no errors but will not work?
130214198
NathanPlays2016
7
2022-05-13 20:10:27
<p>My value / repeat script that spins a motor turns on, but only keeps turning on and the motor spins faster. I have tried using a number value but it still will not work. I don't know if it is the repeat scripts that are interfering but here is the script for anybody who is willing to help:</p> <pre class='brush: lua...
129990
0
what does this semi colon mean or in short this sign -&gt;[ ; ]&lt;- ?
815883018
RealPlays20
3
2019-02-23 10:50:29
<p>can someone help me about this semi colon because when ever i watch some scripting tutorial they're sometimes adding semi colon and they're not explaining what does that semi colon mean but i try to find in wiki but i can't find any info about semi colon so if anyone can help me i really appriciate it and thanks for...
76694
1
For some reason I am unable to make my script where it only shows on your screen? help please.
159636940
Configuator
147
2020-08-05 01:36:46
<pre class='brush: lua'>local block = game.Workspace.JoiningReward.JoiningRewardBlock local player = game.Players.LocalPlayer block.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then player.leaderstats.Breaths.Value = player.leaderstats.Breaths.Value +15 block.JoiningRewardG...
110724
2
How to make Different skyboxes in a different areas in one game?
1683254402
gta_12344567890
7
2020-07-14 01:06:14
<p>How do I create skybox in separate and different areas, as you go in the areas, the sky changes, how do I do that, I really need help.</p>
109000
2
100086
0
1453933093
OFF_S4LE
108
2020-07-14 01:46:33
<p>put this on the ground area of the map in a local script</p> <pre class='brush: lua'>Player.Touched:Connect(function() workspace.(the sky box you want to go away).Transparency = "1" end) </pre> <p>now another local script in the same part</p> <pre class='brush: lua'>Player.Touched:Connect(function() workspace.(the s...
0
How would you check if a player has a certain badge?
69308985
xXKillerMurderarXx
59
2019-03-31 09:35:47
<pre class="brush: lua">local badge = game:GetService("BadgeService") local id = id_here game.Players.PlayerAdded:connect(function(plr) if plr.UserId == your_userid then print("The owner joined! Awarding badges now!") for i, p in pairs(game.Players:GetPlayers()) do if badge:UserHasBadgeAsync(p.UserId, id) then print(p....
78386
0
How to MAKE a Cutscene Play when A Play Button GUI Plays?
110258409
Daiko_King
1
2017-01-18 23:33:29
<p>Please help, I can't seem to get my head around it. Like there is a cutscene playing during when they Play Button GUI Plays. Like 2 frames on top of the screen and then the bottom of the screen. Then in the middle, there is just a cutscene playing and the play button is there. Thank YOU!</p>
39164
0
How do I refer to a player's parts in an if statement?
61109641
chitterness
4
2020-10-18 03:03:39
<p>I have a script that goes into a part that detects players touching the part. What it does is wait till 1 person walks over the part and the part disappears. Then, if another player falls through that part, it gives the player who first made the part disappear(first touched the part) a kill in leaderstats. The probl...
114501
0
What does the things between the parentheses mean? (Solved)
1616582564
Abysmallow
1
2020-05-17 10:52:22
<p>This might sound stupid, but I am a beginner developer and don't know what these things mean, can somebody help?</p> <p>Example:</p> <pre class='brush: lua'>local function placeBarrier(barrierNumber, barrierPlace) </pre> <p>I would really like to know what those mean.</p>
103453
1
95514
6
74087102
Ziffixture
6785
2020-05-17 10:57:46
<blockquote> <p>Arguments &amp; Parameters</p> </blockquote> <p>This is what is formally known as a <em>parameter</em>. It is a specially declared <em>variable</em> within the function, that refers and contains information provided <strong>during</strong> the operation of said function.</p> <p>The way we assign this da...
0
How to make certain parts of a loop repeat before other parts finish?
148527490
manith513
121
2022-11-09 04:18:43
<p>I'm trying to make it where a house disappears part by part by increasing the transparency of the part, but I also want this affect to apply to up to 4 other parts on the house before they are finished.</p> <pre class='brush: lua'>local house = script.Parent local runservice = game:GetService("RunService") local deb...
132204
2
119409
1
123585026
NykoVania
231
2022-11-09 04:25:41
<p>I'm not sure if this helps, but if you use a repeat until loop you can wait until something is true or etc.</p> <pre class='brush: lua'>local a = false repeat wait() -- code here until a == true </pre>
0
Why isn't this working?
67028038
TheForumingForumer
5
2015-01-22 03:41:20
<p>When I click it, it won't work :/</p> <pre class='brush: lua'>function onClick() if game.StarterGui.ScreenGui.Frame.Visible ==false then game.StarterGui.ScreenGui.Frame.Visible = true else game.StarterGui.ScreenGui.Frame.Visible = false end end script.Parent.MouseButton1Click:connect(onCl...
14401
2
17455
0
22814853
Senor_Chung
210
2015-01-22 03:49:34
<p>Don't use the StarterGui, use this:</p> <pre class='brush: lua'>game.Players.LocalPlayer.PlayerGui </pre>
1
How to make a tame chance system?
140975395
Ems_Squad
58
2021-02-26 19:12:53
<p>So Im starting on a game where you go around tame animals then you can turn into them. I just dont know how to set up a tame chanse like. If the tame chanse is 80% how to I make it theres only 20% of the tame failing? Thank you in advanced.</p>
120711
2
110011
2
158811
TGazza
799
2021-02-26 21:07:10
<pre class='brush: lua'>local Chance= 80 local Tamed = 0 local Nope = 0 while true do local Percent= math.floor( (math.random()*100)+0.5) -- Custom Round since Lua don't have a math.round function! if(Percent &lt;= Chance) then Tamed = Tamed + 1 else Nope = Nope + 1 end print("Tame ...
0
How to grab all children from a group and un-anchor them?
51326527
flufffybuns
89
2017-01-30 01:00:19
<p>I tried to use the "GetChildren" function thing, but it didn't work. Here is my script:</p> <pre class='brush: lua'>local children = script.Parent.Parent.Pellets:GetChildren() wait(0.4) script.Parent.Transparency=0 script.Parent.Warning:Play() wait(1.7) script.Parent.Attack:Play() children.Anchored = false script.Pa...
39559
1
41796
1
17514438
TheeDeathCaster
2368
2017-01-30 02:20:13
<p>To accomplish this, you're going to need to use a <a target="_blank" href="http://wiki.roblox.com/index.php?title=Loops#For"><strong>for loop</strong></a>. :P</p> <p>Just a heads up: I'm not going to be re-writing (editing) your code, b/c it would feel like I did all the work for you; if someone did that w/ me, I wo...
0
My text engine localscript isn't working?
469500873
poppyloverb
20
2021-05-01 20:09:56
<p>A script in StarterGui > ScreenGui > Frame > Textlabel > LocalScript</p> <p>Code:</p> <pre class='brush: lua'>local TextLabel = script.Parent while true do wait(1) TextLabel.Text = "Loading" wait(1) TextLabel.Text = "Loading." wait(1) TextLabel.Text = "Loading.." wait(1) TextLabel.Tex...
123004
1
How do we move a whole model?
6556875
Robotized
5
2014-02-28 11:08:29
<p>Say that i wanted to move a player, from one location to another. I tried that, knowing that Position is not a valid propety of Model. Any tips?</p>
360