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
So I'm making a gun it works but the ammo won't show in my TextLabel, can anyone help?
1048911789
NicoXerocious
29
2020-07-10 15:43:16
<pre class='brush: lua'>local ammo = script.Parent.Ammo.Value local ammoGui = game.StarterGui.GunGui.BackgroundFrame.AmmoDisplay local function onUpdateAmmoDisplay() while wait() do ammoGui.Text = ammo.."/"..maxAmmo end end spawn(onUpdateAmmoDisplay) </pre>
108699
1
99825
2
126659427
VerdommeMan
1162
2020-07-10 16:41:49
<p>you are modifying the <code>StarterGui</code>, everything thats inside the startergui gets cloned into the <code>PlayerGui</code> of a player so if you modify something in <code>StarterGui</code> it will only show after the players dies so if you want the modify it instantly you have to modify the <code>PlayerGui</c...
0
How can I select different part names within a function?
1406209964
ElectricZooo
55
2020-04-30 20:32:23
<pre class='brush: lua'>function generateMedKit(name,XYZ) local MedKits = game.ServerStorage.MedKits.name MedKits.Position = XYZ MedKits.Parent = game.Workspace end generateMedKit("Med1","Vector3.new(463.39, 28.452, 220.52)") generateMedKit("Med2","Vector3.new(463.39, 28.452, 208.84)") generateM...
101380
1
93633
0
79094244
josestankor
39
2020-04-30 21:08:05
<p>Use <code>:FindFirstChild(name)</code></p> <pre class='brush: lua'>function generateMedKit(name, XYZ) local MedKits = game.ServerStorage.MedKits:FindFirstChild(name) MedKits.Position = XYZ MedKits.Parent = game.Workspace end generateMedKit("Med1","Vector3.new(463.39, 28.452, 220.52)") generateMed...
0
How to make a crosshair a certain id?
1522319315
NotDemo2
0
2021-06-09 09:16:36
<p>So I want to make my crosshair in my game a certain thing, I have the roblox image and this is the code I have but whenever I launch the game it doesn't work.</p> <pre class="brush: lua">local mouse = game.Players.LocalPlayer.GetMouse() mouse.Icon = "rbxassetid://1827745864" </pre>
124216
0
How would you make hidden leaderstats?
44575199
tanoflame
22
2014-05-07 11:22:03
<p>I have tried using the same way to make regular leaderstats, but that wont work~~~~~~~~~~~~~~~~~ local hs = Instance.new("IntValue") hs.Name = "hiddenstats" hs.Parent = player</p> <pre class="brush: lua"> local hscore = Instance.new("IntValue") hscore.Name = "timmur" hscore.Parent = ls hscore.V...
4468
0
How do I move player limbs to the position I want?
310696583
LeHelary
87
2019-09-07 09:53:19
<p>What I mean is, <em>for example</em>, making the left arm of the player go up when a tool is equipped so that it holds it with both hands. Do I use CFrame? Or is there a better way? Any help is appreciated.</p>
87098
0
When i use my local variable in a function, why does it change it for the entire server?
1528335743
VictoreRoyale667
8
2022-11-12 20:49:19
<p>Can I pls get some closure? THE PROBLEM IS IN LINE 10</p> <p>Here is the script:</p> <pre class='brush: lua'>local Table = {} local MaxPlayers = 2 local ts = game:GetService("TeleportService") game.Workspace.Pad1.CanTouch = true game.Workspace.TWOPLAYERQUEUE.Overhead.BillboardGui.Frame["PLAYERS&amp;TELEPORTING"].Tex...
132253
0
(SOLVED) How can I index to the table's name?
55148825
BronzedMocha
60
2018-10-18 18:31:06
<p>In my script i am trying to sort animations into their intended tables. For it to work, i use the function string.find, to compare the tables string name and the animation name(i don't know if string.find will work yet, but that's not my current issue.) Is there a way to get the string name of a table without adding...
69085
0
How Can I Detect If My Player Is Running? [Solved]
495516343
fff054
51
2019-11-18 16:00:11
<p>So, I tried a lot of ways to check if my Player was running. I tried with Humanoid.Running and the bad thing about that is that it just fires when your Speed increases or decreases but when you stay at a permanent speed the event doesn't fire. I also tried with Humanoid:GetState() but when you chose Running the If S...
90204
0
[Solved] How can I make a blur effect whenever I open/close a GUI?
39145398
fr2013
88
2018-11-23 21:42:06
<p>So how do I make the blur of 10 slowly happen when a player touches a brick while the GUI comes down but when they leave, the shop goes up and the blur effect goes to 0 slowly in the background.</p> <p>I kept testing but it doesn't seem to work for me.</p> <pre class='brush: lua'>local blur = Instance.new("BlurEffec...
71046
2
Where can I find a list of all the ROBLOX events?
206612460
XxMishMashxX
19
2020-04-13 14:13:46
<p>I so far know about the event 'Touched' but that's about it. Is there a website, official or unofficial, which lists all of the events there are?</p> <p>PS, sorry if I've used the wrong jargon.</p>
99112
2
91579
0
310786648
mattking71
29
2020-04-13 14:25:16
<p>Inside the "View" section of roblox studio, you can put a window called "Object Browser". If you want to see the event just click one of the codes (for example, you click "part") and is gonna show every code that can be used next to that code. The events will be every code that is with the symbol of a yellow bolt.</...
1
How do you make Zombies spawn at night and die in the day?
1466374332
subblox1234
5
2021-02-22 11:08:02
<p>I have tried so hard to make Zombies spawn at night and die in the day but it is so hard, If anyone knows how to do this that would be helpful as this is key to my game.</p>
120508
0
Check if a player is following another?
675757462
maumaumaumaumaumua
628
2020-04-23 01:23:32
<p>Hello, i'm making a custom playerlist with ROBLOX's old one. Now, my problem is that i don't know how to retrieve follower information. There seems to be an api for it wich is roblox's but whenever i try to access it i get 403 Forbidden.</p> <p>I've tried this</p> <pre class='brush: lua'>local http = game:GetService...
100356
0
How do I make camera manipulation when a part is touched?
70068161
Ghostinee
25
2022-05-01 23:17:31
<p>I would like to make the camera movement be from the top (like in the photo), but only when a part is touched.</p> <p>Picture: https://postimg.cc/wRXLpCkW</p> <p>If you look at the picture you’ll understand what I mean, during the game you have normal camera movements like any ROBLOX game but when you enter a specif...
129884
0
My Gui's are not opening when ever I begin the game?
138940133
Nicolas232952093
0
2021-04-06 02:05:08
<p>So I am remaking old egg hunt games every time I want enable the ScreenGui it never works. Same thing for the Frame. I would say local Frame = game.StarterGui.ScreenGui.Frame Frame.Visible = true. When I went to the properties of the Frame or ScreenGui it was always Visible or enabled but the UI it self was not. Not...
122053
0
My Dialog System Only Works In Test Mode?
25926813
laughablehaha
489
2018-04-10 04:07:03
<p>I usually don't have this problem, as I already know that filtering enabled doesn't take effect for play mode in studio, but test servers in studio does use it - leading to different outcomes when testing. In my instance, I am using <code>DialogChoiceSelected</code> event to open up a Shop Gui. This system works per...
56557
1
55264
1
264859050
Nonaz_jr
439
2018-04-10 04:26:06
<p>Dialogs have some problems working in FE.</p> <p>There are ways to make it work, but it involves overcoming for example this problem:</p> <p>DialogChoiceSelected fired locally. That means you must put the function you connect to that event must be connected in a local script instead.</p> <p>To do things on the serve...
0
Why do i have to use waitforchild in replicatedStorage?
800926308
luxkatana
61
2021-05-30 13:57:25
<p>acctually why do i have to use waitforchild in ReplicatedStorage?</p>
123919
0
How to make gui pop on client side, when it is triggered on server?
629877923
shawn36589
0
2020-08-01 18:56:16
<p>I am trying to have a gui pop up on the player screen when the event is fired and the event is handled on the client side, but it doesn't pop up and there is no error code.</p> <p>Trigger side</p> <pre class='brush: lua'>local RS = game:WaitForChild("ReplicatedStorage") local players = game.Players:GetPlayers() func...
110490
0
How to use Rope Constraints and gradually increase and decrease values??.
1169362290
iiMxtt_Destinyii
62
2022-06-22 14:47:07
<p>So, I am creating a rollercoaster system and currentley, I am working on the chain lift system which will carry the cart up the hill. However, I have decided to use a RopeConstraint instead of CFraming it because, I want to make the coaster as realistic as possible. The part which has got me stuck is decreasing and ...
130466
0
How Can We Tween The Size In A Certain Direction?
319722439
soreno2468
31
2021-08-19 22:28:54
<p>You know how in Roblox studio edit mode you can scale part in certain direction for example when u pull on the green circle in pulls its size that way, yeah is it possible to do that in a tween and if so how?</p> <pre class='brush: lua'>local TweenService = game:GetService("TweenService") local tweenPart = script.Pa...
126660
0
How Do I Remove a Player From a Table When They Leave the Game?
51195902
RealSillykids
2
2021-10-10 18:49:02
<p>Hello, I have a game where a player is put inside a "playersAlive" table. The only problem is that when they leave the game, the game itself doesn't recognize that they have left, and the round will not reset even when everyone else has died.</p> <p>I was wondering how I could remove a player from the "playersAlive"...
127833
1
115861
3
229005874
Rinpix
640
2021-10-10 21:28:49
<p>Create an event listener to detect when a player leaves the game.</p> <pre class='brush: lua'>game.Players.PlayerRemoving:Connect(function(player) local index = table.find(playersAlive, player) if (index) then table.remove(playersAlive, index) end end) </pre> <p>Make sure you define your playersA...
0
How would I &quot;wait&quot; faster than the default wait time is?
34082258
Lineout
10
2014-02-26 01:00:34
<p>So I have done:</p> <pre class='brush: lua'>wait() </pre> <p>but that seems to be to slow. Before you say how is that too slow, for my purposes it actually is. Is there anyway to get around it so its like .0001 of a second. I would also like to know what the actually time is for 'wait()', I thought is was .37 of a s...
302
2
550
1
39760131
Hippalectryon
3
2014-02-26 01:03:07
<p>wait() 's minimal time is around .03 seconds</p> <p>There is no way to make it go under .000001 seconds, as it depends of your computer/the server's frame rate</p> <p>For an exact time, try</p> <pre class='brush: lua'>print(wait()) </pre> <p>it should display wait's time for you</p>
0
script.Parent.Touched:connect(print(&quot;touched&quot;)) does not work?
342121749
codingMASTER398
52
2019-09-19 05:24:02
<p>so i am making a game. when you shoot a npc, it drops a coin. i am TRYING to make it give you coins and stuff when you touch it. to do that i need a</p> <pre class='brush: lua'>script.Parent.Touched:connect(function(player) print("touched") touched(player) end) </pre> <p>problem! what could be it? it does not work...
87645
2
81198
1
272859903
Miniller
562
2019-09-19 09:16:53
<p>If the script is in a part, and you're 100% sure that you touch that part, I only have 2 ideas.. First of all, try to re-design your script. Don't use <code>connect</code> cuz it's deprecated, use Connect. <strong>And it's important to tell that putting player here won't help as it only detects the part what touched...
0
How Do You Animate A Player?
33084827
kbjanssen
0
2014-04-17 13:32:43
<p>I'm not very good at scripting, and I want to make my character jump like Mario for a certain project. I've tried everything, but I still can't get it to work!</p>
2426
1
Verify decal ID via script
49776603
TomsGames
225
2014-03-14 20:53:45
<p>So this has been used in many places, but I have no idea how it works.</p> <p>Basically, a user inputs a number (A.K.A. the decal ID) and I need the script to verify that the decal ID is valid and is registered and working etc...</p> <p>How can I do this? Thanks!</p>
690
0
I have a data Store, but why wont it work?
150334552
vincentthecat1
199
2019-08-09 04:16:20
<p>---Important Things---</p> <p>So I have a LeaderBoard and a Data Store that seems to not work with the LeaderBoard, but why? What went wrong in the scripts?</p> <p>---Locations--- -TheData Store Script is in the ServerScriptService. -The Leaderboard is in the ServerScriptService.</p> <p>---LeaderBoard (Working)---</...
85375
0
Why wont the clicks come through?
1527823663
kickoff127
101
2023-02-08 01:20:26
<p>I tried to alter a script where when u click you get 1 click, but with 50 coins you can buy 1.5x clicks. Here is my script:</p> <pre class='brush: lua'>local button = script.Parent local player = button:FindFirstAncestorOfClass("Player") repeat player = button:FindFirstAncestorOfClass("Player") task.wait() u...
133040
3
How to rotate a model?
17676687
MunimR
125
2014-02-19 03:45:56
<p>How to rotate a model, right now checking all children of a model and rotating each part doesn't work since if the part is already facing a different direction then it will awkwardly rotate it against the other parts. Any solutions?</p>
79
2
159
17
4397833
Quenty
226
2014-02-19 05:41:25
<pre class='brush: lua'>local function TransformModel(objects, center, new) -- Transforms a group of bricks (objects) relative to center to the new CFrame (new). for _,object in pairs(objects) do -- if object:IsA("BasePart") then object.CFrame = new:toWorldSpace(center:toObjectSpace(object.CFram...
0
How would i format %x to be a readable format for assetID's?
1689463945
VAHMPIN
281
2021-01-13 10:21:57
<p>code example so not request:</p> <pre class='brush: lua'>local format = "%x" local formatted = string.format(format, "7846242414") -- fake assetID btw </pre>
118636
1
108512
1
32873227
shadowstorm440
35
2021-01-13 10:25:14
<p>Hey, this is pretty easy to do, all you need to do add is the "#" to the x.</p> <p>This makes the formatting readable, for example you can do this on an audio assetID:</p> <pre class='brush: lua'>local Format = "%#x" -- turns the hex (%x) into a readable roblox format by making x = #x local Formatted = string.format...
0
how do i make this door remove itself after it's used?
124020867
CaptainGreenSeals
23
2020-10-15 19:38:45
<p>i am making a door that opens when leaderstats are a certain number, but i also want the door to remove itself after used, so i changed a small part of the code to be line 10, but now the door doesnt work anymore</p> <pre class='brush: lua'>local Exp = 1 local db = true script.Parent.Touched:connect(function(hit) ...
114399
1
105053
1
58729054
Dovydas1118
1495
2020-10-15 19:43:17
<p>I see loads of mistakes on your code. Most of everything you put is deprecated. So lemme change some things. I'll put in <code>--comments</code> to show you the mistakes.</p> <pre class='brush: lua'>local Exp = 1 local db = true script.Parent.Touched:Connect(function(hit) --connect is deprecated. Use Connect. if...
0
What does the colon do when defining a function?
6333934
Marmalados
193
2019-02-12 21:40:50
<p>I don't remember where I saw this so I can't necessarily write the script correctly, but I do remember seeing a colon in one of a script that a friend of mine wrote a while back.</p> <pre class='brush: lua'>local function functionName:example1() end local function functionName:example2() end </pre> <p>What does this...
76126
2
71482
4
61716444
theking48989987
2141
2019-02-12 22:03:13
<hr /> <h2>Characteristic</h2> <hr /> <p>The difference between a colon in a function and a period in a function is that the colon has an implicit self parameter while the period doesn't</p> <p>For example, if it did this:</p> <pre class='brush: lua'>local tbl = {} function tbl.Foo () print(self) end tbl.Foo() </pr...
0
MoveTo Method
25842304
bloxxyz
274
2014-02-17 13:57:49
<p>I understand this works with both humanoids and parts/models, but I haven't been able to understand the concept. No matter what I try the code never works and most of the time I don't even get an error for it. Does MoveTo even work anymore? If so, can someone give me a short code example that I can try out. Thank yo...
32
1
65
1
947798
MrNicNac
855
2014-02-17 14:46:11
<p>The most common :MoveTo() method is for use on models. They move an entire model to a new position.</p> <pre class='brush: lua'>Workspace.Model:MoveTo( Vector3.new(0,0,0) ) </pre> <p>The second is for <strong><em>living</em></strong> Humanoids. It will make them walk to a new point. It also requires a part, but this...
1
How do I detect if a number is odd or even?
18697683
ChipioIndustries
454
2014-07-25 01:43:37
<p>I've made a terrain system to generate blocks of terrain. To do this, it cuts certain vectors in half. But since it's a module script, if someone else put in an odd number, it would have a decimal number, which crashes the terrain system. So how do I detect an odd number so I can fix it?</p>
8651
2
11220
2
386992
BlueTaslem
18054
2014-07-25 01:45:52
<p>We can use the <strong>modulus "operator" <code>%</code></strong> to determine the remainder after division of a number.</p> <p>If <code>x</code> is even, then <code>x % 2</code> is <code>0</code> since <code>2</code> goes evenly into an even number.</p> <hr /> <p><code>5 / 2</code> is <code>2</code> with a <strong>...
0
How do I make people get money NOT in leaderboard
38381026
xAtom_ik
574
2014-02-19 10:17:46
<p>How do I make people get money in 30 seconds which is not in the leaderboard. Thanks if you help me</p>
81
0
Is there a way to force graphics quality?
169360253
DaWarTekWizard
169
2018-05-12 15:46:42
<p>My question is stated in the title. How would you force a graphics quality setting on someone? I am asking for a method, if someone could explain how. Thanks!</p>
58318
0
Vector.3 and wait help?
13334413
PhonyBalone
0
2014-11-29 03:09:17
<p>So Im a really new scripter and I was having some trouble. When I did this function, the first line of the fuction worked, but the 3rd line never was executed to return the brick to its original location. So, can someone help me fix this?</p> <p>function open()<br /> workspace.Door.Position = Vector3.new(-27.5, 17.7...
12840
0
how to make part follow mouse???
163234547
OrbitingSaturnn
0
2021-06-10 09:10:03
<p>im trying to make a magical ability like the one here</p> <p>https://youtu.be/17vGaC2eoHQ?t=10</p> <p>i've tried absolutely everything and it just wont work, can someone please help? i want it to be on the server for eveyrone to see, and i want it to cause damage when it hits someone. i want it to only last 5 second...
124243
0
super noob question. how do i make a wait() do random between?
437351
nicros
165
2015-07-29 14:39:34
<p>super noob question but im new so shaddup :C.</p> <p>how do i make a wait() do random between 2 numbers?</p> <p>for example click something and it waits between 1 to 5 seconds before doing the next block of code?</p>
20594
3
24244
1
50638959
LegitimatlyMe
519
2015-07-29 17:44:22
<p><strong>While this question might be nooby(no offense), this thingy that we'll learn will be super useful in your scripting career</strong></p> <p>We'll be using the <a target="_blank" href="http://wiki.roblox.com/index.php?title=Math.random"><code>math.random</code> </a> property of <code>math</code></p> <p>If we r...
0
How come my datastore stuff is coming back nil?
29320767
speedyfox66
235
2022-05-05 19:59:38
<p>I have been stuck on how to make this work for months now (mostly because I haven't been using Roblox Studio for a while. I don't know if I'm doing something wrong in terms of getting the datastore. I attempt to GetAsync inside a pcall, but every time I do so it always returns nil. Is there some way to stop this?</p...
129919
0
[SOLVED] How do I fix this error, &quot;attempt to index nil with 'Position'&quot;?
1316268318
Dave_Robertson
20
2020-07-19 23:55:33
<p><strong>Information:</strong></p> <p><strong>THIS QUESTION HAS BEEN SOLVED</strong></p> <ul> <li>I am getting an error on line 4. The error is "Players.Dave_Robertson.PlayerGui.MapButton.ImageLabel.LocalScript:4: attempt to index nil with 'Position'"</li> <li>I am trying to do a if then script</li> <li>The parent of...
109497
2
100581
1
1708043824
TheLuminent
795
2020-07-20 00:15:18
<p>Try this out.</p> <pre class='brush: lua'>local MapButton = script:FindFirstAncestor("MapButton") local ImageLabel = MapButton:FindFirstChildOfClass("ImageLabel") while true do wait() if ImageLabel.Position == UDim2.new(1,0,.907,0) then ImageLabel:Destroy() break else ImageLabel.P...
0
How could I store variables in modules?
79563466
julianhak06
7
2020-10-17 15:42:09
<p>I've been trying to learn how to use modules, and, I attempted to use a table to store my variables. It keeps saying 'Attempted to index nil with "meditating"', and I don't know why it's happening, or where I went wrong in holding the variables. Code:</p> <pre class='brush: lua'>local module = {} local var = { r...
114478
1
PlayerAdded Not working How Do I Fix This?This Should Detect players When They Join
997283098
Rgboffical_yt
40
2020-06-30 00:54:20
<p>Hey There!Im Sorry If Im getting Too Many Errors Lately But Im Just New So When The Script Gets 2 The Line Of script Containing My "PlayerAdded" Script The Whole script Stops Like When I play The Game And I Press The Button Nothing Works Tried Even printing After The PlayerAdded Here Is The Portion Of The Code: (kee...
107805
3
99095
0
417648663
dimondflash57
64
2020-06-30 00:58:41
<p>Remember, If you want to detect a user joining the script HAS to be in ServerScriptService</p>
0
GUI Error. Anyone know what this is?
50312821
KordGamer
155
2015-07-09 15:46:54
<p>Hi! I'm making a GUI and i was tweening the size of a <em>TextButton</em>. When doing this, I encountered an error. The error was this:</p> <p><code>Unable to cast double to token</code> <code>Script 'Players.KordGamer.PlayerGUI.ScreenGUI.Frame.CreditsButton.S', Line 2.</code></p> <p>and <code>Unable to cast double ...
19552
2
23146
2
1002773
Spongocardo
1991
2015-07-09 15:53:15
<p>The first argument of the TweenSize function is a UDim2 value. You're a using a number so the script will error. To fix this, you need to wrap those numbers around UDim2.new() inside the parenthesis. You will also need some extra arguments such as EasingDirection, EasingStyle and Time in order for the TweenSize func...
0
How would I go about inserting a hat onto someone using scripts?
2600997
crackabottle123
105
2014-05-18 03:14:27
<p>Title, tried to use scripts to put a hat on someone, it connected strangely.</p> <p>My friend told me to weld a part onto their head (with a hat mesh), could anyone possibly tell me how to do that or link me to a page, it would be greatly appreciated.</p>
5019
0
Why does dialogue stops working after lighting script?
55331324
avangaleen12
0
2021-04-07 23:59:58
<p>I'm creating a story game, and I'm scripting in the gameScript. I want it to go from day to night during the transition event, but after the it changes the dialogue stops showing up and I don't know why.</p> <pre class='brush: lua'>CreateDialogueEvent:FireAllClients(Ashlee_Image,"You guys can take turns using the sa...
122134
0
How do I weld 2 players together without any physics issues?
124963457
localGJK
171
2021-05-02 14:45:39
<p>Hey, I'm back after a month or so. I have a ragdoll system (echoreaper's system) and I want to weld a player to another player. I did try to do this but I just can't get it right. I'm not sure if this is something with the ragdoll system or the network ownership.</p> <pre class='brush: lua'>function ChangeNetworkOwn...
123030
1
How to check if player isn't clicking button??
433962773
theking66hayday
757
2023-01-20 05:10:28
<p>Hi I am wondering how can I code my code to know when a player isn't clicking on my gui button</p> <p>Example of player clicking button now how can I check if they aren't??</p> <pre class='brush: lua'>script.parent.Mousebutton1clickdown:connect(function() end) </pre> <h2>Hope you understand what I mean very hard to ...
132897
1
120033
3
245864252
xInfinityBear
1711
2023-01-20 05:53:43
<p>You can use a variable to determine if the player is clicking the button; if the variable is false, the player is not clicking the button.</p> <pre class='brush: lua'>local Button = script.Parent local Sound = script.Parent.Sound local Clicked = false Button.MouseButton1Down:Connect(function() Clicked = true ...
0
attempt to index nil with 'FindFirstChild'?
427452292
LaysCo
46
2020-08-04 21:22:14
<p>So the script is inside a part and when i press play i always get this error in the output if i remove FindFirstChild i then get the error attempt to index nil with 'PlayerGui' and same error with WaitForChild i cant find a way to work around it</p> <pre class="brush: lua">local ss = script.Parent local player = gam...
110713
1
101683
2
126659427
VerdommeMan
1162
2020-08-04 21:43:44
<p>You cant get the <code>.LocalPlayer</code> in script it only works in a localscript but you can get the player from the <code>tuch</code> param. like this</p> <pre class='brush: lua'>if tuch.Parent:FindFirstChild("Humanoid") then local player = Players:GetPlayerFromCharacter(tuch.Parent) end </pre>
2
A basic walkthrough of a grid placement system?
26527043
waifuSZN
123
2017-07-21 04:46:17
<p>I'm looking into creating a tycoon from scratch, and the first thing I want to tackle is the grid placement system.</p> <p>I'm unsure what this entails, so some wiki links and/or basic examples would help me out alot to understand this.</p> <p>Thanks!</p>
45569
1
63953
6
60715914
zblox164
531
2018-08-27 06:21:43
<p><strong>I know this is a year</strong> old but I thought I could help anyway.</p> <p>First you want to create a <code>function</code> to do the movement. To move a part to the mouse position you use <code>Mouse.Hit</code>. I am creating three variables one for each axis. Also I am creating two functions that will be...
0
CFrame script not working as expected?
1110149261
iivSnooxy
248
2020-06-30 01:13:22
<p>Hello, why is my <code>CFrame</code> script not working as I thought it should I hope someone Can help me?</p> <pre class='brush: lua'>game.Workspace.Kook.CFrame = game.Workspace.Kookin.CFrame.lerp(game.Workspace.Kookina.CFrame, 0.4) </pre>
107807
1
99099
0
617445798
TTChaos
749
2020-06-30 01:41:37
<p>If you want your <code>Kook</code> part to gradually move toward <code>Kookin</code>, then try the code below</p> <pre class='brush: lua'>local Kook = workspace.Kook -- Define Kook, I usually like defining variables local Kookin = workspace.Kookin -- Instead of game.Workspace, I prefer workspace local StartCFrame = ...
0
Why is it concatenating string with nil?
80774989
robert19735
17
2022-10-05 14:30:08
<p>I looped using "for" in a model to get some specific parts</p> <p>For example I have:</p> <p>GenerationPoint 1, GenerationPoint 2</p> <p>To determin them I used string.find(part.Name, "GenerationPoint") but for some reason "part" is nil?</p> <pre class='brush: lua'>for i, generationPoint in pairs(room:GetChildren())...
131809
4
How do you make a GUI with round corners?
107505372
ZeonMaxwelll
75
2016-04-04 22:57:37
<p>I think that GUI's with sharp corners look very unprofessional. Gui's with round corners make them feel more natural so I want to know how to make GUI's with round edged corners.</p>
29287
1
32703
5
817067
XAXA
1569
2016-04-04 23:08:57
<p>You would do something similar to <a target="_blank" href="https://rwillustrator.blogspot.com/2007/04/understanding-9-slice-scaling.html">Nine-slice</a>. Nine-slice means that a frame is subdivided into 9 parts: 4 corners, 4 sides, and one center.</p> <p>https://i.imgur.com/GwFSOvj.jpg</p> <p>When you scale the gui ...
0
Tween not working. (there are no syntax errors though) Help?
256224703
stampiepoopoo
0
2023-01-20 17:26:59
<p>So I have a part that I want to rotate when when I press its proximity prompt using Tweening, but it just doesn't work. Here is my code which is a local script in start character scripts:</p> <pre class="brush: lua">local TweenService = game:GetService("TweenService") local part = workspace.Part local prompt = part....
132901
0
How to clone an object with it's children?
702213653
Grazer022
128
2021-06-08 01:27:42
<p>I am making a script that would clone a ball and it’s effects (children) to the workspace.</p> <pre class='brush: lua'><br />NRGremoteEvent = game.ReplicatedStorage.nrgEvent NRGremoteEvent.OnServerEvent:Connect(function(plr) local NRGclone = game.ReplicatedStorage.NRGfolder.EnergyBmain:Clone() NRGclone.Parent = ...
124187
0
How to create a rope constraint between two objects with a script?
86132377
ViktorRamstrom
15
2022-06-26 13:49:45
<p>If the two objects are called Part1 and Part2, how do I create a rope constraint between them with a script?</p>
130516
1
117855
0
1354321048
Hi_People1133
218
2022-06-26 14:05:29
<p>Instance.new should make two attachments in these parts,Change the references in the script but i think it will work, this script will make two attachments in the parts and set the attachments in the Rope-Constraint, i hope this script helps</p> <pre class='brush: lua'>-- Creates rope Constraint local Rope = Instanc...
0
Why does my humanoid don't take Damage?
1947257869
xGlacier101x
9
2022-06-22 03:28:11
<p>I placed it in starterplayerscripts in localscript, but it still dont work I tried to put it in serverscriptservice but it still don't work Pls help!</p> <p>local Players = game:GetService("Players") local plr = Players.LocalPlayer</p> <p>local PlayerMoneyValue = plr.leaderstats.Reality</p> <p>while true do wait(0.5...
130449
1
117807
0
94006350
BulletproofVast
776
2022-06-22 22:07:32
<p>I would recommend checking from the server to prevent exploiters and you should probably make sure the leaderstats are loaded by using waitforchild instead of just going straight to plr.leaderstats.Reality</p> <pre class='brush: lua'>local Players = game:GetService("Players") game.Players.PlayerAdded:Connect(functio...
0
i need coding to read a number value set to 1? i dont have the coding
1585129422
bro_pro99956
2
2021-06-07 12:22:38
<p>would be a big help I've been trying to find something on the internet</p>
124164
2
113185
0
476698948
xxaxxaz
38
2021-06-07 12:26:54
<p>script:</p> <pre class='brush: lua'>local Value = 1 print(Value) </pre> <p>do <code>print()</code> -- and put the value in between the brackets. open your output and in game it will print it!</p> <p>another way you can do this script:</p> <pre class='brush: lua'>local Value = 1 print("Value is now "..Value) </pre> ...
1
Is it good idea to parent script to the game?
73170429
imKirda
1203
2020-10-17 16:14:10
<p>I have made custom module for replacing the TweenService, now i want to access it and i got a very cool idea to make it very easily accessible from multiple scripts, i want it because i want to feel like it is the real service and real services you don't get them like this:</p> <pre class='brush: lua'>local tweenSer...
114481
1
105158
1
1122995038
Skippy_Development
59
2020-10-17 16:21:17
<p>I would not, the game object is basically the whole game in example.</p> <pre class='brush: lua'>game.Players </pre> <p>We are using that game object to get the Players Service. I would either use Workspace or SeverScriptService (For a sever script)</p> <p>(After reading your question more)</p> <p>You can just put t...
0
[ Solved ] Taking Oxygen On Contact To Water?
34209956
M39a9am3R
3001
2015-01-12 16:09:25
<p>The script I had made, I thought would take oxygen on contact with Roblox water. Except it does not, turns out if you just walk in, it will not recognized the humanoid is swimming until they jump. I was curious if there was a more effective way to detect if a player is swimming in water than what I have for code. An...
14181
0
How to get Color to BrickColor with ParticleEmitters?
15619704
NinjoOnline
1146
2015-04-30 15:29:16
<p>Script is inside <strong>ParticleEmitter</strong></p> <pre class='brush: lua'>script.Parent.Color = script.Parent.Parent.Parent.Parent.Name -- Model is named 'Teal' </pre> <p><em>Output</em> <code>bad argument #3 to 'Color' (ColorSequence expected, got string)</code></p> <p>I am trying to get the <strong>ParticleEmi...
17137
3
20528
2
30399843
Protoduction
216
2015-04-30 17:08:15
<p>Particle emmiters use ColorSequence. So far I've been having a lot of trouble with this. Basically a ColorSequence is a combination of 2 color3 values. To access the colour, you'd have to do <code>particleEmmiter.Color.Start</code> <strong>or</strong> <code>particleEmmiter.Color.End</code> Start and End are the colo...
0
Which way of making a projectile causes less lag?
24090816
CodeSponge
125
2015-03-16 13:45:48
<p>I started scripting a laser gun but I have a problem with it - In multiplayer/uploaded place the lasers show up about 0.5 seconds after clicking the shoot button. To make the bullets I am using this: local laser = ServerStorage.Laser:clone()</p> <p>Is making the laser projectile inside the script instad of cloning f...
15812
1
19493
0
46052
chess123mate
5873
2015-04-02 08:16:27
<p>I expect it's lagging because you've trying to access ServerStorage, probably from the client side. When you're testing locally (in Studio/Play Solo mode), this communication is instant, but it takes time in multiplayer when your computer has to communicate with one of Roblox's servers over the Internet.</p> <p>Try ...
0
Friction cannot be assigned to?
147305218
PeterParker17386
16
2022-07-17 15:45:48
<p>I want to make a script where the floor becomes slippery but when i run it, it says "friction cannot be assigned to" I am very confused, This is my script.</p> <pre class='brush: lua'>local RandomNumber = math.random (1,1) if RandomNumber == 1 then game.Workspace.Baseplate.Material = "Ice" game.Workspace.Bas...
130830
2
118118
0
273093957
Rare_tendo
3000
2022-07-18 07:14:59
<p>You can't assign or write to the properties directly. Instead, you'd want to construct a new <a target="_blank" href="https://developer.roblox.com/en-us/api-reference/datatype/PhysicalProperties">PhysicalProperties</a> object with the properties you desire:</p> <pre class='brush: lua'>local baseplate = workspace.Bas...
1
&quot;print()&quot; Not printing the correct values?
76734233
generalYURASKO
99
2020-12-08 23:23:33
<p>Ok, so a little back story, I've been making this gun for months now, and so far it's been working great, a few problems but nothing that a little thinking cant help. However, I came across this one issue that is not making any sense to me. ("BV" is the variable for "BodyVelocity.Velocity")</p> <pre class='brush: lu...
116945
1
107219
0
2007599571
RedReedBird
205
2020-12-09 00:36:02
<p>I tested this out myself and it appeared to be correct. I inserted a part into the workspace called Bullet, and made a script like the one above:</p> <pre class='brush: lua'>local Bullet = workspace:WaitForChild("Bullet") local BV = Bullet:WaitForChild("BulletVelocity").Velocity while Bullet do print("Bullet Y V...
0
I'm trying to make a trade system but I can't seem to get the PlayerGui?
437665253
coolman098234
46
2020-11-21 20:39:31
<p>So I've made the GUI and all, you can click trade and if you click trade it'll send the person you're trying to trade with a Frame saying that somebody wants to trade, but I can't seem to get the other player's PlayerGui. What I thought would fix it was to fire a RemoteEvent from the client to the server, then the s...
116121
0
How would I make an overhead GUI that displays a team member's name in green?
29772586
broboch479
15
2014-03-01 21:32:10
<p>I have no idea how to start this one. I made fake heads in the players to make it so you can't see anyone's name. Now I need to make an overhead GUI only seen on your teammates.</p>
412
0
Data isn't saving while not erroring! why?
475785649
iNot_here
73
2020-11-23 21:59:34
<pre class='brush: lua'>local DS = game:GetService("DataStoreService") local InventoryStore = DS:GetDataStore("InventoryStore") local function save(player) local playerInventory = player.Inventory:GetChildren() local playerSave = {} for i = 1, #playerInventory do print(playerInventory[i].Value) ...
116228
0
IntValues are 0 even if I gave them other values?
201626722
TheChi_1705
22
2021-05-03 18:40:49
<p>Hello! I'm using a folder with values. They are going to be stored in the database after, but I have a problem. Even tho I set the values to 1 when I define them, if I run the game and look in explorer, their value is 0. This is what I tried:</p> <pre class='brush: lua'>local DataStoreService = game:GetService("Data...
123060
0
[SOLVED] Script not working. checks if player is player(check bottom for more info) ?
1044877460
MariamOMG090
9
2023-02-23 01:41:57
<p>The script is supposed to check if player is a player and if the player is a player then it sets all parts in the model to CanCollide = false, but if its not a player then it sets CanCollide = true for al the parts in the Model. All the parts in the Model are named Cannotdelete. Why is the script not working?</p> <p...
133108
0
My looped script stops working correctly the first time. How to make a script loop correctly?
62052411
Aprilsaurus
48
2020-06-13 20:47:35
<p>Hello. I tried making my own looped script for an animation.</p> <p>What I'm trying to accomplish is, I have an NPC, and I want it to have an animation that plays and stops for a certain amount of seconds, and then play the animation, stop, wait, and repeat. Here is my script and I'll explain what it should do, or w...
106312
0
Why Isn't the tool upgrading Itself even If the owner bought the gamepass?
1961959172
imnotaguest1121
311
2022-11-24 00:08:28
<p>Ello Developers!</p> <p>I've made this simple script (Server-Script) that when the player equips a certain Item, the original Item upgrades Itself via cloning a different Item and deleting Itself, the problem Is that even If the player has the gamepass, It doesn't really do anything</p> <p>Script:</p> <pre class='br...
132358
1
Using GetProductInfo to check if Asset exists?
2182958
Dummiez
360
2014-04-29 00:31:06
<p>Say if I wanted to retrieve all possible audio id's using a ridiculously long for loop, and used the GetProductInfo of the MarketplaceService.</p> <pre class='brush: lua'>wait() for idAsset = 156000000, 131000000, -1 do -- Rough approx. of newest sound id to oldest sound id. local curId = game:GetService("Marketplac...
3855
3
5312
1
13416513
Merely
2117
2014-04-29 00:48:23
<p>It'd be significantly faster to parse them out of the catalog. There are only ~34,000 audio.</p> <p>Start with PageNumber=1 and work your way up.</p> <p><a href="https://www.roblox.com/catalog/json?Subcategory=16&amp;CurrencyType=0&amp;SortType=0&amp;SortAggregation=3&amp;SortCurrency=0&amp;IncludeNotForSale=true&am...
0
[SOLVED] Why is the function never being done?
82966133
SteakBites
5
2023-03-05 21:21:49
<p>I can't figure out why the code isn't running, it is inside a local script.</p> <pre class='brush: lua'>local dialog = workspace["Test SellNPC"].Head.Dialog local function sellgold(player, choice) print("gold sold") end dialog.DialogChoiceSelected:Connect(sellgold) </pre>
133149
0
Proximity Trigger not working anymore?
538824226
Brioche_Noodle
45
2022-09-17 20:14:32
<p>My proximity trigger used to work. It was always working but now, it doesn't work anymore.</p> <p>I searched online but that didn't help so now I have to do this.</p> <p>Code:</p> <p>( Its a big one. Scroll down until you see, .Triggered )</p> <pre class="brush: lua">local ChatService = game:GetService("Chat") local...
131655
0
What is the service that filter a player's message before chatting?
59329444
Vlatkovski
320
2015-04-30 13:25:41
<p>I'm making a chat GUI and I need to filter the message a user enters. I remember that there is a service with a function that does this, but I completely forgot what service that is.</p> <p><strong>Edit 2: If you are going to down vote this, do you mind explaining why?</strong></p>
17135
2
20522
3
46052
chess123mate
5873
2015-04-30 14:00:31
<p>The <a target="_blank" href="http://wiki.roblox.com/index.php?title=API:Class/Chat">ChatService</a> has <a target="_blank" href="http://wiki.roblox.com/index.php?title=API:Class/Chat/FilterStringForPlayerAsync">FilterStringForPlayerAsync</a> which does what you want.</p>
0
What is an event script when a player joins a game?
25568705
guestnot99
112
2014-04-15 05:06:05
<p>I need this for a script that makes player invisible from entering the game.</p>
1528
0
how to make a hide and go seek game with the timer and player chooser?
594559580
davidbennettlee19
2
2021-06-09 00:12:27
<p>I don't know how to add a timer in this game I am making a hide and go seek game but I don't know how to make a random player chooser and a timer of when they get released to find the other players.</p>
124211
1
113232
2
569389517
dylindude
64
2021-06-09 01:00:20
<p>you could add a screen gui to the starter gui and edit it to whatever u want, then add a text label to that screen gui and then add this local script to the screen gui. This will only help with the timer, give me time as a think of a solution for the others.</p> <pre class='brush: lua'>local gui = script.Parent loc...
5
Vector3 to UDim2? [Discussion]
3508838
DigitalVeer
1473
2015-02-23 21:21:29
<p>What is a good practice to obtaining the position of an item in the 3Dimensional space and translating it into an X,Y <code>UDim2</code> relative to your screen (Scale)?</p> <p>The way I've done it with is by raycasting and taking the X/Y/Z relative to the cameras coordinateFrame. It's highly inaccurate [probably be...
15248
1
18322
4
18929555
TurboFusion
1821
2015-02-23 21:42:03
<p>Stravant has a ScreenSpace module script which contains multiple functions for interactions between the 2D screen and the 3D environment. I'll give you the function from the module that deals with what you're asking for:</p> <pre class="brush: lua">local M = game.Players.LocalPlayer:GetMouse() local Cam = game.Works...
1
How to make humanoid spin in a complete circle?
190475375
Never2Humble
90
2023-01-16 21:45:03
<p>Hello, This sounds like a relatively easy thing to do, yet I've somehow managed to waste quite a bit of time trying to make the humanoid spin in a complete circle.</p> <p>What am I doing wrong here? I know its that second half from this line that needs to be rotating the humanoid, but it instead turns the player tow...
132870
1
120000
2
559514967
T3_MasterGamer
1686
2023-01-17 13:02:42
<p>It's because you rotated the <code>character</code> directly at 360 degrees. To spin, you need to gradually increase the rotation until it reaches 360. You can achieve that using a <code>for</code> loop.</p> <p>In case if you don't know what a for loop does, it has two types: <code>for number = start, finish, increm...
4
[SOLVED] How can I make a server unjoinable?
157510912
General_Scripter
425
2016-01-24 16:35:11
<p>So, when I shutdown all instances, I've made this thing that saves the players' data and warns them it's about to shut down. I want to make it like berezaa's War Games so that players can rejoin (without joining that server even if there is space) as soon as the server shutting down message appears. There's probably...
26628
2
30717
2
19610427
idontcare2004
5
2016-02-08 17:37:03
<p>When when shutting down servers, the OnCalled connection does not keep the server active. It is made unjoinable like you wanted it to, I think you just didn't realise it already did that! Hope this helps...</p>
0
Invalid argument for 'pairs' (table expected, got string), but argument is a table?
103833540
deeskaalstickman649
58
2020-08-01 12:40:35
<p>I'm trying to issue a post request via RemoteFunction, but the in pairs() loop is not working.</p> <p>I'm getting an error trying to tell me im using the incorrect datatype for the 'pairs', but the argument is a table.</p> <p>Server script:</p> <pre class='brush: lua'>local http = game:GetService('HttpService') loca...
110461
1
101462
1
71182
boomboomsha
397
2020-08-01 12:53:32
<p>The reason why is that Roblox thinks php is the player, because RemoteEvents and RemoteFunctions automatically fire Player as the first argument, and your setting php to as the parameter for the player, to fix this instead of</p> <pre class='brush: lua'>game.ReplicatedStorage:WaitForChild('IssuePostRequest').OnServe...
0
Why does my nametag script apply to everyone?
102824475
NeoDogez
18
2022-09-04 19:53:54
<pre class='brush: lua'>wait(0.25) local Character = script.Parent.Parent local NameTag = script.Parent.Parent.Head:FindFirstChild("NameTag") if game.Players:GetPlayerFromCharacter(Character).UserId == 1227247890 or 102824475 then NameTag.Frame.Username.Text = Character.Name NameTag.Frame.GroupRank.Text = "Owne...
131510
0
How would you teleport players like a dueling position?
18369403
Lem0nzz
5
2014-03-02 23:11:09
<p>local players = game.Players:GetPlayers() local random = players[math.random(2, #players)]</p> <p>How would you get the 2 players you picked, to go to side1, and side2??</p>
453
0
How do I detect if the players health is 92 or lower?
1565853299
KneeDeepInTheDoot
4
2020-09-30 16:07:42
<p>Hi, I am trying to make a blood/gore script for my friend to use, and something's not working. Could you give me any advice?</p> <pre class='brush: lua'>if script.Parent.Humanoid.Health &lt;= 92 then script.Parent["Left Leg"].Instance.new("Decal") script.Parent["Left Leg"].Decal.Texture = "http://www.roblox....
113842
0
checked on a separate map, everything worked after I went to my map, bugs started right away???
1744613578
YTBrainBroYT
29
2021-04-25 17:56:00
<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 'Frozen Katana'...
122799
0
How do I put my own run and walk animation In my tool?
339941400
Superboybull2
2
2020-06-11 22:12:09
<p>Hello, I'm pretty sure you read the title. anyway, I've come to the question: How do I put run and walk animations In a tool? I don't have a code, YET. But I still need help. I'll try to put a code to make this easier.</p>
106142
0
[UNSOLVED] How do I stop game from freezing when I end game to save data?
96373787
hattim00
75
2022-06-20 00:05:11
<p>I have a script that saves data of a player before the player leaves the game. Sadly, this is causing the player to lag/freeze. (I have tested when disabling/commenting this script the game runs smoothly when exiting)</p> <p>I also receive this warning message:</p> <blockquote> <p>DataStore request was added to queu...
130413
0
How could I be able to make a Gui with a model/human in it?
180198062
Nimbzee
14
2019-06-21 23:08:19
<p>I'm trying to make a feature in my game where you start off like a noob, and in the menu which I have done, will have a button that takes you to the shop Gui but how could I surround the model in Gui and if you put on something it will equip it to the dummy/Model the assets will most likely be from the catalog so I ...
82228
1
How do you override animations when using tools?
4338714
OniiCh_n
410
2015-01-20 00:04:11
<p>Below are some gifs. I have a running and jumping animation (credits to crazyblox), but when I equip the Sword, the animations don't play properly. How can I make it so that the sword doesn't force the stance, but instead blends with the current animations. Watching the gifs will make this make more sense...</p> <p>...
14358
1
17398
1
5193371
Shrekerly
70
2015-01-20 04:12:05
<p>In the Sword's code, you should find a connection for .Equipped, under that, insert the code for the animation and it should play whilst you are wielding the blade.</p>
0
[CLOSED] leaderstats variables not saving for DataStoreService?
58729054
Dovydas1118
1072
2020-05-29 17:08:14
<p>I've been trying fix this problem of not saving my variables, I'm using 2 variables and I'm also using leaderstats with 2 intValues. I do not know why my data isn't saving. This is <em>server script</em>, and it's in ServerScriptService. The print statement at line 44 works, however, the print statement at line 64 d...
104754
1
96635
2
87736336
exxtremestuffs
345
2020-05-29 19:53:19
<p>I believe the source of your issues may be the <code>spawn</code> as it will cause the function to run in a separate thread that will be culled as the game shuts down. Make sure anything you do in BindToClose stays within the same environment so it can continue running as the game shuts down. I would suggest adding ...
0
ServerScriptService.EquippedTextChange:8: attempt to index nil with 'Equiped' error?
1241159283
guuguu058
9
2022-06-21 22:58:42
<p>HELLO! This is my 3rd time posting here and this is the error. here is the script script where the error is</p> <pre class='brush: lua'>local equippedgui = game.StarterGui.Inventory.Pets.ScrollingFrame game.ReplicatedStorage["buncha remote events for no reason"].r2.OnServerEvent:Connect(function(hello) print("1 ...
130445
0
Disable the main part of chat? so you can just see bubble chat
308618201
O_OIMGONE
9
2020-11-23 22:12:07
<p>I want something like this. In breaking point, when a round starts the main part of chat is disabled. So you cant see anything but bubble chat around you , while you can still type. I want this just as a function so I can make it happen when you die, and I don't want everyone's chat to be disabled I just want the pe...
116229
0
How do I play a walking animation for a custom npc model whenever it's speed is not zero?
25568705
guestnot99
112
2019-06-02 21:17:29
<p>I'm using the .Running event for a humanoid, and it doesn't seem to work. Any work around so that the animation only plays when the npc is moving?</p> <p>EDIT: I apologize, this was an issue with the code itself, I had a never ending while loop on top of the event function for the animation. The issue is resolved.</...
81097
0
Why are my unions invisible and unusable?
139520354
HeroFigo
26
2020-11-22 15:41:29
<p><a target="_blank" href="http://"></a>https://imgur.com/kkYlSzp</p>
116157
0
how would people add collision on this open source waves?
1014156252
Puppynniko
1059
2022-03-25 00:04:25
<p>http://devforum.roblox.com/t/realistic-oceans-using-mesh-deformation/1159345 how would i implement that to make the player swim when floating above the water I've seen people saying to use raycasting or others i would like to know a concept for it</p>
129454
0
How do I make a GUI's text the same for everyone?
25484931
lucas4114
607
2015-05-10 16:00:14
<p>SO... I have a GUI in starter GUIs, it's a game timer for the time left in rounds for my game, so theres a script in it that changes it.. BUT, the GUI isn't the same for everyone. D: If a player dies or a player joins at a different time the GUI goes on but shows it's own time.. I want the GUIs to show the same text...
17421
0
Why I use PathfindingService but it looks like a simply MoveTo()?
605354831
santi_luly1
47
2023-04-01 23:52:59
<p>So, the script works, but I'm using PathfindingService for a NPC but for some reason it's like i do a MoveTo(), like, no brain, I think that I'm too distracted to figure it out, so pls help</p> <p>I leave it to a Mediafire link bc the script it's too long for upload here www.mediafire.com/file/54ozsoccd52239e/Nuevo+...
133257
0
Can anyone explain why my RemoteFunction won't return true?
170361309
slatvr
0
2023-01-15 17:19:09
<pre class='brush: lua'>local PokeEvent = game.ReplicatedStorage.PuckPokeEvent function PokeEvent.OnServerInvoke(Player, StickPart, Torso, StickTool) print('event') local Debounce = false; StickPart.Touched:Connect(function(Touch) if Touch.Name == 'Puck' and Debounce == false then print(...
132846
0
How to I recreate this in my obby?
1527823663
kickoff127
15
2020-11-07 16:56:12
<p>I noticed that in Sea's Difficulty Chart Obby, they have this in there obby. It is where you teleport to another stage in the obby (I do not know how to put a image here). I do not know how to script well, so I cant do this. And if you complete a stage you can teleport back to a former stage. Please help me.</p>
115461
0
How does wait() and debounce work different from each other?
1394399228
VeberaXNX
4
2021-02-22 18:52:01
<p>I know that wait() delays things and debounce is cooldown but can't wait() just defeat the purpose of using a debounce?</p>
120523
1
109899
0
310696583
LeHelary
87
2021-02-22 19:22:25
<p>Uh correct me if I'm wrong, but as far as I know "debounce" is not an actual keyword. A debounce system is something used to prevent a block of code from being executed multiple times, causing problems. On the other hand, "wait" is a default Roblox function, that delays code execution. The "wait" function is also us...
1
Wait or Delay? / Delay or Wait?
2933011
Nickoakz
231
2016-02-19 06:14:28
<p>Just an ordinary question. Would you rather prefer or is there a better performance boost for using either delay or wait?</p> <p><code>print("Yay") wait(10) print("Done")</code></p> <p>or</p> <p><code>print("Yay") delay(10,function() print("Done") end)</code></p>
27606
1
31120
4
53688834
TheDeadlyPanther
2460
2016-02-19 07:56:35
<p>Not as far as I know, but:</p> <p><code>Wait()</code> stops the entire script for that time.</p> <p><code>Delay()</code> doesn't stop the script, it keeps going, even if <code>x</code> amount of seconds isn't up.</p>
0
Why does this script not function?
100172682
SonGohan6
8
2021-01-03 23:16:29
118119