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 this script trigger on player touch?
73453458
par1d
19
2019-09-05 19:37:50
<p>Hey, I have this script that makes a part move up and down however I would like the script to start when I have touched the part? How would I do this? Any help would be great ! :D</p> <p>Here is the script:</p> <pre class='brush: lua'>for i=1, 9999999999999999999999999999999999999999999999999999999999999999999999999...
87037
0
How do you give a player a tool from serverstorage?
10785587
Shaydesilva
85
2014-04-26 11:41:04
<p>Don't know how I would go about this... Someone please enlighten me?</p>
3578
1
4975
0
37346832
infalliblelemon
145
2014-04-26 11:55:22
<p>The ServerStorage Service is for storing items for the server, not for the player. Like, you would put Maps and stuff in it, instead of using the Lighting for that.</p> <pre class='brush: lua'>--Place the tool in lighting, then insert something like this game.Players.PlayerAdded:connect(function(Player) local cloney...
0
How do I keep this value from going into the negatives?
1144900
DeveloperAtWork
14
2014-03-01 14:09:47
<pre class='brush: lua'>function got() player = script.Parent.Parent.Parent.Parent.Parent money = player.leaderstats["Money"] bank = player.leaderstats["BankedMoney"] withdraw = script.Parent.Parent.MoneyValue if bank.Value &lt; withdraw.Value or money.Value &lt; withdraw.Value then script.P...
387
0
Trying to toggle all alarms from a button, not working with no errors?
441720480
TheStarWarsMaster856
16
2021-06-07 17:48:46
<p>This button I'm making is supposed to toggle on and off all of the spinning lights. There are no errors, but the ")" on the last "end" is red, and when i delete it, some of the script becomes underlined red too.</p> <pre class='brush: lua'>local button = script.Parent.ClickDetector -- your little button local lights...
124172
1
Script Doesnt Always Change StringValue, Why is that?
1680108820
JmoneyPlayzOfficial
49
2022-12-27 06:39:18
<p>i am making a fnaf bot system which it will check which room it is in / what the value is set to and then get a random number between 1 and 20, if it is below or equals the bot level, the bot will move, if it isnt, it will try again, it will choose a random number depending on what room the bot currently is, it will...
132671
1
119802
0
156586483
Leamir
3138
2022-12-28 16:41:47
<p>Hello, JmoneyPlayzOfficial!</p> <p>I see a couple problems in your script:</p> <ol> <li><p>The <code>currentRoom</code> variable is being set to a value, not mantaining the reference to the object. When you change a variable set this way, it will only change the variable, not the value of the object. To fix you just...
0
Why isn't my string value changing when i set a value?
672835190
Superexperiencedguy
7
2020-09-16 04:40:04
<p>I have created a local script in Starter GUI. What i want is to change a value that is also in starter gui. But when i run the script it doesn't work. Here is a small part of my script: There are no errors in output, either.</p> <pre class='brush: lua'>local Open = script.Parent.Parent.Parent.Open Open.Value = "Open...
113220
2
103944
0
158811
TGazza
205
2020-09-16 10:44:14
<p>Yeah you cannot change a server value with a Local script Directly. You need to hook your local script up with Remove Functions/Events then write another script thats on your server that listens to your remove event/functions and your Server script is the one what can change the values.</p> <p>Heres a couple of Snip...
2
How to send table as an argument in order?
123585026
NykoVania
231
2023-01-02 20:35:00
<p>I'm trying to send a table to a module, but the module doesn't receive the table in the same order as it is sent.</p> <p><strong>Main Script:</strong></p> <pre class="brush: lua">local Frame = FrameworkModule.FrameworkStuff( CurrentHitbox, Player, Modded, { Hits = 1, Debounce = 5, ...
132734
1
119845
3
39250676
ScriptGuider
5640
2023-01-03 01:12:58
<p><strong>The problem is with your data structure.</strong> When it comes to <strong>tables in Lua</strong>, there are two data structures:</p> <ul> <li>Array <ul> <li><code>{"a", "b", ...}</code></li> </ul></li> <li>Dictionary <ul> <li><code>{a = "a", b = "b", ...}</code></li> </ul></li> </ul> <p>(there is technicall...
0
Does my game have a virus???
1649347748
TestUser4646
1
2020-07-15 02:48:17
<p>My game in the output has:</p> <p>ScriptGuid "{EC3A881D-5F49-4644-A69D-FB60F2E59FF2}{d2c5e655-220f-48d5-b33b-a7f093fa5004}" invalid. Replaced with "{AD7C4C0A-44B5-4448-B2BA-864749EC0249}".</p> <p>Is that a Roblox thing and if it isn't any suggestions of how to access its origin?</p> <p>Also, when I play my game a Pu...
109094
0
How to get the Owner ID of game made by a group ?
967863407
DylanMonrency
2
2022-08-03 15:58:46
<p><strong><strong>SOLVED</strong></strong></p> <p>I want to make a code and i need to have the Owner ID of the group that made the game. Someone can help me, because i check many doc but i'v found no solution.</p>
131082
1
118409
1
226832508
MattVSNNL
614
2022-08-03 16:17:08
<pre class='brush: lua'>if game.CreatorType == Enum.CreatorType.Group then local success, result = pcall(function() return player:GetRankInGroup(game.CreatorId) == 255 end) if success and result then -- PLAYER IS AN OWNER end end </pre>
1
How to automatically close gui after 4 seconds?!
137521187
YourAverageMyth
16
2021-05-01 18:48:33
<p>Im making a murder mystery type game and i have guis to display the role of the player when the round starts. The game is locked in first person so i cant add a button and i want it to automatically close after 4 seconds. however, everything i try wont work. here is my code:</p> <pre class='brush: lua'>local killerW...
123002
0
Get player rank from HD Admin?
94006350
BulletproofVast
385
2021-05-05 05:09:10
<p>I have this function in a script that allows the player to bypass the anti-exploit if it returns true.</p> <pre class='brush: lua'>local function HasAdmin(id) for i = 1,#Administrators do if (string.upper(id) == string.upper(Administrators[i])) then return true end end local p...
123114
0
How do I change a player's body and accessories materials?
37330309
ArcanZus
61
2019-12-17 19:11:45
<p>I've tried this so far:</p> <pre class="brush: lua">local plr = game.Players.LocalPlayer local char = plr.Character or plr.CharacterAdded:Wait() local all = char:GetChildren("Parts") for i=1, #all do all[i].Material = Enum.Material.ForceField end </pre> <p>This only changes the body materials, without changing t...
91525
1
84730
1
675757462
maumaumaumaumaumua
628
2019-12-17 20:55:48
<p>GetChildren("Parts") doesnt need an argument, also what you're doing wrong is setting everything to a material and Humanoid &amp; accessories dont have that property, so you can do this to check if something is a part (BasePart) and then change its material</p> <pre class="brush: lua">local plr = game.Players.LocalP...
1
[SOLVED]How to delete a part and still be able to clone it?
31203559
soutpansa
120
2017-04-08 04:50:10
<p>I've got a script that clones a glowing arm shaped brick around the players right arm, with an electric effect, and a mesh to make it look more like an arm.</p> <p>Inside of the arm, there is a script named Deadly, the script fires a function when touched, to spread the electricity effect from the targets legs, to t...
41747
0
How would I make a part disappear locally?
1071181471
fcvrs
22
2020-07-28 13:53:49
<p>For example, I want to destroy a certain part of the map to reduce lag but obviously not destroy that part of the map for other players. How would I go about doing this?</p>
110156
0
How to replace every single character in a string with a certain character?
479196253
LazokkYT
117
2022-09-18 05:28:08
<p>Hi. I would like to know how I could replace a string with a character?</p> <p>For example, I have a string: "Hello, this is a string"</p> <p>What if I wanted to replace every single character in the string with an underscore? It would be like: "______ ____ __ _ ______"</p> <p>How would I put that into a script?</p>...
131660
1
118904
3
71530978
enes223
327
2022-09-18 06:49:44
<p>You can use regex to replace the characters, like "[%a%p%c]", you will just plug it in gsub and it will work. Example:</p> <pre class="brush: lua">local FilterCharacter = "_" local String = "Wow, I'm a string" local FilteredString = string.gsub(String, "[%a%p%c]", FilterCharacter) print(FilteredString) </pre>
0
[Solved] having trouble with players buying an item?
1222281551
botw_legend
452
2020-05-27 21:36:46
<p>so here is the code</p> <pre class='brush: lua'>local player = script.Parent.Parent.Parent.Parent.Parent script.Parent.MouseButton1Click:Connect(function() local MarketplaceService = game:GetService("MarketplaceService") local productID = 994379939 MarketplaceService:PromptProductPurchase(player,productI...
104558
0
Why I can't open team create in Roblox studio?
1792778813
Xapelize
2326
2020-01-20 11:58:50
<h1>Please note this is a old post, so the time when I posted this I was a young kid and a noob, please don't complain</h1> <p>I know, it not a script question. But I need help because I'll get a team create with my friend, but my Roblox studio kept crashes! Could anyone help? Every help is appreciated c:</p>
93295
0
How do I kill everyone inside of a specific team?
101146721
DemGame
246
2020-07-19 17:31:03
<p>I am trying to kill everyone inside of a specific team once a button is pressed. I already dealt with connecting a remoteEvent to when a button is pressed, so I am able to put this on a normal script.</p> <p>This is my code right now:</p> <pre class='brush: lua'>local seconds = game.ReplicatedStorage.Seconds local R...
109453
2
100537
4
1708043824
TheLuminent
970
2020-07-19 19:12:07
<pre class='brush: lua'>for index,value in pairs(game:GetService("Players"):GetPlayers()) do if value.Team == game:GetService("Teams")["Team Name"] then pcall(value.Character.BreakJoints,value.Character) end end </pre> <p>Here you go! This does exactly what you wish for.</p>
1
How to make a brick appear in a certain place?
32136988
SecretShadowLeague
0
2014-03-02 17:10:48
<p>I am trying to make a script that spawns a brick in a certain place then make it move. The moving part of it isn't that important unless you have to change the entire script (I don't think you will but, if you have too). Here's the script I have so far:</p> <pre class='brush: lua'>while true do A = Instance.new(...
441
2
753
1
64408300
RaverKiller
668
2014-03-02 17:21:20
<p>To set the Position of the part, you use Vector3.</p> <pre class='brush: lua'>while true do A = Instance.new("Part", Workspace) -- You spelled Workspace wrong. A.Anchored = true A.Position = Vector3.new(-10, 318.4, -224) -- Using vector3 B = Instance.new("SpotLight", A) B.Brightness = 5 B.Ran...
0
animation sometimes freezes limbs how to fix it?
348829746
ym5a
50
2021-10-13 20:15:27
<p>I've tried different animation priorities, nothing works. Heres what happens: https://gyazo.com/54cdcb181314cd9c881e69eda661a87e</p>
127858
0
pcall still shows error in console after function render?
331809274
TechModel
118
2022-06-22 08:58:33
<p>I have a local function running when objects are present in the workspace, but then gives me error even with pcall? Do I put the pcall inside the local function or outside to not get the error?</p> <pre class='brush: lua'>local function Spawns() local c c = game:GetService("RunService").RenderStepped:Connect...
130458
0
How would I get an auto ranking application center WITH a bot?
455849152
C0nn0r_DevCT
42
2019-10-06 18:46:45
<p>I want an application center that would auto rank a player if they passed.</p>
88431
0
how do you make a gui connect to the leaderstats??
791037399
Hafrew
13
2021-01-12 19:29:49
<p>****Very oofed im trying to make a gui that shows your cash but i cant seem to do it. my script:</p> <pre class='brush: lua'>local suffixes = {'','K+','M+','B+','T+','Qd+','Qn+','S+','Sp+','O+','N+','D+','U+','Dd+','Td+','Qd+','Qnd+','Sd+','Spd+','Od+','Nd+','Vg+','Ug+','Dg+','Tv+','Qt+','Qv+','Sv+','Sg+','Ov+','Ng+...
118604
0
How to add rarity to my item loading script?
58010204
tightanfall
110
2021-09-19 19:18:08
<pre class='brush: lua'>local ItemRooms = {} local Items = {} local DescCoolDown = false local LoadEvent = game.ReplicatedStorage.RemoteEvents.LoadEvent local function LoadItems() local ItemFile = game.ReplicatedStorage.Items for _, v in pairs(workspace:GetDescendants()) do if v:IsA("Model") and v.Name ...
127559
0
Why does this appear in my Output box?
13667373
EzraNehemiah_TF2
3552
2014-11-15 19:46:07
<p>I have made a few scripts but whenever I test it, in my output it says</p> <p>14:30:45.738 - "Humanoid.torso" should be "Torso" in Script</p> <p>So I used the "Find All" in the script menu to search for Humanoid.torso, and none showed up.</p> <p>What is happening?</p> <p>The scripts</p> <pre class='brush: lua'>--[[ ...
12484
1
Arm Visible in First Person?
28187465
Nytroz
15
2015-04-19 11:57:01
<p>What I really want is to be able to make the characters arms visible while in first person as in you could see their arms swinging as they walk etc. But I don't know how to do this, thanks for you help</p>
16846
2
20223
4
65394358
RM0d
305
2015-04-19 12:00:27
<p>a local script in startergui</p>
1
How do I make this more accurate?
76649634
theCJarmy7
1293
2016-06-05 00:28:31
<pre class='brush: lua'>function tween(part,pos,tim,stop) --stuff local function stuff() --for the stopige local runs = 100 --smoooth local ToTake = runs*.03 --time it will take if ToTake&gt;tim then repeat runs=runs-1 ToTake = runs*.03 ...
31378
1
34554
3
2155311
EgoMoose
802
2016-06-05 00:37:27
<p>You have the right idea with the lerp function. The goal here is to get a value between 0 and 1 and have it correlate to the time it should take for the entire tween to complete.</p> <p>In my opinion the easiest way to do this is to get the tick when the tween is started and then find the difference in time after yo...
0
How do I use the Duration property in a spawn location?
1527823663
kickoff127
10
2021-02-21 14:18:55
<p>I want a game where you have a inf force field but when you are in the game, it goes away. Script:</p> <pre class='brush: lua'>script.Parent.Touched:Connect(function() game.Workspace.Spawn_Area.SpawnLocation.Duration = 0 end) </pre> <p>Nothing happens. Please help me. Thank you!</p> <p>My script that puts you in...
120462
1
109849
0
2064787945
Punctist
105
2021-02-21 18:34:52
<p>Put this inside ServerScriptService inside a script.</p> <pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) local ff = Instance.new("ForceField") ff.Parent = character end) end) </pre>
0
Why does this error? &quot;SampleText&quot; is not a valid member of
136245173
SharkRayMaster
81
2021-10-25 06:56:27
<p>Ok a quick explanation, This tool executes the "else" part if it doesn't find "PLRcrushed"</p> <p>And that works, the problem is at the beginning I set "MPART" to "SampleText" but once the function is fired if the humanoid is R6 or R15 it sets "MPART" to a different string, though, it doesn't work.</p> <p>The code e...
127976
1
115951
1
158811
TGazza
1306
2021-10-25 12:54:06
<p>try this, Ive made some changes to what you have to make sure it doesn't error out...</p> <pre class='brush: lua'>local toolio = script.Parent local Sounds = toolio.Handle.Sounds local MPART = "SampleText" --// new function to grab the player and the character from a part function getCharacterAndPlayerfrom(part) ...
2
What is the Value of a newly created Data Store?
29413559
alphawolvess
1784
2015-05-02 16:39:39
<p>When a player joins and you use <code>:GetDataStore()</code> I believe it will create the new one with the name inside. So, now that a new DataStore was created i'll call it <em>Storage</em> for this question. The Key of <em>Storage</em> will be the name you put in <code>:GetDataStore()</code> , so what will its val...
17202
1
20601
2
386992
BlueTaslem
18071
2015-05-02 16:41:41
<p>From <strong><a target="_blank" href="http://wiki.roblox.com/index.php?title=Data_store#Methods">Data store article on the Wiki</a></strong><sup id="fnref:1"><a href="#fn:1" class="footnote-ref">1</a></sup></p> <blockquote> <p>GetAsync(key)</p> <p>Returns the value of the entry in the DataStore with the given k...
0
player.Chatted() function not working?
559514967
T3_MasterGamer
2189
2022-05-03 01:20:01
<p>So I was making a <strong><em>verification-kinda thing</em></strong> in my obby game <strong>that when you guessed the correct code (random each server) in the chat you will teleport to the next level, and when you guessed it wrong you will die, and start over.</strong> But the script is <strong>not working</strong>...
129899
1
117358
1
1715522570
BeautifulAuraLover
371
2022-05-03 09:11:58
<p>Hello, it is really easy! You put while loop before it connected the events which means they will never get connected because code will never reach it. Use spawn function or better put it after these connections. And that loop is not even needed, learn more about code mechanics.</p> <pre class='brush: lua'>local cod...
0
Dynamic joystick is also moving camera?
828407419
shinyshadowguy7
0
2023-01-15 16:48:42
<p>I am using a custom movement system and the default camera system. I have recently tested my game with a mobile phone and when using the dynamic joystick, it will also move the camera with it. How can I fix this?</p>
132844
1
Hiya! I was wondering how death functions and teleportation work with models and not tools?
61654611
deputychicken
226
2014-03-01 15:37:44
<p>I had someone answer my last question on it, with a script, but their script doesn't work for some reason, I think it was because they put handle.Cframe, and there isnt a handle... anyway, i was wondering if someone could teach me about teleportation when a person dies, here is the script :D</p> <pre class='brush: l...
390
1
Why does lua think this number is NaN? [Solved]
212735122
Psudar
882
2019-08-09 12:33:05
<p>I was checking my understanding of what Magnitude is, and so far everything was going alright, but then I got this NaN error.</p> <p>Furthermore, the equation for magnitude on a 3d Vector looks like this:</p> <p><strong>V = Vector</strong></p> <p><strong>Vx, Vy, Vz = Vector components</strong></p> <p><code>||V|| = s...
85393
0
Why won't this work?
43561529
BritishGotSwag
30
2014-05-06 01:16:16
<pre class='brush: lua'>local Message = Instance.new("Message") Message.text = ("Test") Message.Parent = game.Workspace wait(5) Message:Remove() </pre>
4407
2
5953
1
18929555
TurboFusion
1821
2014-05-06 01:26:09
<p>1) The word "text" in <code>Message.text</code> has to be capitalized. 2) <code>("Test")</code> isn't supposed to have parenthesis around it</p>
1
What is Trello and what are the benefits of it?
60263778
KingLoneCat
2642
2016-02-10 16:25:52
<p>Hey there, So I've been seeing trello a lot on scripting helpers and I want to know what Trello is exactly and what it can be used for on Roblox what are the benefits of Trello?</p> <p><em>Thank you for reading this question and I hope someone can answer it.</em> <strong>Please try and explain in the simplest terms....
27268
3
30794
5
65765854
eLunate
5136
2016-02-10 18:41:37
<p>Trello is a team collaboration platform designed as a giant to-do list. It allows you to collect information into lists of cards, and each card can have details such as image attachments, to-do lists, due dates and other things. It's useful for coordinating teams or just showing off what you've been doing recently, ...
1
How do I get a players ID from their username?
60765643
DennisSense
23
2019-08-13 19:36:26
<p>I am using a regular server script, which it can not get the users playerID.</p> <pre class='brush: lua'>script.Parent.MouseButton1Click:Connect(function(Player) local playerId = Player.UserId script.Parent.Parent.No1.Value:WaitForChild('Eng').P1.Disabled = false wait(2) script.Parent.Parent.No1.Valu...
85705
2
79518
1
49468144
Velsity
218
2019-08-13 19:58:41
<pre class='brush: lua'>local player = game.Players.LocalPlayer local ID = player.UserId script.Parent.MouseButton1Click:Connect(function() print(ID) script.Parent.Parent.No1.Value:WaitForChild('Eng').P1.Disabled = false wait(2) script.Parent.Parent.No1.Value:WaitForChild('Eng').P1.Disabled = true s...
0
Laggy when you place too many blocks in my game?
676151371
rubixxman
4
2022-02-22 20:09:19
<p>When you place a block in my game, it has a texture instance on all sides. The block is 3.5 studs on all axis. When there's around 10 players in my game, it tends to get extremely laggy. How do I fix this problem?</p>
129096
0
Can a script tell if someone is using a auto clicker?
909135938
Fenkingamer09
26
2020-09-15 00:00:41
<p>I have recently have been wanting to make a simulator and I don't want people to cheat in my game using auto clickers and stuff like that and whoever does should get kicked</p>
113170
1
103901
0
1565621745
BluelyTASer
10
2020-09-15 00:41:16
<p>This should do the trick, I guess.</p> <pre class='brush: lua'>local clicks, limit, timer = 0, 100, 1 function playerClicked() if clicks &lt; limit then clicks = clicks + 1 -- Do whatever you want here end end while wait(timer) do clicks = 0 end </pre>
0
How to make a textlabel stay inside of a frame?
2053085708
plf4wef4ef
4
2023-01-23 01:33:02
<p>I have a text label inside of a frame but once I move it outside of the frame it is visible I would like the text label to disappear after dragging it to the baseplate (outside of the frame)</p> <p>this is a screenshot https://postimg.cc/6466fh9M</p> <p>it shows that the text label is visible after dragging it out o...
132919
0
How should I start off being a Developer like what should I do first to help me get experienced?
186454593
Iskillinqz
0
2018-06-30 00:04:31
<p>making me a better Developer?</p>
61439
6
How does Coroutine work?
17514438
TheeDeathCaster
2319
2014-05-27 04:44:46
<p>'I wanted to ask this, this was meant to be asked before but forgotten'</p> <p>I dont how how <code>coroutine</code> works, nor how it is used for what. I know there is <code>coroutine.create(coroutine.resume(function()</code>, but I dont know how it works, nor how to use it.</p>
5636
1
Why won't my leaderstats save?
238838551
PadmeOragana
41
2020-07-31 23:57:25
<p>So, for my game, I want my leaderstats to save. I've tried datastores and whatnot, but nothing ever works. I then resorted to using a plain leaderstats save. I reused my old leaderstat save from another one of my old games, and it worked in that game, but it doesn't work for this new game... It's a normal script in ...
110428
0
Confusing text box error attempt to conpare number with &lt; nil?
328574950
NotOreo9
8
2023-01-13 22:37:55
<p>So this is my script:</p> <pre class="brush: lua">local player = game.Players.LocalPlayer local tokens = player.leaderstats.Tokens script.Parent.MouseButton1Click:Connect(function() if tonumber(script.Parent.Text) &gt; game.ReplicatedStorage.CurrentBid.Value or game.ReplicatedStorage.CurrentBid.Va...
132826
1
loadstring() Is not available?
139733783
fenix2020
7
2019-06-10 16:49:17
<p>So I made a script builder script, because i'm a fan of script builder, And it gives me this error: "loadstring() is not available"</p> <p>The script is this:</p> <pre class='brush: lua'>function Clicked() if script.Parent.Parent.Execute.Text ~= nil then spawn(function() loadstring(script.Par...
81519
0
How do I make This TextLabel Display the Current Event based on the ClockTime in game?
444613248
BloomFlame1
2
2023-02-12 00:45:45
<p>In my game is a UI in the right top corner of the screen that displays the current time (7:00 AM, 10:30 AM) and below it is the current activity going on at school (Classtime, Lunchtime) I looked around to find some scripts that could help and I found this one script but I don't know certain terminology and details ...
133054
0
Coded doors
30372619
Roboy5857
20
2014-03-05 20:20:22
<p>So I have a game I wanna but a coded door with. Bad part is I am having trouble with it. Example: there is a door with numbers and say I want the code to be 6709. How'd I do that?</p>
504
0
How do I cut a hole in a MeshPart?
407180563
robloxtitanic584
87
2021-01-05 21:27:39
<p>How do I cut a hole in a MeshPart?</p>
118258
1
108198
1
472504641
AlexanderYar
465
2021-01-05 21:59:11
<p>read this: <a target="_blank" href="http://devforum.roblox.com/t/how-to-negate-and-union-cut-a-mesh-part-fbx-or-obj/635356">link</a></p> <p>this is how to do it: <a target="_blank" href="https://devforum.roblox.com/t/how-do-i-create-unions-with-a-script/331677/2">link</a></p> <p>basically you can union negative part...
0
Torso is not a valid member of Model? [SOLVED]
151545165
RiskoZoSlovenska
378
2017-09-06 01:31:01
<p>I want to <code>print()</code> a player's current Position, but I don't know how. I tried printing the position of the player's Torso with <code>print(game.Players.LocalPlayer.Character.Torso.Position)</code> and <code>print(game.Players.LocalPlayer.Character:findFirstChild('Torso'))</code> but it either returns a e...
47657
0
How do I update the Player's Avatar without Resetting if I'm using a StarterCharacter?
444613248
BloomFlame1
2
2023-02-20 17:42:09
<p>In my game, blood splatters are supposed to appear on the Player when they kill an NPC. These blood splatters are parts on the Player's StarterCharacter. On the parts are decals for the blood and their transparency is set to 1.</p> <p>In this script, it's supposed to set the Transparency of the Blood Splatter Decals...
133096
0
Attempt to index nil with find first child ?
180198062
Nimbzee
14
2021-02-22 23:40:19
<pre class='brush: lua'>  15:31:08.179 Players.Nimbzee.Backpack.Lightsaber.Functional.Server:505: attempt to index nil with 'FindFirstChild' - Server - Server:505 </pre> <p>hello, I'm a beginner scripter that is still learning to code. I am receiving this error on line 505 but don't know why.</p> <p>I have a data st...
120543
0
How to teleport players to the same server that are standing on the same part?
1722023006
OhBrotherGaminYT
11
2021-05-01 22:10:31
<p>I was researching it and none of them helped me. Is there any way to do this?</p>
123007
0
TimeOfDay doesnt see the value 6 as 6:00:00?
542497
KingJacko
0
2014-04-16 12:20:01
<p>How would i go about doing this? It is supposed to give me bricks(a leaderstat value) when the TimeOfDay is greater than the start, and less than end.</p> <p>If i have a start and end value(they are numbers for hours),</p> <p>Hours = stats.Hours Start = Hours.Start End = Hours.End</p> <p>start = 6 end = 18</p> <p>I ...
2131
0
How do i make a script that moves a model to workspace when a certain NPC has died?
1406016964
AMissingKid
0
2022-05-03 10:01:00
<p>im very new at scripting so please tell me how to do this</p>
129901
0
Why does it say Attempt to index nil with Humanoid?
469500873
poppyloverb
20
2021-05-15 21:24:52
<p>It ran an error and this is my code:</p> <pre class='brush: lua'>local player = game.Players.LocalPlayer local mouse = player:GetMouse() local Hum = player.Character.Humanoid local animation = script.Animation local kick = Hum:LoadAnimation(animation) mouse.Button1Down:Connect(function() kick:Play() end) </pre> ...
123472
0
Why is my Remote Event not working for the client?
529859410
JackyW9cky
27
2022-06-15 13:48:50
<p>I am trying to make a game where you need to press a button to unlock an exit. The button model I am using has a ClickDetector inside of it. I also have a Script, RemoteEvent, and LocalScript inside as well. I tried to program my Script to fire the RemoteEvent on the Client. Then, my LocalScript will receive that Cl...
130366
2
117716
0
1354321048
Hi_People1133
218
2022-06-15 15:41:35
<p><strong>Hello,</strong></p> <p>You have made a mistake in the argument of the Server Script that you haven't defined which Player the server will trigger the event for. The <code>FireClient()</code> should have the first Parameter of <code>FireClient(Player)</code> (Player). This would be like,</p> <p><code>Code Exa...
0
Zombies that avoid walls?
18369403
Lem0nzz
5
2014-03-06 16:47:25
<p>What's a good script, that would allow zombies not to bump into walls while they chase you?</p>
522
0
why will this script only focus on the first value?
179301649
zValerian
108
2018-07-16 02:29:32
<p>when I run this script:</p> <p>SERVER SCRIPT</p> <pre class='brush: lua'>wait() text = script.Parent.text if script.Parent.PlayerCount.NumOfPlayers.Value == 1 then text.Value = "Welcome to SURVIVAL GAMES!" game.ReplicatedStorage.Remotes.ann:FireServer() wait(10) text.Value = "If you don't know ho...
62851
0
How can I make an OnPlayerAdded and CharacterAdded function only happen when player joins?
146413048
CaptainD_veloper
290
2019-01-04 04:36:15
<p>I have an OnPlayerAdded and CharacterAdded function that I only want to happen when the player joins. How can I do this?</p> <pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(plr) plr.CharacterAdded:Connect(function(char) print(plr .. "spawned") end) end) </pre>
73743
0
How to convert client-reliant game to server-reliant game without sacrificing the immediacy?
154638712
chillyenorman80
2
2022-03-31 05:08:05
<p>The game is inspired by Mario Odyssey, so pretend you're converting something like that to an online server-based game.</p> <p>Given that the delay between the server and client is dependent on the player's connection, many have said to render the effects on the client for immediate feedback, and then check and fina...
129498
1
117100
0
1383341245
SprinkledFruit101
135
2022-03-31 08:42:37
<p>I think you should leave the server to changing the important game-breaking values, or the values for something you want everybody in the server to see (ex. Appearance/Avatar). Changing a value on the server will make it so that change appears to everybody in the server. If you change the amount of money you have on...
0
Find a player with only a part of their username?
19498972
awfulszn
394
2018-08-26 17:56:28
<p>I am attempting to find a player when only typing in a part of their username in chat, however what I have managed to do is print all the players names if their name had a 'h' in it, if I typed the letter 'h', no matter where in the name it is. I am trying to make it so it reads from the start of the name, not just ...
66258
2
My Model DeadBody wont spawn in the right place?
28197816
neoG457
315
2015-05-10 12:14:38
<pre class="brush: lua">DedScript = game.Workspace.Human.DeadBody ded = game.ReplicatedStorage.Dead:Clone() chest = game.Workspace.Human.Torso Heart = Instance.new("Part") local w = Instance.new('Weld') w.Part0 = Heart w.Part1 = chest w.C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0 , 0, 0) w.Parent = chest i...
17418
1
20822
3
16826035
YellowoTide
1992
2015-05-10 15:13:26
<p>Your error is on line 40, heart is a object not a CFrame. All you need to do is change it to this</p> <pre class="brush: lua">ded:SetPrimaryPartCFrame(Heart.CFrame * CFrame.new(0, 0, 0)) --see now we are getting the CFrame of the heart </pre>
0
How do I open a Frame only ONCE when the player joins my game?
873085534
StockBAMBAM
2
2020-08-01 15:22:15
<p>I am trying to make a FrameGUI that will display the current news. When a player joins the game, I would like it to display on his/her screen (not on other people's screens, so I used a localscript) I made a textbutton to close the Frame. Inside it I made a localscript, and I scripted:</p> <pre class='brush: lua'>sc...
110474
1
101477
0
131470756
Pupppy44
423
2020-08-01 17:01:49
<p>Turn off ResetOnSpawn for the GUI.</p>
1
How can I lock character movement to an object's axis?
1085356580
LeedleLeeRocket
1179
2020-09-09 14:44:00
<p>I'm making a cover system and so far, I have it so that when the player presses 'C', it casts a ray from the character's lower torso's look vector about 5 studs out. If the character detects cover, then it will play a cover animation. Everything works perfectly so far. The next course of action is sticking the chara...
112923
1
103674
1
118343046
Elyzzia
1274
2020-09-09 15:28:06
<p>you can use CylindricalConstraints to only allow an object to move on one axis <a target="_blank" href="http://">https://developer.roblox.com/en-us/api-reference/class/CylindricalConstraint</a></p> <p>as for actually figuring out how the Attachment0 should be rotated to get said axis, you can use the cross product o...
0
Can you save a table in DataStoreService?
353632707
SuperSM1
38
2021-10-11 18:53:17
<p>The title says it all.</p>
127841
1
How do I change the position and orientation of a model in a script?
75500622
TtuNkK
37
2020-06-04 19:37:01
<p>I have a model that I'm trying to use as an ability, but since it's a model, I can't change its position or orientation. I tried using a in pairs loop, and using cframe and cframe angles, but that creates a problem because it would mess up how I want the model to look. Is there anything to solve this problem? Thanks...
105355
0
Why does my script clone a new object twice?
74161519
ByteError
32
2020-06-30 02:43:54
<p>This script is inside a block.</p> <p>When I click on the block with a tool it fires to server and makes the block start getting more transparent and then it's transparency ends at 1 and turns CanCollide off.</p> <p>This script is inside the block and detects when the block changes transparency, and when it's at 1 i...
107813
1
99105
1
39168789
memguy
141
2020-06-30 02:54:10
<p>You should use</p> <pre class='brush: lua'>:GetPropertyChangedSignal("Transparency") </pre> <p>so the script would look like this</p> <pre class='brush: lua'>boneType = script.Parent.Name debounce = false script.Parent:GetPropertyChangedSignal("Transparency"):Connect(function() if not debounce then debou...
1
How To Give Players (Clients) The Ability To Show &amp; Hide Gui?
20425447
ultraplage
11
2018-11-22 18:14:03
<p>This is what i tried, but failed hard hahaha then, realized if this did work my button would be hidden and then the players wouldn't be able to see the button to show the gui again....is it even possible to do this?</p> <pre class='brush: lua'>local hgui = script.Parent local gui = game.StarterGui.ScreenGui hgui.Mou...
70990
1
67473
0
89430243
Amiaa16
3227
2018-11-22 18:26:49
<p>First of all, <code>StarterGui</code> is just a storage for guis which are later <strong>cloned</strong> into <code>PlayerGui</code>, so modifying the one inside there won't do anything, You need to modify the already cloned one.</p> <p>Second of all, you don't have to hide the entire gui. You can hide the main fram...
0
Making A Clicker Game And Have This I Cant Figure Out How To Make Work?
129433363
xxethanb1xx
14
2018-09-26 20:02:18
<p>so im trying to make a clicker game where it saves the price of what your item is at but the datastore is too confusing for me ive looked on youtube but i dont understand it could someone please help also there are 2 scripts</p> <p>this is the script thats for the item its a local script in a starter gui</p> <pre cl...
67983
0
Why is my achievement system not working for my npc?
1380041932
Boyuanbogosess
4
2022-06-17 22:23:07
<p>So i have a code here thats in an npc and i want to make it that like u can feed the npc and then when it gets to a certain amount it gives u the badge but the problem is that its not running for some reasing. the rest of the code runs fine its just the if food value == 6 part that dosnt work. i also tried putting s...
130384
1
117736
0
35984692
Xientra
17
2022-06-18 12:00:32
<p>Correct me if I'm wrong, but it seems you're only checking the food value when the script first runs and not when the food value is updated.</p> <p>I'd either move lines 16 - 42 in between lines 12 - 13:</p> <pre class='brush: lua'>script.Parent.Head.InteractProx.Triggered:Connect(function(plr) if plr.Character:...
0
button door script not working?
13970097
namelessassasin
30
2014-04-12 22:50:59
<pre class='brush: lua'>door=script.Parent.Parent.trapdoor function onCicked() door.Transparency=0.6 door.CanCollide=false wait(2) door.Transparency=0 door.CanCollide=true end script.Parent.ClickDetector.MouseClick:connect(onClicked) --this my script, i do not know why it does not work </pre> <pre class='brush: lua'>do...
1259
1
Inserting players into Table using touched event
1258804
CrniOrao
28
2014-02-21 20:13:23
<p>So, how would I be able to do it?</p> <pre class="brush: lua">Admins = {} script.Parent.Touched:connect(function(hit) if hit.Parent:findFirstChild("Humanoid") then --What now? :) end end) </pre> <p>Also, how would I check if the player that touched it is already in the table so there is no duplicate player entries?<...
204
3
How to make a GUI rotate towards a pixel position?
38247353
coo1o
227
2014-03-08 03:23:08
<p>Anyone familiar with <code>CFrame.new(position, pointAtposition)</code>? It changes a part's position and look straight at another part. Now obviously <code>CFrame.new</code> doesn't work with GUIs. A few months ago the Rotation property was introduced to <code>GuiObjects</code> which rotates GUI's. Ok so the proble...
562
0
Cannot store Dictionary in data store?
114942345
DragonSpawner12
61
2020-08-10 21:48:44
<p>So I made a placement system and you can change its color, material etc. But the only thing that doesnt work is saving the build. here is my script:</p> <pre class='brush: lua'>local partTable = {} for i, inst in pairs(workspace:GetChildren()) do if inst.Name == "BuiltBlock" then local position = inst.Po...
111133
1
102035
1
87736336
exxtremestuffs
380
2020-08-11 00:50:11
<p>The issue isn't actually the dictionary- it's the contents. DataStores are effectively JSON tables, so they can only store numbers, booleans, tables, and strings. You could fairly easily store the Vector3s and Color3s as arrays/dictionaries like</p> <pre class='brush: lua'>local vector3 = { X = myVector3.X, ...
0
how do i make coin disappear forever for player who touched it?
218680759
ILYUSHkakilLeR2008
0
2020-07-21 08:08:28
<p>So i was making with friend obby game with coins, and i don't know how to make coin disappear forever cause when you rejoin it appears. Please help? btw im new at scripting</p>
109594
0
How do I make guns in TurboFusion's gun kit more accurate?
13369364
hdgross
0
2016-09-18 17:53:43
<p>Basically I'll spend and hour configuring the AimPart to be in the perfect position only for the gun to fire to the far left despite a spread setting of 0. I've also encountered a bug where random guns cause the player to walk in place, further decreasing the accuracy. I'm trying to make a DMR, so accuracy is a key ...
35709
0
Why is this data store not working?
1600676
MasterDaniel
320
2014-06-14 17:21:05
<p>This script makes a GUI label visible if the player has 0 saved under CheckpointReached and sets it to 0 if the player doesn't have any data stored. This function is called when a button is pressed to view whether they had any data saved. However it doesn't work - there are no errors though. What has gone wrong?</p>...
6666
0
Why do i have to sometimes put a ) at end?
57249717
iluvmaths1123
198
2014-07-10 22:41:01
<p>Why do i have to sometimes put a ) at end?</p>
7912
2
10273
5
3774904
TofuBytes
500
2014-07-10 22:51:18
<p>Well, there's a difference between <code>end</code> and <code>end)</code>. For example, have a while true do function. It will not require a ')' at the end because it is not a function that is uses '()' in general.</p> <pre class='brush: lua'>while true do wait(1) print('Hello world!') end </pre> <p>But, if we do so...
0
Keycode Is not a valid EnumItem?
339941400
Superboybull2
2
2020-06-07 14:29:06
<h2>My code is this:</h2> <p>--// Functions</p> <p>UIS.InputBegan:Connect(function(Input) if Input.KeyCode == Enum.KeyCode.X then if Chatting == true then Exit = true Sounds.Click:Play() end end end)</p> <p>UIS.InputBegan:Connect(function(Input) if Input.KeyCode == Enum.Keycode.Z then if Chatting == true then Exit = tr...
105636
2
97367
0
57515748
Mikael20143
133
2020-06-08 09:11:17
<pre class='brush: lua'>UIS.InputBegan:Connect(function(Input) if Input.KeyCode == Enum.KeyCode.X then if Chatting == true then Exit = true Sounds.Click:Play() end end end) UIS.InputBegan:Connect(function(Input) if Input.KeyCode == Enum.Keycode.Z then if Chatting == true then Exit = true Sounds.Click.Play() end end end...
0
How do I fix the LocalScript:35: attempt to index function with 'FireServer' error?
50761263
SecretPax
20
2020-07-10 04:37:55
<p>I don't know what is wrong with the error... Please help! LocalScript:35: attempt to index function with 'FireServer'</p> <pre class='brush: lua'>local tool = script.Parent -- Getting the tool local player = game:GetService("Players").LocalPlayer -- Getting the player local mouse = player:GetMouse() -- Getting the m...
108662
0
So I've been trying to make a clock using a remote event, why wont the script work?
42705307
IAmSoloz
14
2018-05-23 13:46:20
<p>Normal Script the one that fires the remote event</p> <pre class='brush: lua'>local TimerStart = Instance.new("RemoteEvent") TimerStart.Parent = game.ReplicatedStorage TimerStart.Name = "TimerStart" function onTouch() print("working") TimerStart:FireClient() end script.Parent.Touched:connect(onTouch) </pre> ...
58866
1
57344
2
205083914
MooMooThalahlah
421
2018-05-23 14:05:18
<p>Looks like you're missing an <code>OnClientEvent</code> in your Local Script. Should also rename your event so it's not the same as your function.</p> <p>Local Script</p> <pre class='brush: lua'>TimerStart.OnClientEvent:Connect(TimerStart) </pre> <p>Also, specify which client to start the timer. Server Script</p> <p...
0
Anyone know how to make a sound when you leave the game?
1327552077
Waffwels
2
2021-09-11 23:29:46
<p>In get a snack at 4am if you leave the game it plays some ufo sound and I really thought that was cool so anyone got the script for it?</p>
127377
0
How to make a Label change text in a RANDOMIZED order?
1696235625
Cubispaghettis
1
2023-01-22 18:23:56
<p>Hello. I have a scripting Question. So I am trying to make a Topic Chooser for a game and I want the topics to be randomized. For example, the Label says "Topic Chosen: A" then after 112 seconds it changes to "Chosen Topic: B". However, I want the order to be completelely randomized. Here is the script I have that c...
132910
0
Can I get a list of a users friends?
55088775
NotsoPenguin
705
2015-03-09 01:27:41
<p>How can I get a list of somebody's friends? I know I will probably need to use <code>HttpService</code> but I do not know of an api that I can get friends from.</p>
15624
0
How do i find a players' humoid by clicking a GUI button?
1593155829
OreyTheOre
12
2021-02-21 20:03:12
<p>Hey there, i'm trying to do this script</p> <pre class='brush: lua'>local part = game.Workspace.TestMenuLocation script.Parent.MouseButton1Click:Connect(function() local human = script.Parent:FindFirstChild("Humanoid") human.Parent.HumanoidRootPart.CFrame = part.CFrame or human.Parent.Torso.CFrame == part.CF...
120476
1
109859
0
2064787945
Punctist
105
2021-02-21 20:30:36
<p>Change your script to a localscript. Also there is no HumanoidRootPart inside a Humanoid. But this will work :)</p> <pre class='brush: lua'>local part = game.Workspace.TestMenuLocation script.Parent.MouseButton1Click:Connect(function() local thing = game.Players.LocalPlayer.Character thing.HumanoidRootPart.C...
0
Is there a way to know if a text box isn't selected?
372313609
CjayPlyz
580
2018-05-31 06:28:48
<p>read the title it says everything i need to say</p>
59348
0
How do you identify if a certain leaderstat exists?
31555337
taxicar24
19
2022-09-11 02:11:52
<p>Reposted due to no answers after 4 weeks.</p> <p>So, I have been trying to make a sword fighting typed game, with only one person doing it at a time. I have added a leaderstat value named "Status" to show when each player would take their turn (ex. Fighter 1, Fighter 2, Fighter 3, etc.) and I have a working script (...
131584
0
Why do I get weird error's inside my game even tho I don't have any scripts in my game yet?
1613271651
EMoreLikePp
1
2021-09-19 18:05:44
<p>Requested module experienced an error while loading, Unable to load plugin icon. (x2)</p> <p>Are 2 examples of different error's I've been randomly getting. Why is it doing that? Could someone explain it because I've not used any scripts inside my game execpt:</p> <p>local clickDetector = workspace.Union.ClickDetect...
127555
0
How do you transfer leaderstats from one game to another?
682417590
SubNinjaPav
7
2021-06-08 13:43:41
<p>Hello i'm making a obby type game where you can enter various difficulties of obbies. And if you beat one you get a certain amount of Zoreens (my point system). I want to make it so when you finish an obby you get the Zoreens and instantly get teleported back. I've done the teleporting part but do not know how to tr...
124193
0
How Do I Fix &quot;Infinite yield possible on 'Workspace:WaitForChild(&quot;Spawn&quot;)&quot;?
488359021
Lawrence_Official
0
2018-12-26 12:47:38
<p>Heres My Script</p> <pre class='brush: lua'>local status = game.ReplicatedStorage:WaitForChild("Status") local players = game.Players:GetChildren() local maps = game.Lighting.Maps:GetChildren() local currentmap = game.Workspace:WaitForChild("CurrentMap") local chosenmap = script:WaitForChild("ChosenMap") local spawn...
72999
0
How do I check if a player has died?
377648116
jalbraek
29
2018-12-11 18:52:11
<pre class='brush: lua'>toggle3 = true script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild('Humanoid') then if hit.Parent:FindFirstChild("Humanoid").Health = 0 then local Sword = game.ServerStorage.ClassicSword:Clone() toggle3 = false Sword.Parent =...
72114
3
68306
0
129874072
Oficcer_F
207
2018-12-11 18:57:23
<pre class='brush: lua'>toggle3 = true script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild('Humanoid') then if hit.Parent:FindFirstChild("Humanoid").Health == 0 then --when comparing use 2 '=' signs local Sword = game.ServerStorage.ClassicSword:Clone() toggle3 ...
0
Spawn button doesnt spawn anything to the spawner whats wrong?
609694350
thedukke1
9
2021-09-30 17:00:57
<pre class='brush: lua'>script.Parent.Touched:Connect(function(hit) if hit ~= game.Workspace.Spawner then -- the ~= means "Does not equal" local EX = Instance.new("Explosion") EX.DestroyJointRadiusPercent = 1 EX.Position = sc...
127757
0
How do you add the players username to a custom npc gui?
464752059
DAB_VADER21
2
2021-05-04 01:01:54
<p>I'm trying to make a custom npc dialogue thing and I want to put the players username in the text but I can't figure it out for some reason. I have this so far which works</p> <blockquote> <p>local TextLabel = script.Parent TextLabel.Text = game.Players.LocalPlayer.Name</p> </blockquote> <p>But idk how to put it in ...
123072
0
Why does this script make the tool collidable for a second?
331809274
TechModel
118
2021-08-08 00:52:41
<p>How do I made fix this script to make it can collide false when the tool's equipped? But when I take the tool out it makes if collidable for a second, which I don't want that. If there's a way to make it can collide false when in the players backpack and when it is dropped, it is collidable so the tool doesnt swing ...
126231
0
Why doesnt the hand with a tool move during an animation?
1751062389
TheEagle722
114
2020-11-22 11:38:01
<p>I am trying to make an equip animation to the player, but the hand which holds the tool refuse to move. Everything else works right. I hope you know the solution.</p> <p>PostScript: Sorry for my poor english!</p>
116149
1
106637
1
574012679
Lolbit_exe
22
2020-11-23 16:44:55
<p>Make sure that the animation priority is set to "Action" otherwise it will not move the hand with the tool in it.</p>
1
Workspace value isnt being detected by script?
287615575
Spookdoggz
42
2022-01-01 20:48:48
<p>I'm working on a tool which gives you a stand after used. When a player joins, a folder is made in the workspace which has a string value inside. This string value contains the Stand's Name, ("THEWORLD", "STARPLATINUM", etc.) The string value and everything works fine. But the problem is that the arrow isn't detecti...
128628
2
116477
1
158811
TGazza
1336
2022-01-02 03:36:50
<p>You have the server event parameters wrong way round. <code>FireServer</code> event automatically gives the player that invoked or called the server event automatically, so doing the following is unnecessary:</p> <p>Local script:</p> <pre class="brush: lua">-- Code wait(1.05) --// Giving the ...
0
Unable to cast to dictionary error fix?
351821368
MediaHQ
36
2020-10-18 03:08:06
<p>Trying to make an open and close door but it gives me an error saying "Unable to cast to dictionary"</p> <pre class='brush: lua'>local door = game.Workspace.Door local TweenService = game:GetService("TweenService") local TweenStyle = TweenInfo.new(0.5,Enum.EasingStyle.Quad) local dooropen = (door.CFrame + Vector3.ne...
114502
2
Is it possible to rotate a decal?
28197816
neoG457
315
2015-07-27 16:26:52
<pre class='brush: lua'>local Slice = Instance.new("Decal") Slice.Parent = Part Slice.Texture = "http://www.roblox.com/asset/?id=275713829" Slice.Face = 1 Slice.Transparency = 0 </pre> <p>I was wondering if it were possible to rotate a decal and if so how?</p>
20498
2
24131
7
90063636
CodingEvolution
490
2015-07-27 16:29:01
<p>No, not the decal itself. But rotating the part it's on should work just fine.</p> <p>Example:</p> <pre class='brush: lua'>local part = Instance.new("Part",workspace) local d = Instance.new("Decal",part) part.TopSurface="Smooth" part.BottomSurface="Smooth" part.Anchored=true part.Size=Vector3.new(5,5,1) part.CFrame=...
0
How do i script a particle emitter with a color sequence?
121899682
EatableDragonkight
3
2018-09-22 09:59:43
<p>I want to create a particle emitter with a color sequence but it keeps giving me an error.</p> <p>Script:</p> <pre class='brush: lua'>p.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.1,Color3.new(85,255,0)), ColorSequenceKeypoint.new(0.25,Color3.new(0,255,255)), }) </pre> <p>It gives me this err...
67726
1
65025
0
24546863
LukeSmasher
619
2018-09-22 14:07:28
<p><code>Color3.new</code> only works with numbers ranging from 0-1, hence why it's saying your values are out of range. Use <code>Color3.fromRGB</code> instead, which uses 0-255.</p>
0
ServerScriptService.Script:32: attempt to index boolean with 'Value' -how do i fix that?
648081688
junio11200
0
2023-01-24 02:57:43
<p>--this is the script</p> <pre class='brush: lua'>local roundMsg = game.ReplicatedStorage.Values:WaitForChild("roundMsg") local zombieCount = game.ReplicatedStorage.Values:WaitForChild("zombiesRemaining") local zombiesAlive = game.ReplicatedStorage.Values:WaitForChild("zombiesAlive") local gameInProgress = game.Repli...
132929