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
2
My gui button isn't muting music when clicked. ?
1319896863
ZombieApocalypz3
35
2020-09-15 02:54:55
<p>I have a gui TextButton that when its clicked it mutes all running music in the game, I have a folder in the gui that has the music. I used <code>GetChildren()</code> to get all musics to turn them off or set there volume to 0 but it shows an error in the output that says <code>mute/unmute.LocalScript:14: attempt to...
113181
3
103913
0
118343046
Elyzzia
1229
2020-09-15 04:58:25
<p>if i'm not a stupid baby idiot, you were able to mute the music once before the error happened</p> <p>that''s because when you did <code>allMusic.Volume = 1.3</code>, it added a new value to the <code>allMusic</code> table with the index "Volume" and the value 1.3</p> <p>then, when you iterated over it, your script ...
0
How to make a code run after a specific sentence gets printed?
1696235625
Cubispaghettis
2
2023-01-21 03:35:27
<p>So basically I made a voting system GUI and whatever option got the most votes, for example Option A, in Output, It will print/say Option A won. I want this to launch a code that makes it so another GUI shows up. So basically when it prints "Option A Won" I want it to make it/ launch open another specific GUI for on...
132904
0
Making Player spawn on team's spawn with team change GUI?
358294883
LegoUnicornRoblox
37
2019-11-08 03:20:12
<p>Hello Im scripting this SCP game and I added a team select GUI. For some reason this sets the player's team but he doesn't spawn on the team's spawn points please help!</p> <pre class='brush: lua'>local player = game.Players.LocalPlayer script.Parent.MouseButton1Click:Connect(function() player.TeamColor = script...
89750
0
Cross Product working really weird?
143096970
Rayguyban2
76
2021-02-07 02:15:39
<p>After wanting to make a homing missiles I did some research of my own and found out that Cross Products would work well with homing missiles if you don't want it to automatically point to a target. After some testing I realized I don't know vector math and am confused someone help, I tried to make the missiles slowl...
119751
0
table of items that i shouldn't be able to click on?
2869366
Paldi
109
2017-01-19 01:38:28
<p>Hello, i'm trying to make a tool that when i click somewhere it does something but i want it to not do that thing when the parent of the mouse target is in the restricted table the thing is how it is now, i can still click on the restricted.</p> <pre class='brush: lua'>local player = game.Players.LocalPlayer local m...
39170
0
Why does Roblox give a random number to a datastore?
454606509
Spiyder1
79
2021-02-22 22:21:01
<p>I didn't really know how to word this question but I think I did an ok job, anyway every time I enter the game, it gives me a random number, normally the random number is higher than the previous number, a follow up question would be, <strong>do I need separate data stores for separate values?</strong></p> <pre clas...
120534
5
Tables
29806839
ConnorVIII
448
2014-03-17 19:11:07
<p>When would be the right time to use tables? How would you apply it and also, how does it vairy from Variables.</p>
753
2
1190
11
4030068
jobro13
980
2014-03-17 19:26:12
<p>A table has lots of uses, and with lots I mean a real lot. A cool technical note is that the only data type in Lua actually is a table. Numbers and strings are actually tables, yet you can just use them like they were numbers and strings.</p> <p>Tables can be used when:</p> <ul> <li>You want to use the same action o...
0
How would i add a filter to my custom chat?
83240285
sad_eyez
162
2017-04-29 19:25:49
<p>I need to add a filter so my game doesn't get moderated or anything.</p> <pre class='brush: lua'>local storage = game.Workspace.ChatStorage local ChatService = game:GetService("Chat") game.Players.PlayerAdded:connect(function(plr) wait(0.1) local newplayer = Instance.new("StringValue",storage) newplayer....
42457
2
44054
0
60654687
abnotaddable
920
2017-04-29 19:36:43
<p>I know its ugly but just try this: http://wiki.roblox.com/index.php?title=Custom_chat_GUI I looked at it first and thought how ugly it was but tried it and it worked; if you have any question ask:)</p>
0
Is it possible to make a custom backpack?
15619704
NinjoOnline
1146
2014-08-20 13:29:10
<p>I have an inventory I have been working on and have come to the part of thinking, is it possible to make a custom backpack instead of using ROBOX's auto backpack. If it is possible, then what things do I need to ad?</p>
10003
1
12766
6
386992
BlueTaslem
18071
2014-08-20 14:25:36
<p>Yes, it should be.</p> <hr/> <p>First, you would need to disable the backpack GUI using <strong><a target="_blank" href="http://wiki.roblox.com/index.php?title=SetCoreGuiEnabled">SetCoreGuiEnabled on StarterGui (from a LocalScript)</a></strong>.</p> <p>Next you would need to generate the appropriate backpack display...
0
How to make music that stops when I click the play button?
1663945214
nick070607
1
2021-02-23 15:27:58
<p>Hello, How to make that music stops whenever a player click the play button?</p>
120565
1
109925
0
1750439438
mainmodul
30
2021-02-23 16:19:41
<p>Create an TextButton, modify it a little bit then add these code:</p> <h2>if you dont have any sound on workspace or anything here:</h2> <p>local id = 'place the sound id here' local sound = Instance.new('Sound',workspace) sound.SoundId = 'rbxassetid://'..id</p> <p>buttonnamehere.MouseButton1Click:connect(function()...
2
I am trying to make a quest system with a dialog where a gui pops up how do I fix this code?
1659997192
CMB1048
23
2022-09-26 20:16:35
<p>I am trying to make the gui go visible on the client but it only works on server, and I want it on the client</p> <pre class='brush: lua'><br />local dialog = game.Workspace["Homeless Quest"].HomelessMan.Head.Dialog dialog.DialogChoiceSelected:Connect(function(player, choice) if choice == dialog.DialogChoice2 th...
131725
1
118981
1
25290541
ultrabug
306
2022-09-26 20:38:17
<p>When you set something in startergui you are just changing what the player's playergui will start with. So if you want to make changes to what the player sees you will have to work on player.PlayerGui instead.</p>
2
How can i get a part to resize smoothly?
55847790
Sketchi
18
2018-06-12 17:44:03
<p>I have a script that sizes a part to grow bigger then back smaller on click. But I had to manually add the size into a script to change, it's very choppy and it takes too much time. Is there a different way I can do this? Also, my welds keep breaking so I'm using motor6d, is this fine too?</p> <p>Thank you</p>
60193
2
58577
2
21009928
superalp1111
662
2018-06-12 18:49:32
<p>TweenService - A great way to do things smoothly, change things smoothly. If you want to read more, <a target="_blank" href="https://wiki.roblox.com/index.php/API:Class/TweenService">Click Here!</a></p> <p>Now I'll of course show you a few lines you can use but if it becomes helpful to you, please upvote! (I need th...
0
How can I remove all gears from your StarterGear in Players when you click a button?
65308931
TD0707
0
2022-06-23 06:25:58
<pre class='brush: lua'>local Player = game.Players.LocalPlayer local Button = script.Parent Button.MouseButton1Click:Connect(function() Player.Backpack:ClearAllChildren() Player.StarterGear:ClearAllChildren() end) </pre> <p>I am able to clear Backpack and StarterGear, but when you respawn the items reappear in...
130475
0
Using &lsquo;getfenv&rsquo; to load modules?
195261420
OptimisticSide
199
2019-02-11 06:32:57
<p>I was wondering: how do you use getfenv to load modules? This is a method used by some loaders, and I was quite curious about it.</p>
76074
1
71436
3
39939779
EpicMetatableMoment
1437
2019-02-11 09:38:23
<h2>Question</h2> <blockquote> <p>Using ‘getfenv’ to load modules?</p> </blockquote> <h3>psss accept this answer if it helped.</h3> <h2>Solution</h2> <p>Okay so as incapaxx has already noted <code>getfenv</code> is for getting an environment and that</p> <blockquote> <p>They were from backdoors. The script writer would...
0
how to make a global leaderboard?
41658733
retracee
68
2018-08-16 01:58:09
<p>https://www.roblox.com/library/538721858/Global-Leaderboard</p> <p>I have this free model that I'm trying to make work with my script but I'm not sure how it works, here's the script in it</p> <pre class='brush: lua'>local ds = game:GetService("DataStoreService") local ods = ds:GetDataStore("timesavesystem") functio...
65568
1
Using RemoteEvents with UserInputService? Client/Server Sided
1288500822
Finty_james
269
2021-03-26 17:01:17
<p>Its not like I dont know how to make UIS with RemoteEvents, But they don't work... Here is my code:</p> <p>Client Script w/ UserInputService and RemoteEvent</p> <pre class="brush: lua">local RE = game:GetService("ReplicatedStorage"):WaitForChild("RemoteEvent") local UIS = game:GetService("UserInputService") UIS.Inpu...
121709
1
110879
1
419000434
Omq_ItzJasmin
666
2021-03-26 17:14:09
<p>Put the local script somewhere that resides within the client/player — Like StarterPlayerScripts. Put the server script somewhere that resides within the server — Like Workspace.</p>
0
How do I make a loop that repeats?
1527823663
kickoff127
15
2021-02-22 22:06:03
<p>I want to make a script where if you touch this, it puts your name on a board. It only works once.</p> <p>Script:</p> <pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(plr) game.Workspace.NameMaker.Touched:Connect(function(hit) local hum = hit.Parent:FindFirstChild("Humanoid") if ...
120532
2
109905
0
1085356580
LeedleLeeRocket
1257
2021-02-22 22:15:46
<pre class="brush: lua">game.Workspace.NameMaker.Touched:Connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) --instead of getting player from the join event which only happens once until the player rejoins the game, you can get it from the character when it touches the part ...
0
Vector3 and CFrame conversion?
94396994
LateralLace
297
2015-12-15 23:36:19
<p>Hiaa guys. Sorry again sorry for all the questions ;). Quick quesion here, about Vector3 and CFrame values. I want to know how to convert a value from CFrame to Vector3 and vice - versa. Here's an example:</p> <pre class='brush: lua'>wait(2) blue = game.Workspace.BlueSpawn red = game.Workspace.RedSpawn Var = 0 playe...
25247
1
28809
8
53688834
TheDeadlyPanther
2458
2015-12-15 23:40:59
<p>CFrame values have two Vector3 values in it:</p> <p><em>1)</em> The position the part is positioned at</p> <p><em>2)</em> The position that the part is facing</p> <p>To get the position:</p> <pre class='brush: lua'>local pos = part.CFrame.p </pre> <p>To get where it is facing:</p> <pre class='brush: lua'>local pos =...
0
Cant use loadstring() function on require script i made?
206662594
rookiecookie153
53
2020-12-29 05:48:33
<p>I'm attempting to use a require script I made, but loadstring() does not seem to be doing the trick. If I don't use loadstring, it works somehow. Any help?</p> <p>Require Method: <em>require(6153080832):A("rookiecookie153")</em></p> <p>Actual Script:</p> <pre class='brush: lua'>local module = {} function module:A(pl...
117833
2
107841
1
1282751190
ew_001
58
2020-12-29 10:36:09
<p>1.</p> <p>Now, this looks like a Script Builder script. And i do make scripts myself for those games.</p> <p>But, if you are trying to use loadstring to load a source, like the source you provided. Then how are you doing it currently?</p> <p>Loadstring takes in 1 arguments, a string, which is the source you want to ...
0
How would get a players' location from a global script?
336237565
dreameryoutubeREAL
3
2017-07-05 19:22:03
<p>I am trying to get the players' location using a global script, this is what I have written:</p> <pre class='brush: lua'>local location = Vector3.new(0,0.5,0) local playerName = script.Parent.Parent.Parent.Parent.Name local playerLocation = game.Workspace.playerName.UpperTorso.Position print(playerLocation) </pre> <...
44853
0
How to detect if somebody used a letter or not?
11808841
blowup999
562
2014-04-12 21:48:22
<p>Is it possible to detect if the first 'letter' somebody said was a letter or something else like a 9 or a :?</p>
1256
0
[SOLVED] Trying to Index nill with 'Value'?
303357794
ColdFoxy07
24
2021-04-18 17:32:06
<p>I made a very small script to change a value, which in turn changes the camera angle in another script. The problem is this error. I don't know what i did wrong this time, but i hope to get some help here.</p> <p>The script:</p> <pre class='brush: lua'>local cameraValues = game.ReplicatedStorage:FindFirstChild("Came...
122529
1
how to grab the original image from a roblox site?
310983603
Z0ggg
20
2020-03-03 03:41:09
<p>DISCLAIMER: I know this forum is most about Lua, but my current project is a collab between Python and Lua via web app. I'm not featuring any Python code, but just be aware I'm using the python library requests to grab the image, and HttpService to actually utilize the image.</p> <p>Ok, so, my code works perfectly f...
95494
1
88244
0
1531696143
Luka_Gaming07
534
2020-03-03 20:09:52
<p>I was just looking on the Roblox <a target="_blank" href="https://developer.roblox.com/en-us/articles/Content">Content Data Types</a> page and in one of the Examples they did <code>http://www.roblox.com/asset/?id=ID HERE</code> and i put that n my browser and got a file. it didn't had an extension so i opened it in ...
2
Problems in fitting Guis in different devices, please someone?
467337150
XDvvvDX
186
2020-03-12 23:01:00
<p>Hello. I've started working on my own new project, for almost a week. I've made almost everything, but then I realized, I fell for my biggest enemy. The GUIs position will be absolutely different in any device and I become confused. It also blamed me from continuing my last project, that's why I started this one. If...
95978
0
new is not a valid member of CFrame?
43125980
Averted_Vision
39
2019-08-26 04:17:51
<p>I'm trying to make it so when you dodge you go a certain direction, but whenever I try to run the code it keeps saying new is not a valid member of CFrame, this is the line of code that gives the error.</p> <pre class='brush: lua'>for i = 1,100 do player.Character.HumanoidRootPart.CFrame.new(player.Character.Humanoi...
86522
1
80174
2
2479393
Dfzoz
345
2019-08-26 04:23:15
<p>CFrame.new didnt work because you tried to find a variable with it instead of creating it.</p> <pre class='brush: lua'>for i = 1,100 do 2 player.Character.HumanoidRootPart.CFrame = CFrame.new(player.Character.HumanoidRootPart.Position + Vector3.new(.1,0,0)) </pre>
0
math.random(0.5, 1) only returning 0 and 1? [SOLVED]
1169890595
ghostgamer90391
9
2023-03-18 08:45:35
<p>So I have a math.random variable and it should print values between 0.5, 0.6, etc. but it only prints 0 and 1. Here's my code:</p> <pre class='brush: lua'>local size = math.random(0.5, 1) print(size) </pre> <p>Edit: I figured it out. So apparently, math.random rounds numbers. So I just did math.random(5, 10) / 10, a...
133209
1
120268
1
465047577
xXLegendGamerz16Xx
231
2023-03-18 12:28:09
<p><a target="_blank" href="https://create.roblox.com/docs/reference/engine/libraries/math#random/">math.random</a> only returns integers, if you want to have decimals then I suggest:</p> <pre class='brush: lua'>local random = Random.new() local random_integer = random:NextInteger(1, 10) local random_number = random:Ne...
1
Why wont this script function correctly?
336223112
Itheol
5
2022-08-07 20:55:42
<p>I'm attempting to create a shop that you can buy tools from after collecting enough of the in game currency-"fish" however, when I collect the required amount of fish and click the purchase button nothing happens.</p> <p>Here's the script and the error message I'm getting.</p> <pre class='brush: lua'>game.Replicated...
131134
0
Do prints reduce perfomance just a little?
73170429
imKirda
3328
2020-06-08 07:46:45
<p>It is probably not that hard question but i could not find any answers to it, should i use prints or do they reduce performance of the game and i should not put them in my scripts?</p>
105709
1
97358
2
323815851
ifreakinlostmyacount
52
2020-06-08 08:17:27
<p>It shouldn't, if anything it should show greater performance.</p> <p>Also I'm not sure what your using print for, so its harder to tell, because different lines of code in different scripts can show a bolder performance than others.</p> <p>In general no.</p>
1
ModuleScripts: How do they work?
2182958
Dummiez
360
2014-04-25 23:47:06
<p>I've read the <a target="_blank" href="http://wiki.roblox.com/index.php?title=Module_scripts">wiki</a> about ModuleScripts, but it isn't making sense. I mean, do ModuleScripts have to be stored in Workplace or ServerScriptService? (cause the examples are in the Workspace) To me, it reminds of Java and importing libr...
3546
0
Trying to tween the CFrame of a model?
677278792
NickIsANuke
217
2020-10-20 12:04:12
<p>I'm working on my own custom placement system, and I thought it would be nice to have the model smoothly move between points with the mouse. I am struggling trying to figure out how to move the whole model. My current code is:</p> <pre class="brush: lua">local TweenService = game:GetService("TweenService") local TI ...
114615
2
105305
1
49946095
ben0h555
417
2020-10-20 17:03:59
<p>Try using TweenService:GetValue() in combination with a loop that calls the method SetPrimaryPartCFrame() with a lerped cframe instead!</p> <pre class="brush: lua">local TweenService = game:GetService("TweenService") local Time = time() --Gets the starting value of time. local Total = 1 --How many seconds till compl...
0
Is there anything like a server ID, kinda like a game ID but for a certain server?
1453933093
OFF_S4LE
127
2021-08-22 22:43:21
<p>If so, is there a way to teleport players to it, kinda like teleporting players to a different game?</p>
126770
0
Rank door do not work for a rank it is supposed to work, but it works for an higher rank. Why?
401623374
JOZOUMRO11
34
2020-11-22 13:36:15
<p>Here is the script:</p> <pre class='brush: lua'>local GroupId = 4565372 local RankId = 6 script.Parent.Touched:connect(function(part) if part.Parent and game:GetService('Players'):GetPlayerFromCharacter(part.Parent) then local player = game:GetService('Players'):GetPlayerFromCharacter(part.Parent) ...
116152
0
CFrame.new not working as expected?
1364318235
iiXisuma
0
2022-08-01 19:01:26
<p>I'm trying to change a part's Position using CFrame.new but instead of the desired position it goes to 0, 0, 0. I've tried to fix it with using just Vector3.new() but still the same result.</p> <pre class='brush: lua'>local Event = game.ReplicatedStorage.LocalPlayer:WaitForChild("Place") local Storage = game.ServerS...
131047
0
How to stop npc from following path midway?
1169890595
ghostgamer90391
9
2023-02-25 10:45:39
<p>So I have a script, and I copied the pathfind script that follows it's enemy. And if it sees it's enemy it's gonna stop itself from walking to the target.</p> <p>Well, that's what I want it to do, but it doesn't work.</p> <p>Script (not full script):</p> <pre class='brush: lua'>local ray1 = Ray.new(script.Parent.M16...
133121
0
any value for a tool to not be allowed to be equipped?
464467673
SoftAppleGaming09
4
2021-05-03 19:33:20
<p>i have emotes for my game and i need the ability to not allow the tool to be equipped at all, i have something similar but it make the tool unequip on the equip, making the equip sounds.</p>
123061
0
Can Some One Help Me To Fix This Gui Script?
68730146
mrpoliceman2004
20
2014-06-01 04:32:27
<pre class='brush: lua'>tshirt=("") gamepassid=0 playersallowed={"MrGameMasters1"} function check(name) for i = 1,#playersallowed do if (string.upper(name) == string.upper(playersallowed[i])) then return true end end return false end function click() if script.Parent.Parent.Parent.Parent:IsInGroup(...
5973
0
?How to detect when localplayer left the game
1583659119
blox_develop
2
2020-05-05 18:17:07
<p>Trying to make a code to detect when localplayer left the game but don't know how I would do so.. Anyone know how I could do this? Thanks!</p>
102013
1
If a player is not in group it makes a instance message into workspace?
56684765
Wrongmistake
0
2014-05-01 01:17:29
<p>Does anyone know how to make it so if someone is not in a certain group, it will put a message that says "Player [playername] is not in group", and it will put it up on screen so people see it?</p>
4037
1
My magnitude refuses to print() when a certain magnitude is reached. Help?
323815851
ifreakinlostmyacount
52
2020-07-27 00:33:10
<p>Here is the section of my code:</p> <pre class='brush: lua'>local Player = game.Players.LocalPlayer local Door = game.Workspace.Door1 local SetDistance = 10 if (Door.Position - Player.Character.Head.Positon).Magnitude &lt; SetDistance then </pre> <p>I am inexperienced to magnitude so this is new, however it is refus...
110042
3
101140
2
126659427
VerdommeMan
1469
2020-07-27 00:50:01
<p>Is the localscript located in the workspace ? if it is then the localscript wont run</p> <p><a target="_blank" href="https://developer.roblox.com/en-us/api-reference/class/LocalScript">see this article</a></p>
0
How can I properly Calculate the Position of a GUI?
17514438
TheeDeathCaster
2368
2015-04-19 01:54:17
<p><strong>Further In-Depth of the Title:</strong> How can I properly Calculate the Positioning of a GUI so that it does not end up going out of Position?</p> <p>As the Title says, I am having trouble finding a Calculation to prevent my 'CmdsGui' function from going past a certain limit, however, when I attempt to, it ...
16834
0
how do i limit how many parts can my script spawn at once?
16924
greendayshade
5
2020-11-22 01:32:11
<p>hi hello im dumb and i cannot script so i'm asking you people that are way better at this than me for some tiny bit of help, i want to make my game not lag by limiting how many parts the player can spawn at once. i have no clue what i'm doing</p> <pre class='brush: lua'>local part = script.Parent local brick = Insta...
116134
0
My leaderstats script is not working properly?
101879484
XxSHjokerxX
18
2016-08-19 00:27:39
<p>It says line:76 attempts to index local' PlayersFolder' (a nil value)</p> <pre class='brush: lua'>local DataStore = game:GetService("DataStoreService"):GetDataStore("OnePieceUltimateTreasurePreAlpha") game.Players.PlayerAdded:connect(function(plr) local PlayerStats = Instance.new("Folder", game.ServerStorage) ...
34727
1
A script that destroys a part on touch with a different part
6030494
Exsius
162
2014-03-01 00:34:25
<p>Im trying to make it so that when part1 touches part2, part2 disappears any help?</p> <p>Thanks,</p> <p>Exsius</p>
373
1
671
1
1924093
ChiefWildin
295
2014-03-01 01:04:27
<pre class="brush: lua">function onTouched(hit) if hit.Name == "part1" then script.Parent:Destroy() end end script.Parent.Touched:connect(onTouched) </pre> <p>This script goes inside part2.</p>
1
My PlayerData Folder Creating Script not working?
291622637
NathanTheCraziest
105
2020-08-02 06:13:21
<p>I tried to make a Folder where it will store all player Data such as Level, InGame, etc</p> <p>But It doesnt work</p> <p>Here is what I wrote</p> <pre class='brush: lua'>local Players = game:GetService("Players") Players.PlayerAdded:Connect(function(Player) -- Create PlayerData Folder local PlayerDataF = Ins...
110528
1
101514
1
791392321
DuckyRobIox
180
2020-08-02 06:23:53
<p>Alright you made a simple error that is a common mistake some scripters do. so heres your script</p> <pre class='brush: lua'>local Players = game:GetService("Players") local playerdata = game.ReplicatedStorage:WaitForChild("PlayerData") Players.PlayerAdded:Connect(function(Player) -- Create PlayerData Folder ...
0
how to count numbers on a part in a text label?
377591837
OctavianH0310
25
2021-04-02 08:39:44
<p>i have this script: THIS SCRIPT IS IN A TEXT LABEL, WICH IS IN A SURFACE GUI, WICH IS IN THE ACTUAL PART</p> <pre class='brush: lua'>local part = script.Parent.Parent.Parent local numTouchingParts = 0 local playersTouching = {} part.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then --ch...
121925
1
111049
2
1608691335
scripterhelper5354
456
2021-04-02 09:37:28
<pre class='brush: lua'>local Players=game:GetService"Players" local function getPlayersOnPart(regionPart) local pos1 = regionPart.Position+Vector3.new(0,.3,0) - (regionPart.Size / 2) local pos2 = regionPart.Position+Vector3.new(0,.3,0) + (regionPart.Size / 2) local region = Region3.new(pos1, pos2) local partsInRegion ...
0
How to &quot;fail safe&quot; a script in the event something errors?
6333934
Marmalados
193
2018-11-02 22:53:46
<p>As I continue to optimise my scripts, I've heard about a function which deals with errors within a script in the event that an error does occur it will continue. I understand that this is commonly used for data retrieval using at async function but can someone explain this to me?</p>
69913
1
66756
2
61716444
theking48989987
2147
2018-11-02 22:59:47
<p>Well the failsave is the built in <a target="_blank" href="http://wiki.roblox.com/index.php?title=Pcall&amp;redirect=no"><strong>pcall</strong></a> function which wraps everything inside it in a protected bit of code. If the code inside it errors it will return two thinks, a <strong>success value</strong> (boolean) ...
1
StateChanged won't work?
15288675
emite1000
335
2014-07-25 18:29:26
<p>While the character is in the middle of walking, I have this script run:</p> <pre class='brush: lua'>Plyr = game.Players.LocalPlayer.Character.Humanoid Plyr.StateChanged(None):connect(function() script.Disabled = true end) </pre> <p>But when it tries to run, it just gives the error: <strong>attempt to call field...
8672
0
How to return rbxcdn as an image in-game?
15722500
DivinePheonix
0
2016-04-15 22:04:52
<p>I don't know if its even possible but I want to return something like this: t3.rbxcdn.com/5e4738c361e126605c611bc578c607fb</p>
29618
0
Can someone help me?
35787747
slenderfoo
0
2014-07-26 06:27:00
<p>So I make a TextLabel then I put it in my screen GUI but I want the TextLabel to change to the name of the player but my script won't work. I'll show you what the script looks like, and if you could help that would be great.</p> <pre class='brush: lua'>while true do wait() script.Parent.Text = (script.Parent.Parent....
8712
1
How do I make a player respawn instantly?
94709295
snewo12
72
2018-07-23 09:39:13
<p>So I've made this script:</p> <pre class="brush: lua">script.Parent.Touched:connect(function(part) if part.Parent and game:GetService('Players'):GetPlayerFromCharacter(part.Parent) then local player = game:GetService('Players'):GetPlayerFromCharacter(part.Parent) if player:GetRankInGroup(3200799)...
63507
3
May someone explain math.atan2 and it's capabilities?
27718918
Blockeus
68
2015-06-18 19:34:06
<p>May someone explain math.atan2 and it's capabilities. Please provide an example if you can.</p>
18670
0
How to check a value in the player?
1792229101
googlpeopel15
12
2021-07-19 16:19:52
<p>I'm making a thing where i t makes a folder called Inventory inside the player and a intValue called Log and when they click this button it checks if they have 5 or more logs it prints the player name has 5 or more logs but it didnt work Instead i got a error: Players.googlpeopel15.PlayerGui.InvGUI.Frame.LogWall.Pur...
125495
2
114213
0
85341864
JustinWe12
694
2021-07-19 16:42:10
<p>I dont think MouseButton1Click has any default arguments. Since this is a local script, you can access the player with LocalPlayer.</p> <pre class='brush: lua'>local logamount = game.Players.LocalPlayer.Inventory.Log </pre>
1
what the 'Infinite yield possible' mean?
98726206
extroias
16
2019-07-01 00:14:01
<p>Sorry for the bad English, I'm not native.</p> <p>I was trying to do a dash script for my game,the code was working well, but I wanted that the dash would only be possible while jumping.So, i tried to put a humanoid:GetState() == Enum.HumanoidStateType.Freefall,and didn't work.So,I tried putting local character= scr...
82730
3
76923
1
321728847
Afterl1ght
321
2019-07-01 06:23:34
<p><a target="_blank" href="https://developer.roblox.com/api-reference/function/Instance/WaitForChild">:WaitForChild()</a> acts the same as <a target="_blank" href="https://developer.roblox.com/api-reference/function/Instance/FindFirstChild">:FindFirstChild()</a>, except it yields the whole thread until the requested c...
0
Double Tap W To Sprint?
741901254
TobiElReyofficial758
0
2022-10-05 06:07:56
<p>i made a script where you double tap w to sprint and when I hold w after double tapping then 2 seconds later the walkspeed reverts to default I don't know why but any fixes? plus I don't know how to put an animation on it.</p> <p>this is the script:</p> <p>https://pastebin.com/8YWQTn1u</p>
131804
1
BodyGyros changing Angles of a block
25691148
FromLegoUniverse
264
2014-03-06 00:17:39
<p>Is there a way to use BodyGyros or AngularVelocityto change the rotation of a block trying to face a Vector3 location. I know little of BodyObjects.</p>
511
0
Velocity
11808841
blowup999
562
2014-02-19 20:51:59
<p>How do you use body velocity in roblox lua?</p>
115
1
220
2
19566737
Unclear
1776
2014-02-19 20:59:49
<p>BodyVelocity is pretty complex compared to typical Objects used by scripters just starting out. The two properties of BodyVelocity that will probably concern you are velocity and maxForce.</p> <p>The velocity property is a Vector3 that stores the velocity vector of the Object. Velocity is a 3D vector on ROBLOX; sett...
0
How to make anti- same team killing?
428506925
chubbycheeks710
0
2021-05-03 00:51:39
<p>Example: You have a friend with you on the same team but you can still kill him.</p> <p>I want to make it so you can't kill other people same team as you, how do I script it?</p>
123048
0
Is it possible to make admin commands in Replicated First?
429720902
EmeraldRailYT
8
2021-02-23 04:42:07
<p>I understand the basics of creating my own admin commands, I would just like to know if it is possible to make them in Replicated First.</p>
120548
0
Model:SetPrimaryCFrame() failed because no PrimaryPart has been set?
1178643466
imaA6D
39
2020-06-30 06:49:04
<p>I don't understand this error, nor do I know how to fix my script. I tried finding ways to fix this for nearly 3 hours and got nothing. Any help please?</p> <p>Full Error: Model:SetPrimaryCFrame() failed because no PrimaryPart has been set, or the PrimaryPart no longer exists. Please set Model.PrimaryPart before usi...
107822
1
99117
1
56389
Sparks
534
2020-06-30 07:03:24
<p>You are using Model:SetPrimaryPartCFrame() before setting the PrimaryPart. Models have a PrimaryPart property, which you need to set before calling methods like SetPrimaryPartCFrame and MoveTo() on the model.</p> <pre class="brush: lua">local test = part.CFrame car.PrimaryPart = primaryparthere car:SetPrimaryPartCFr...
0
How to give Cash when I killed an actual player?
1846697498
DaGlizzzzzzyyyy
23
2021-06-10 21:53:51
<p>I have a script within my NPC that correctly gives cash to the player when the player kills the NPC. I had to insert a script within the NPC to call a remote event, but I'm not quite sure how to do that with an actual player. I need to give 10 cash when a player kills another player. What am I doing wrong here? (FYI...
124257
0
How can I make my game check for players who are afk?
264630904
DriBowser
9
2021-07-21 19:04:18
<p>I've been making an Afk button in my round based PVP game, but if there are 2 players when a round starts and one is afk, the other player will automatically win and get points. The afk option works fine. So, my question is, how can I make the game check to see if there are at least 2 people who aren't Afk?</p> <p>(...
125571
1
114264
0
25483747
phxntxsmic
487
2021-07-21 19:48:48
<p>My solution to this is to create an <strong>afk timer</strong>.</p> <pre class='brush: lua'>function countdown(numValue) while wait(1) do numValue.Value -= 1 if numValue.Value == 0 then -- if the timer is done -- Player is considered afk -- Do stuff coroutine.y...
1
Random position in a range?
148527490
manith513
121
2020-04-11 19:12:09
<p>So because nobody has answered my previous question yet I am writing a new one where I have come up with a new idea that should in theory work but isn't. here is the code</p> <pre class="brush: lua">local part = script.Parent local function createblock() local block = Instance.new("Part", game.Workspace) loc...
98884
2
91359
4
4480207
brianush1
235
2020-04-11 19:18:16
<p><code>math.random</code> expects the first number to be the lowest. Since -99.505 &lt; -56.505, you should use <code>math.random(-99.505, -56.505)</code> instead.</p>
0
Attempt to call a boolean value. Any fixes?
139168786
ElpersonPL
44
2020-06-28 19:25:40
<p>So I tried making a check for my shop so that I don't scam the players. So that if the event isn't running then they won't buy it. And It doesn't work. Here's the code. ServerScript:</p> <pre class='brush: lua'>local function checkEvent() if not EventRunning then return true else return false...
107662
1
98986
1
29046862
TimScript
80
2020-06-28 19:34:43
<pre class='brush: lua'>game.ReplicatedStorage.CheckEvent.OnServerInvoke = checkEvent() </pre> <p>On this line here, you're calling checkEvent and assigning the returned value. Remove the parenthesis to assign the function itself instead:</p> <pre class='brush: lua'>game.ReplicatedStorage.CheckEvent.OnServerInvoke = ch...
0
Why can't server Script find a part in Workspace?
1537591455
iggyjelly1
6
2022-11-12 20:53:18
<p>I have a Tool called <code>C4</code>. When ever it explodes it sends a <code>RemoteEvent</code> called Explosion. Here is what it looks like:</p> <pre class='brush: lua'>game.ReplicatedStorage.Explosion:Connect(function (Player, HandleName) game.Workspace:WaitForChild(HandleName) end) </pre> <p>Even though a Par...
132254
1
119441
0
123585026
NykoVania
198
2022-11-12 21:02:00
<p>When RemoteEvents are fired from the client, detect them from the server using onServerEvent. Like this:</p> <pre class='brush: lua'><br />game.ReplicatedStorage.Explosion.OnServerEvent:Connect(function(Player, HandleName) game.Workspace:WaitForChild(HandleName) end) </pre> <p>Furthermore, instances created from...
0
How to make a player with Instance.new(&quot;Player&quot;) in Roblox?
1460440032
mine_theblocks
23
2021-05-30 00:10:27
<p>Hey there! Sorry to trouble you, but I have a question: How do you make a player with 'Instance.new("Player")' in Roblox? I am trying to parent it to the Players thingy to make it show up on the leaderboard to make it look like there is more players than there actually is. But, this happens: I have tried this:</p> <...
123898
0
What Steps do I take on making a cinematic view with music?
2964376
elihill
0
2014-03-02 23:27:09
<p>I'd like to know how to make cinematic views show when a new map or battle ground is loaded after a menu GUI. I don't have any idea on how to work cameras in my game.</p>
455
0
How can I reset a script after your character dies?
652469434
Boi52893642864912
69
2019-01-26 15:46:13
<p>I'd like to know if there is a way to reset a script because I made an ability script that gives you an ability depending on which one you choose, but when you die, it only activates your previous ability. If there is a way to reset a script then I would like to know! If there is another way, here are two scripts (b...
75188
1
70683
0
37573809
NinjaManChase
226
2019-01-26 15:54:46
<p>Hello,</p> <p>We can use something called <code>Humanoid.Died</code> to achieve this result. <code>Humanoid.Died</code> senses when the Player's Humanoid is dead.</p> <p>Here's an example of how it would work.</p> <pre class='brush: lua'>plr = game:GetService("Players").LocalPlayer plr.Character:WaitForChild("Humano...
0
Why is the title just this? [2]
16024501
c0des
207
2014-04-22 23:34:46
<p>Because Yolo. That's why. Why else? I mean really, why else?</p>
3318
1
4647
2
2182958
Dummiez
360
2014-04-22 23:54:43
<p>Added an <strong>if not statement</strong> to check if that tool is already in the Backpack. That way it will prevent the player from having multiple copies of Obitor.. or whatever that is lol.</p> <pre class='brush: lua'>local MarketplaceService = Game:GetService("MarketplaceService") local ds = game:GetService("Da...
1
How do I print the contents of a player?
1529783691
WeirdTurtleKid
26
2020-10-18 08:39:59
<p>I was trying to make a simple script to print the contents of a player's character:</p> <pre class='brush: lua'>local chr1 = game.Players.LocalPlayer.Character local chr2 = chr1:GetChildren() print(chr2) </pre>
114512
1
105190
0
420085911
Glacitron
147
2020-10-18 08:46:56
<p>You can use this script, basically you want to loop through all the contents and print each one individually you can't just print a table,</p> <pre class='brush: lua'>local plr = game.Players.LocalPlayer local Char = plr.Character or plr.CharacterAdded:Wait() for i , v in pairs(Char:GetChildren()) do --Char:GetDesce...
0
how give perk for 24 hours using datastore, developer products?
50605193
johnnygadget
50
2015-03-26 19:13:28
<p>i was reading the roblox blog about developer products and one line says, "You could sell tickets to exclusive and secret parts of your map for a day." so i know it's possible to sell a perk that lasts for as long as i want it to last. I'd like to sell one of my developer products and make it remain for 24 hours, bu...
16066
0
Why Is the music not Inserting Itself to the torso even though the IntValue Is above 4?
1961959172
imnotaguest1121
186
2022-07-31 20:17:34
<p>I made a script Inside of a NPC that plays a audio when the IntValue which Is also Inside of the NPC Is In a specific point like when Its above 4, just the problem Its just not Inserting the music</p> <p>Script</p> <pre class='brush: lua'>local Troll = script.Parent local Killstreak = Troll.Killstreak while wait(1) ...
131033
0
Why am I getting a humanoid nil error?
1527823663
kickoff127
101
2023-01-15 02:30:04
<pre class='brush: lua'>local player = game.Players.LocalPlayer local mouse = player:GetMouse() local hand = player.Character.Humanoid:GetAccessories()[1] mouse.Button1Down:Connect(function() hand.CFrame = CFrame.new(hand.Position, mouse.Hit.p) end) </pre> <p>That is my script to make my arm follow my mouse. I am g...
132840
1
Is there a way to go to the start of a loop before it ends?
118061211
jacksworld2808
15
2020-08-06 07:58:13
<p>I don't think you need a description of what I'm making, so I won't waste your time with that (If you want to know then feel free to ask).</p> <p>I'm wonder if it is possible to go back to the start of a while true loop before the end of it. An example of this would be</p> <pre class='brush: lua'>while true do [...
110815
2
101778
0
200638972
0neDeletedUser
42
2020-08-06 10:49:38
<p><strong>Functions!</strong></p> <p>The best way to go about this would be to define a function, and continuously call it from either inside of itself, or in a loop, depending on your preference.</p> <p>Confusing? Let me break down the code in English. First off, you would start by creating a function, let's call it ...
0
Attempt to index local boolean value? [fixed]
897761133
NoLife_David
1
2019-04-06 19:03:26
<ol> <li>`gamepasses = game:GetService('MarketplaceService')</li> </ol> <p>game.Players.PlayerAdded:Connect(function(plr)</p> <p>game.Workspace:WaitForChild(plr.Name)</p> <p>game.Workspace[plr.Name]:WaitForChild('Humanoid')</p> <p>local ownsmusic = Instance.new('BoolValue', plr)</p> <p>ownsmusic = false</p> <p>ownsmusi...
78653
0
How do you make a script so that when you click a block, it blows you up AND gives you a badge?
1582706549
stackman00
0
2022-06-23 09:28:26
<p>This issue is so oddly specific that I wasn't able to find the solution anywhere else, what's wrong with my script?</p> <pre class='brush: lua'><br />local clicked = script.Parent.ClickDetector.MouseClick local part = script.Parent local debounce = false local BadgeService = game:GetService("BadgeService") local Pla...
130478
0
How do you insert the players username in a custom npc dialogue gui?
464752059
DAB_VADER21
2
2021-05-04 00:55:40
<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 ...
123071
0
How do you create a map voter?
1789271
sword960
0
2014-04-17 00:44:53
<p>I am attempting to create a war game somewhat similar to Call of Robloxia 5, but I need a vote for map GUI. Could someone answer with code on how I'd do this?</p> <p>Thanks, -Sword960</p>
2321
0
How do you do :GetMouse() from a server script..?
118833101
iinaoriku
52
2019-08-29 00:56:51
<p>I am making a gun and I need it to make it FE. Inorder to do that, I must do :GetMouse() from the server. How do I do this?</p>
86668
1
Attempt to index nil with 'leaderstats' I had this issue before how do I fix it?
183699517
Coolmansunsh
24
2022-11-19 16:17:23
<pre class='brush: lua'><br />script.Parent.Touched:Connect(function(hit) local player = game:GetService("Players") if hit then local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player.leaderstats.Coin.Value &gt;= script.Parent.Requirement.Value then player.leaderstat...
132317
2
[SOLVED] How can you make for example 1.298018197102000063e+42 a normal number?
338950628
RedcommanderV2
1256
2018-05-16 17:24:42
<p>I have a problem, I tried to make a K,M,B system, but there is a problem, roblox changes big numbers to numbers like this one --> 1.298018197102000063e+42. But I convert it to a string, so my script sees the number like 1.2 --> wich will result in something like 1K.</p> <p>This is very annoying, so my question is, i...
58502
0
What is the script to teleport models?
14147350
kieranm9090
47
2014-06-08 12:04:47
<p>Hi,</p> <p>I want to make a teleport that can teleport a model from one place to another but does not teleport anything but this one model.</p> <p>How do I do this?</p> <p>Thanks Kieran</p>
6344
1
How Do I fix Argument 1 Missing or nil?
35984692
Xientra
17
2018-08-06 14:08:34
<p>First of all I just wan't to say This is the first Time I'm using Remotes, Anyway I'm trying to get this remote to give me hits when Triggered.</p> <p>If you need more info please reply.</p> <p><strong>The Remote:</strong></p> <pre class='brush: lua'>game.ReplicatedStorage.Remotes.AddHit.OnServerEvent:Connect(functi...
64767
0
why did team create delete my data?
408798115
Vetrodex
22
2022-10-30 12:58:23
<p>i created a new studio, for some stupid reason team create was on already, i spent a few hours rewriting a really long module and publishing everyonce in awhile, and i did some things before that, some other stuff while i rewrote it, and even hours after, i did some other stuff (not to the module), all while publish...
132085
0
How do I pause a tween on when the person is not holding on the prompt?
2062221132
rsdkqry
0
2022-11-12 07:54:48
<p>I have been trying to stop a tween when a player stops holding on the proximity prompt in a server side script. The tween mentioned is supposed to move a model of parts. I have tried making the variable global but it just returns me "Attempt to index nil with 'Pause'".</p> <pre class='brush: lua'>local TS = game:Get...
132248
0
rotation brick welded to hrp freezes player for some reason?
124020867
CaptainGreenSeals
23
2021-05-17 21:36:57
<p>So im working on a thing where it welds a brick to the humanoid root part, and the brick rotating. But the rotation script for some reason freezes the player in mid air.</p> <p>I did small bit of testing and the culprit is the rotation script, but i dont know how to make a different one</p> <pre class="brush: lua">w...
123533
0
How do I use the actual animations that I make in the animation PlugIn
1790328
master4407
0
2014-02-26 20:11:18
<p>So I don't want to waist money and have a couple of good animations how do I make them into a tool or like just an action that can be called upon during gameplay.</p>
315
0
My code for a dev product for button simulator doesnt, work can u help?
893143293
jakub_thecool
0
2020-11-21 21:19:53
<p>Hello, so i am making a button sim and i am making a dev product that does 10x Cash, but the code doesnt work for it, this is what i have so far</p> <p>local id = 1119704941 game:GetService("MarketplaceService").PromptPurchaseFinished:Connect(function(plr,ido,purchased) if purchased and id == ido then end)</p> <p>so...
116124
1
Could someone help me with this messed up kill command?
2831331
Regate
0
2014-06-14 05:01:07
<p>I've recently scripted an AI with a friend. He made this FindPlayer function, and the kill command, but every time we go into a game and do "Matrix, kill PLAYER", it kills everyone in the game. We don't know the error to this. It runs just fine. We have tried to fix this over and over.</p> <p>We think the error may ...
6655
1
What script and services do I use to make an object make a sound when moving at a certain speed?
461604490
2Loos
145
2020-10-10 16:00:09
<p>I'm making a roller coaster and everyone is requesting sounds. 2 parts. 1. How do I make a sound begin when the train hits a certain area. For example, the chain lift. If you've ever been to a theme park, and ridden a roller coaster, you should know the click click click noise. I want to play that sound when the tra...
114214
0
Gui not opening OnClick with FilteringEnabled?
150005945
snarns
25
2017-04-12 02:36:27
<p>If a part is clicked using a ClickDetector, a Gui (in the StarterGui folder) should show up. This works in Studio but not when I test the game with FilteringEnabled. How can I fix that? I use this script for interacting with things (i.e. turning on the tv, light switches, etc.) and it works fine for things like that...
41905
0
How do you send data over remote events?
23863698
racerman1255
2
2018-07-22 14:00:41
<p>I have tried to send a value for another value in replicatedstorage using remote events but it doesn't seem to accept it, I have read the roblox help page and tried everything there but got no where, any suggestions or even samples of code to help?</p>
63447
1
61626
0
556201097
YabaDabaD0O
505
2018-07-22 14:17:59
<p>I don't know if you're talking about the Value object like IntValues, NumberValues, etc.. or some actual value. However they're both pretty much the same.</p> <p>For sending data from Server to Client you need to specify which client you want to receive the data, the first value is always a player instance, and the ...
0
Welding function occurs to all players?
149094523
Crimsonknightzone
38
2021-02-22 22:24:25
<p>Hi again. I am currently fixing a bug in one of my part weld scripts. What's supposed to happen is this: Upon a server event firing, a part is duplicated from ServerStorage and welded onto the player who fired the event. This, of course, doesn't happen. All players end up getting a part welded to them. Someone pleas...
120535
0
How do I keep screen-size of gui's constant even if they are resized?
78676258
Arithmeticity
167
2015-03-18 02:47:32
<p>I noticed that whenever I re-sized my window, the gui's would get smaller and so on. I'm not sure why this happens. I want it to be at a constant-fixed size when you have it on minimized and maximized, across all computers.</p> <p>Don't get what I mean?</p> <p>Look at it this way:</p> <p>Let's say that I have a gui ...
15846
1
18985
0
14673497
aquathorn321
858
2015-03-18 03:03:52
<p>Simple, just set the size using offsets. <a target="_blank" href="http://wiki.roblox.com/index.php?title=Udim2#ignoreDescendantsInstance">UDim2s</a> take two arguments for length and two for height: xScale, xOffset, yScale, yOffset. <em>(For example: Instead of setting the size to UDim2.new(1,0,1,0), set it to UDim2...
0
How to change the background color based on bool value?
650688567
libaryman1
6
2022-11-12 22:44:14
<pre class="brush: lua">local frame = script.Parent.Parent.Frame local value = script.Parent.Value if value == true then frame.BackgroundColor = #828282 end </pre>
132258
0
data isnt saving when leaving?
157435478
Meerkatsrawesome
1
2022-06-21 21:09:36
<p>my data for a game im working on isnt saving or not loading not sure. ive checked in studio and in the actual game and its not working</p> <pre class="brush: lua">local serverStorage = game:GetService("ServerStorage") local DataStore = game:GetService("DataStoreService"):GetDataStore("PlayerSave") game.Players.Playe...
130444
0
BoolValue and 'If Then' help?
46382260
SpazzMan502
133
2014-11-29 18:42:09
<p>(I'm asking so many questions today)</p> <p>So I have a toaster, and my game is supposed to be very realistic, so When you unplug the toaster you can't power the toaster.</p> <p>So I have a BoolValue called "Plugged" in the ToasterPug, and when it's pulled, you shouldn't be able to power the toaster again. Well this...
12852
1
15895
1
386992
BlueTaslem
18066
2014-11-29 19:01:24
<p>If you were to inspect your <code>Plugged</code> BoolValue, then you'd see its value never changes.</p> <p>That's because you <em>never assigned to its property <code>.Value</code></em>.</p> <p>You instead assign to the local variable <code>Plugged</code>.</p> <p>Your assignments on line 1 in each script <strong>in ...
0
how to make placement system saving??? it dont save if i leave, it only works with click button:/
1959249435
moneyislands1
28
2021-06-07 12:48:29
<p>saving here in local script:</p> <pre class='brush: lua'>local canvas = game.Workspace.Bases.Base1.Building local furniture = game.ReplicatedStorage.PlacementObjects local Placement = require(game:GetService("ReplicatedStorage"):WaitForChild("Placement")) local placement = Placement.new(canvas) local mouse = game.Pl...
124166
1
Rotate a model and parent children around center of model
3409793
goldenggamper
10
2014-03-06 18:50:06
<p>Hi guys; I want to be able to rotate a model around the center of its self. I have this script but it rotates the model around an axis and not the center of the model. Can anyone help me. Thanks</p> <pre class="brush: lua">function onClicked() rotation=true parts=game.Workspace.Clay_Paky_K20_Beye.Pan:GetChildren...
526
1
Adding Datatore Service To My Script?
1554573538
kidsteve923
139
2021-05-05 12:12:26
<p>Hey devs I wanted To Add A Datstore Service To My Daily Reward Script! Script is...</p> <pre class="brush: lua">local Chest = game.Workspace.Chest local Chest2 = game.Workspace.CHEST2 local Lower = Chest2.NameTag.Lowertext local debounce = false local dailyreward = 250 Lower.Text = dailyreward game.Players.PlayerAdd...
123123
0
How can I make Mouse.TargetFilter become multiple objects?
34939297
nanaluk01
247
2017-10-10 13:33:58
<p>How can I make Mouse.TargetFilter become multiple objects?</p> <p>Right now I have this coding, but that does not seem to work: (Mouse.Target.Parent is a Model, I have made sure of that earlier in the script)</p> <pre class="brush: lua">for i,v in pairs(Mouse.Target.Parent:GetDescendants()) do if v:IsA("BasePart...
48563
1
48822
1
379898065
CootKitty
311
2017-10-10 13:45:02
<p>You can only set one <em>thing</em> to TargetFilter. But that can be a model, and TargetFilter will filter everything inside that model.</p> <p>That means you can do this:</p> <pre class="brush: lua">Mouse.TargetFilter = Mouse.Target.Parent </pre> <p>However, if you change the target filter in the future, <code>Mous...