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
1
Encountering Error 773 multiple times while trying to teleport to friend , any help?
473052976
nkminion
21
2021-04-07 04:28:15
<p>So , I made a friend teleport gui that teleports you to your friend. The place which where you are supposed to be teleported to has a max player count of 50 and is public as I tried using <code>Teleport()</code> and <code>TeleportToPrivateServer()</code> and it works. Im using a local script to teleport the player t...
122098
0
How To Make Rig Teleport And Face A Certain Direction?
1680108820
JmoneyPlayzOfficial
49
2022-12-11 07:14:28
<p>i want a script where it makes the rig moves to a part and faces the direction of that part</p>
132528
1
How do I make a part explode on collision?
14528056
PioIAm
6
2021-06-09 08:26:50
<p>I have a script for a long-range attack and I want to make it create an explosion anytime it collides with ANYTHING because right now, it only explodes when players are directly hit, and just phases through everything else.</p> <p>I’ve searched far and wide and couldn’t seem to find anything that would help me do th...
124214
1
How would I combine tables?
34209956
M39a9am3R
3210
2014-06-08 18:51:37
<p>I am trying to make a admin command script (I know ROBLOX has a ton of them) but I am wondering if it is possible to combine two tables for the script to look through at the same time? I am wanting to make a basic command such as kill and not have two chunks of a script to go through to run the command.</p> <pre cla...
6370
0
Easy Question: How i make a variable but this variable is equal in all scripts?
506839197
Omerevkizel
16
2020-06-29 17:03:38
<pre class='brush: lua'>--Example local inttime = 30 for 0, 30, -1 --pls say my for error in answer inttime.value = inttime.value-1 end </pre> <p>I want to show this in gui so i wanna use this variable in local script too</p>
107754
2
99051
0
1539306847
BIuehawks
62
2020-06-29 17:16:29
<p>Also remember that when using for loops the first number, in this case it's 0 is the start, the second one, which is 30, is the end, and the third number, (for you it was -1, but it should of been 1) is the end.</p> <p>If you're trying to make a countdown script, do something like this</p> <pre class='brush: lua'>lo...
0
attempt to perform arithmetic (sub) on nil and Vector3? On FireClient
427025015
RichDiggerW189
2
2021-09-14 01:07:16
<p>So I was just passing my mouse position and my shoopart onto my clientside bullet, but this error keeps on repeating and I dont know why. Can anyone please help me with this?</p> <p>Server:</p> <pre class='brush: lua'>bullet.OnServerEvent:Connect(function(player, mospos, startbul)-- the mouse position and shootpart ...
127424
1
Best way to get a random true/false value?
19610427
idontcare2004
5
2016-01-26 11:22:11
<p>I want to get either a random true or false value, but mine seems really inefficient and I'm sure there are a few much more efficient ways of doing exactly what mine does. Here's my code:</p> <pre class='brush: lua'>local variable if math.random(1,2) == 1 then variable = true else variable = false end </pre>...
26697
1
30230
5
157510912
General_Scripter
425
2016-01-26 11:23:39
<p>The best way to do this can be done on 1 line, simply have the variable assigned to a condition. Here's the most efficient way:</p> <pre class='brush: lua'>local variable = math.random(1,2) == 1 </pre> <p>That will give you a random true or false value each time.</p>
0
How to use PromptGamePassPurchaseFinished?
303575359
NoahsRebels
99
2019-06-24 04:02:15
<p>I'm making a VIP door and if someone doesn't own the gamepass in my game, they get a prompt to buy it. I tried to make it so that if they did buy the gamepass they would be allowed to enter and if they didn't they would get killed. I tried using PromptGamePassPurchaseFinished for the first time but it gives me the e...
82395
1
Does tweens get erased when a new tween is applied to the same object?
2479393
Dfzoz
345
2019-09-01 17:55:56
<p>I was creating a 2d grid movement system for my enemies AI. It moves by checking if the slot next to him is empty and then uses cframe to move. As it was too laggy to move with cframe in a wait() loop, I decided to make the enemy go to the empty slot instantly instead. For the animations, I used remoteevents for the...
86869
1
80483
1
270600903
RSASDSA
72
2019-09-01 19:31:08
<p>When a tween is played, it will stop other tweens that were played before it from modifying any property that it is modifying on the same object, but the other tweens will still modify properties that the new tween is not modifying.</p> <p>For example, if a tween was played that made a part red while moving it down,...
0
Obby stage leaderboard problems?
1260501243
olythic
0
2021-05-01 08:55:58
<p>How do you make a leaderboard for an obby, like a stage! I've been struggling.</p>
122983
0
How would I stop a tween from another script?
1071181471
fcvrs
22
2021-10-20 13:52:32
<p>I have an ability in my game that tweens the character forward and whenever that character hits a player, I want the tween to stop. I already have the script for detecting when the character is hit, but I don't know how I can stop the tween from the script that detects the player. I don't think it's possible to have...
127928
0
Attempt to index nil with backpack!??
598363835
Mrpolarbear2games
55
2021-12-21 17:55:20
<pre class='brush: lua'>script.Parent.MouseButton1Click:Connect(function() local name = script.Parent.Parent.plrname.ContentText local player = game.Players.LocalPlayer local plr = game.Players:FindFirstChild(name) for i,v in pairs(player.BackPack) do v:Clone().Parent = plr.BackPack ...
128359
0
RemoteFunction from Server to Client concerns?
241196338
Despayr
460
2020-03-26 00:47:52
<p>The Roblox Developer Site states that a Remote Function that uses the server to retrieve information from the client is discouraged due to the reason that if the Client disconnects before it can retrieve data, the server will hang forever.</p> <p>I was going to use the Remote Function so that the server could retrie...
97092
1
89643
1
32387094
FloweryMonkeyboy5
1325
2020-03-26 01:04:04
<p>Just swap out your RemoteFunction for a RemoteEvent.</p> <p>You will have to rewrite your server side a bit as you can no longer expect a direct result, instead the result will have to come from a OnServerEvent. This way you basically replicate a RemoteFunction but you manually tell the client to fire the event on t...
0
Changing material changes roblox physics?
21150072
jonathan1q2w3e4r
4
2018-09-09 18:20:55
<pre class="brush: lua">script.Parent.CornerWedgeAlpha.Touched:Connect(function() if debounce2 == false then debounce2 = true for i,v in pairs (script.Parent:GetDescendants()) do if v:IsA("Part") or v:IsA("CornerWedgePart") then local fire = Instance.new("Fire") f...
67160
1
64558
0
214890411
chexburger
358
2018-09-09 18:25:54
<p>Lets say you have ice. An ice part will float on water better then a brick part. There are physical properties associated with the different materials. Ice is less dense then brick. You can open the CustomPhysicalProperties section of a part to see the different material properties.</p>
2
How can I prevent a callback from yielding?
65765854
eLunate
5136
2016-04-28 21:30:39
<p>So, because I develop Valkyrie I have to consider all of the consequences of allowing external code and callbacks. One of the issues I've run into is that I have a callback which can be run before events to cancel them, but the callback mustn't yield so that the event connections can be fired off at the same time as...
30070
1
33602
1
386992
BlueTaslem
18039
2016-05-03 04:08:19
<p>You <em>can</em> use a C callback to prevent yields, but still get return values. Something like this:</p> <pre class='brush: lua'>function noyield(f) local t = {1, 2} local r pcall(function() table.sort(t, function() r = {f()} end) end) if type(r) == "table" then ...
0
How to remove GUIs ?
19940973
TOMGRAVES18
0
2014-04-16 14:33:19
<p>How do i remove basic Roblox GUIs, such as the Player List, Health, the <strong>annoying</strong> Toolset, etc. ?</p>
2153
1
Getting the UserID of a player by clicking them?
421168132
Notrealac0unt
19
2019-03-13 00:38:34
<p>So I asked a similar question yesterday. It worked, but not the way I wanted it. So I want the local player to click another player, then get clicked players <strong>USER IMAGE</strong> I'd think it'd be easy but it's proving to be hard. Any help is appreciated. My idea of the code is;</p> <pre class="brush: lua">lo...
77591
1
72723
0
537472621
Avigant
2374
2019-03-13 01:12:20
<p>First, let's get start by getting the part a player is clicking on, and checking if they are a player.</p> <p><code>LocalScript</code> in <code>game.StarterPlayer.StarterPlayerScripts</code>.</p> <p>```lua local services = { players = game:GetService("Players"), user_input = game:GetService("UserInputService"), }</p...
0
My tool Animation wont play when clicked (used for a simulator)?
1674805834
Black_Magic2533
58
2022-06-21 01:26:25
<p>Basically, I have a ServerScript inside of a tool (I used a ServerScript instead of Functions so hackers can't give themself infinite "gas" yet for some reason the Animation wont play, the script works fine except the animation</p> <pre class='brush: lua'>script.Parent.Activated:Connect(function() local Characte...
130431
0
Welds are not welding to Player. What is wrong with this script? [SOLVED]
1169362290
iiMxtt_Destinyii
58
2021-04-05 17:36:38
<p>My welds don't do anything when I create them in a script but when I change their properties in the explorer while playing the game, they work perfectly. What do I need to do in order to make this work because I am very confused. It outputs no errors and the script runs perfectly creating both welds and assigning th...
122042
1
111166
1
129233534
ezkatka1
50
2021-04-05 18:20:50
<p>Answered!</p>
0
How to make Gui for the player who Touched it Only?
532084574
AnasBahauddin1978
715
2019-09-21 06:38:50
<p>Help me pls, I put LocalScript In Gui And It didnt work, no errors, nothing happens It still shows for all players: https://gyazo.com/b674b7ec1881b1916c3c811c6785c034 this is my code in LocalScript in StarterGui</p> <pre class="brush: lua">local playerGui = game:GetService("Players").LocalPlayer:WaitForChild("Player...
87732
1
81292
3
15438711
pwx
1581
2019-09-21 07:33:11
<p>An easier way to do this is detect via Server-Side then use a RemoteEvent to fire the client.</p> <p>Like so:</p> <p><strong>Server Script</strong></p> <pre class="brush: lua">-- Put this script inside the part you want touched to activate the UI. local part = script.Parent local Players = game:GetService('Players')...
0
How do I select a random player in a team?
424755598
Mystical_Un1verse
0
2021-10-03 03:57:11
<p>I re-worded this, how would I be able to select a random player on a team and give them a tool?</p>
127783
0
Gamepass tools
38091715
Liftingoneweight
0
2014-02-19 14:26:44
<p>How do you script game pass tools, when a player has a game pass, they get tools in game?</p>
87
0
Why does this textlabel typewrite script give no errors?
204410354
LimitedVxrsion
3
2021-02-23 12:09:20
<pre class='brush: lua'>local part = workspace.Button local player = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") local proximityprompt = workspace.Button.ProximityPrompt local textlabel = game.StarterGui.ConversationGui.TextHere local name = game.StarterGui.ConversationGui.Name local dialog = ga...
120557
2
How do I use the Chatted event?
8869935
wattleman
90
2014-03-01 18:11:33
<p>Can someone help me with a basic chatted event? Like I want it to trigger when a player chats.</p>
395
1
703
3
4785454
Everesty
1001
2014-03-01 18:16:48
<p>First we can use the <a target="_blank" href="http://wiki.roblox.com/index.php/PlayerAdded">PlayerAdded</a> event to catch when a player joins.</p> <pre class='brush: lua'>game.Players.PlayerAdded:connect(function(Player) -- TODO: Add Chatted connection end) </pre> <p>After that, we can use the <a target="_blank...
0
Xbox if then else?
547812463
Stoutscientist
16
2020-11-23 22:39:39
<p>How would I put a if then else line in this</p> <p>wait(8.8) game:GetService('UserInputService').InputBegan:Connect(function(input) what i want it do do</p>
116231
1
106660
0
33666987
XDgirl909090
204
2020-11-23 22:41:44
<p>Hi! If I am understanding your question, then I think you just need to add this:</p> <pre class='brush: lua'>wait(8.8) if game:GetService('UserInputService').InputBegan then --code else --code end </pre>
0
How can I move a part behind another part regardless of orientation?
163641015
AbsurdAwesome101
56
2022-06-22 01:38:14
<p>In my game, I have a boss that has a lunge attack. He will charge toward the player and specifically target their torso. However, when he charges, he instead just kind of runs to the player and stands right in front of them. I’ve tried making them go behind the torso, but this is not working due to orientation. How ...
130447
0
How do you fix where a value is a child of something but the system does not see it?
22669276
jesusbeef
33
2020-03-21 02:19:34
<p>My script is supposed to give XP to a person that kills an NPC, however i've run into problems along the way.</p> <p>(script i am having trouble with)</p> <pre class='brush: lua'>local humanoid = script.Parent.Humanoid humanoid.Died:Connect(function() game.ServerStorage:WaitForChild("Events").GiveXp:Fire(100, hu...
96591
1
89230
1
536049572
NiroTurtle
83
2020-03-21 05:31:05
<p>It's because you are making the value in a localscript. Now, I am presuming you are using a localscript because it can get the player easily, but this means that no-one else will see anything the player does except for the player. The way to fix this is to turn it into a regular script and get the player by using ga...
1
What does the hashtag operator do?
42389829
stepatron
103
2018-06-10 20:27:27
<p>The wiki says it says the length of the table, but I dont get it. Does it mean that it turns the string into a table like [H, e, l, l, o]? And then lists the length of it? And does it start at the number 0? Like string[0] == 'H'? Thank you</p>
60068
2
58448
1
537472621
Avigant
2374
2018-06-10 20:30:10
<p>The # is the length operator. To quote the Lua 5.1 manual:</p> <blockquote> <p>The length of a table t is defined to be any integer index n such that t[n] is not nil and t[n+1] is nil; moreover, if t[1] is nil, n can be zero. For a regular array, with non-nil values from 1 to a given n, its length is exactly that ...
1
How To Fix Lagging The More You Fire A Function Or An Event?
161950547
Minecrafter09031031
16
2020-08-01 07:18:23
<p>--[ Details ]-- Hello, I am trying to make a neon-like party and there has been a bug, right now im using module script because i want the other script to use the function as well</p> <p>There is a Brick That Have ClickDetector , and A Script</p> <p>There is also a folder that contains NeonParts, Each Part is named ...
110443
1
101457
0
754480402
sleazel
855
2020-08-01 10:32:39
<p>You problem is that everytime you click, you are making a new connection, without disconnecting the old one. Roblox allows to have multiple connections to the same event, so they just stacking up, causing a lag.</p> <p>The solution will depend on what you are trying to achieve, but I will make a educated guess that ...
1
:lower() doesn't work for a command I'm making. How do I fix this?
676326715
WINDOWS10XPRO
438
2021-05-25 17:05:51
<p>As long as I know, using :lower() can make us use both caps and lower</p> <p>I tried making a command like if message == ";kick " .. playername:lower() then but when I typed that in roblox's chat as caps lock it doesn't fires the if statement</p> <p>How can I fix this?</p>
123774
0
How to make an NPC held hostage?
200719843
RusherRocket8
0
2020-04-19 01:05:40
<p>Hello! Im wondering how I can make and NPC held hostage. For example I have a moving npc but I want to make it so when your close you can press the 'f' key and they will get on the the ground with like an animation or something. I dont know how to do this so any help is appreciated! God bless! Stay alive!</p>
99814
1
Press key then run script?
51440452
masterhalo55
75
2014-04-12 03:01:27
<p>How do i make a script so when a player presses a key (R) they run faster?</p>
1228
3
1680
2
22319584
AxeOfMen
434
2014-04-12 03:23:08
<p>Place this code in a LocalScript. Holding 'r' will cause the player to run faster. Releasing 'r' returns the player to the original walk speed.</p> <pre class="brush: lua">local player = game.Players.LocalPlayer local character = player.Character local humanoid = character.Humanoid local mouse = player:GetMouse() lo...
0
This code only runs once and never runs again even with a while wait loop?
1400234436
KoalaKo_XD
27
2023-03-09 18:22:00
<p>Title.</p> <p>Here is my code:</p> <pre class='brush: lua'>local TweenService = game:GetService("TweenService") local RS = game:GetService("ReplicatedStorage") local enemiesFolder = RS.Enemies local enemySpawn = workspace.EnemySpawns:GetChildren() local moveToParts = workspace.MoveToParts:GetChildren() local randomS...
133167
1
120242
0
87531166
virushunter9
943
2023-03-09 18:26:39
<p>Round1() has its own while wait() do loop. When you run Round1() on line 27 it will continue forever because the loop on lines 17 to 21 will never stop.</p>
0
Claymore tool doesn't appear to print anything, double clicked or not (?)
1961959172
imnotaguest1121
313
2022-07-11 02:55:06
<p>As the title says, Im trying to make a claymore that has a lunge attack when double clicked, when simply clicked once, It simply slashes, I am new at making tools that has a double click feature, and when (double) clicked It prints out nothing</p> <p>Script:</p> <pre class='brush: lua'>local tool = script.Parent loc...
130742
1
118056
1
1014156252
Puppynniko
983
2022-07-11 14:42:17
<pre class='brush: lua'>local tool = script.Parent local CanDoubleClickBoolValue = tool:WaitForChild("CanDoubleClick") local Timer = 0.3 local Boolens = { Debounce = false } tool.Activated:Connect(function() if not Boolens.Debounce then Boolens.Debounce = true print("The tool has been clicked") ...
0
Why won't anchored characters die when I use my ragdoll death script?
559514967
T3_MasterGamer
458
2022-07-29 09:55:43
<p>I'm currently making a ragdoll death system in my horror game. When the player dies to the monster, it ragdolls. The monster anchors the player and jumpscares the player. The death has a two-second delay. It works fine, but when I use the ragdoll death script, the jumpscare won't let the player respawn, and the mons...
130991
1
Single button open and close tweened GUI frame?
277786
Joshuagibson2
16
2020-07-21 20:28:36
<p>--(Here is what I tried coding with I want the project to tween from the bottom of the screen upward and back down separately when clicked multiple times. But only with one button to control this. I am not great at coding so I have tried searching on Youtube and also through peoples creations have yet to get this to...
109639
1
100784
0
357035682
mikey2019d
38
2020-07-21 21:33:38
<p>Try this it should work</p> <pre class='brush: lua'>local Shop = game.Players.LocalPlayer.PlayerGui.ScreenGui.TextLabel local states = {0,1} local selected = 0 script.Parent.MouseButton1Click:Connect(function() selected += 1 local chosenState = (selected%2) print(chosenState) if states[chosenState] =...
1
Argument 2 missing or nil for TweenService:Create()?
103833540
deeskaalstickman649
388
2020-07-26 10:05:58
<p>I have this script here that changes the tweens the Camera CFrame, but i can't create it. The info and tweenEnd arguments are coming from the server.</p> <p>Local script:</p> <pre class='brush: lua'>local tween = game:GetService('TweenService') local camera = workspace.CurrentCamera camera.CameraType = 'Scriptable' ...
109999
1
101103
1
36537369
gskw
1046
2020-07-26 10:39:06
<p>You're hitting a rather annoying piece of undocumented behaviour in Roblox: you can't pass TweenInfo over RemoteEvents. In fact, it is automatically turned into <code>nil</code> if you try it. Instead, you can collect the arguments for the TweenInfo into a table and pass them over the network:</p> <p>Server script:<...
0
So after this, my sword only spawns 3 times now. I want it to spawn infinitely. What's going on?
247216558
iIndominusRexi
0
2020-08-03 21:54:41
<pre class='brush: lua'>bin = script.Parent ItemName = "Darkheart" WaitTime = 5 Item = bin:FindFirstChild(ItemName) backup = Item:Clone() function regen() local regen = backup:clone() regen.Parent = bin end debounce = false function onTaken(property) if (debounce == true) then return end debounce = true if ...
110646
2
What is 'Argument 1 missing or nil'?
81940756
uMicah
10
2018-09-08 22:48:36
<p>Today, I tried making an admin script and it has given me nothing but trouble, I have managed to fix the other issues, but this one has me stumped. I had never seen <strong>Argument 1 missing or nil</strong> before and have no idea on how to fix it. If anybody knows what this is please help!</p> <p>onServer:</p> <pr...
67111
0
How do i make parts have an outline when the mouse hovers over them?
1101237239
westleyaaj
15
2021-10-05 18:04:16
<p>I'm making a game and I want to have selection boxes when you have a hover over a object and it also needs to only Apply the selection box when a part has a specific child And I can't figure out how to do that</p> <p>Thanks in advance</p>
127800
1
115854
0
1020531782
sata5pa3da
214
2021-10-05 22:24:18
<p>To do this, you will need to do this in a local script placed in starter player scripts, starter gui, or other places where local scripts run.</p> <p>First of all you will need to create a selection box and get the Player's mouse like this:</p> <pre class='brush: lua'>local selection_box = Instance.new("SelectionBox...
0
While True Loop keep going after the playbutton is pressed?
714099374
MrBloxyPixel
2
2021-04-05 03:22:34
<pre class='brush: lua'>local Player = game.Players.LocalPlayer local Character = Player.Character or Player.CharacterAdded:Wait() local Camera = workspace.CurrentCamera local PlayButton = script.Parent.PLAY repeat wait() Camera.CameraType = Enum.CameraType.Scriptable until Camera.CameraType == Enum.CameraType.Scri...
122025
0
Trying to pull a player to another player, but it doesn't pull fast enough. Any tips?
31063499
luigi141
0
2022-05-12 03:20:05
<p>I'm making a script that pulls the nearest player. It runs properly, but the character moves over incredibly slowly unless they are in the air, which I have tried fixing by forcing them up with Velocity and by making them not collide, but the collision isn't working and the up velocity isn't something I liked. Could...
129974
0
How do I rotate a part 90 degree when clicked on?
834037162
WavePain
3
2018-11-14 16:00:55
<p>I can't figure out how to rotate a part 90 degree after clicked on.</p> <pre class='brush: lua'>local topCenter = script.parent local clickdetector = game.Workspace.Wedge.ClickDetector clickdetector.MouseClick:Connect(function() topCenter.Orientation = Vector3.new(-90,0,0) end) </pre> <p>I'm using this code but ...
70564
1
67213
1
85326063
EliteRayGawnX2
124
2018-11-14 16:06:11
<p>You need to add # of degrees to the number that the x axis is orientated to.</p> <pre class='brush: lua'>local turnNum = 0 -- this gets manipulated local turnAmount = -90 -- change to whatever local topCenter = script.parent local clickdetector = game.Workspace.Wedge.ClickDetector clickdetector.MouseClick:Connect(fu...
0
Why won't my player respawn at last checkpoint touched when they rejoin server?
448626559
bella_boopy
13
2018-09-22 02:48:44
<p>Hello!</p> <p>I have an Obby that works great, my Leaderboard keeps track of which Stage you are on and saves the data perfectly.</p> <p>However; when I rejoin my server, My character respawns at the start spawn instead of the last spawn they touched. The leaderboard will say I am currently on Stage 9, but spawns be...
67714
1
65009
0
372313609
CjayPlyz
643
2018-09-22 04:53:26
<p>This is what i found : The torso is removed from the game its replaced with HumanoidRootPart</p> <pre class='brush: lua'>function oa(object) local player = game.Players:playerFromCharacter(object) if player ~= nil then local ls = player.leaderstats local sl = game.Workspace:FindFirstChild(ls.Stage.Value) object.Huma...
0
? Local Sound not playing
200677889
Yishles
4
2018-07-05 20:32:51
<p>Learning as i go from my mistakes, go easy on me.</p> <p>This worked in another project so i copied it to a new one, now i cannot hear the sound outside of studio(Server).</p> <p>Game is Non-FE and i cannot find the difference/Error between my two projects.</p> <pre class='brush: lua'>db = false script.Parent.Touche...
61895
1
60358
0
60263778
KingLoneCat
2642
2018-07-06 00:12:28
<p>Hi Yish,</p> <h3>I think the reason it's not playing in the game is because you placed it in <code>Backpack</code>. If you want a Sound to be local, as in heard only by one player, then you need to place it into the <code>CurrentCamera</code> or the <code>Player</code> itself. However, keep in mind that the <code>Cu...
0
How to make an auto-sizing scroll frame?
45935510
Verbero
0
2016-03-20 18:43:01
<p>I want to create a scrolling frame that contains the list of players in the game with buttons inside. I want the buttons to all be the same size, and the scroll frame will get larger depending on the amount of buttons (and by that the # of players) there are.</p> <p>My guess is I would use RbxLibrary, but I'm not su...
28691
2
32127
7
39250676
ScriptGuider
5640
2016-03-20 18:54:01
<p>Well in this case, there's an easy enough solution to not be bothered with ROBLOX's libraries. If you're completely sure that each button will be the exact same size, you could simply set the ScrollingFrame's <code>CanvasSize</code> <code>Y</code> <code>Offset</code> to the product of <code>#Buttons * Button.Size.Y....
0
Give a tool to player through GUI button doesnt work for me?
1528953437
Marco2003b
5
2020-03-26 01:43:08
<p>Hello, I'm using this script:</p> <pre class='brush: lua'>local price = script.Parent.Parent.Price local tools = game.ReplicatedStorage:WaitForChild("Tools") local tool = script.Parent.Parent.ItemName local player = script.Parent.Parent.Parent.Parent.Parent.Parent script.Parent.MouseButton1Click:Connect(function() ...
97097
1
for i loops full explanation?
1288500822
Finty_james
269
2021-05-17 14:05:43
<p>So basically im still confused on for i loops. All I know is that I can use it for mutiple part event using tables. Im familiar with this type of for i loop:</p> <pre class="brush: lua">for i, some in pairs(something) </pre> <p>but not this :</p> <pre class="brush: lua">for i = some - idk </pre> <p>So can anybody sh...
123521
1
112602
1
1792778813
Xapelize
2658
2021-05-17 14:16:27
<p>for loops are numeric loops, but ipairs loop is a loop which loop through table of instances</p> <p>example</p> <pre class="brush: lua">for number = 1, 5, 1 do print(number) end </pre> <p>output:</p> <pre class="brush: lua">1 2 3 4 5 </pre> <p>the first number in there is the minimum value, 1</p> <p>second numbe...
0
Upon Team Death, game ends and one declared victor?
25842304
bloxxyz
274
2014-03-01 23:19:05
<p>I'm just curious to know how one would be able to do this? I've experimented with the possibility and don't know how and really can't figure it out. Basically, when a round starts, there are two teams, and when one team dies, the other is declared the victor with a Hint at the top of the screen.</p> <p>I don't want ...
417
0
Atempt nil nil indext with leaderstats?
1527823663
kickoff127
101
2023-02-10 00:34:35
<p>Why am I getting an atempt nil index with leaderstats error in this script?</p> <pre class='brush: lua'>local button = script.Parent local player = button:FindFirstAncestorOfClass("Player") repeat player = button:FindFirstAncestorOfClass("Player") task.wait() until player ~= nil local debounce = true button....
133047
0
How to prevent tool from becoming transparent?
6030494
Exsius
162
2015-04-08 22:09:07
<p>My Tool is doing this weird thing that when you zoom in in becomes invisible, zooming in slowly you can see it starts to become transparent with your character, This is strange since this never happened to me before.</p> <p>link to Tool test <a href="https://www.roblox.com/games/224367212/Test">http://www.roblox.com...
16508
0
How can I make the door teleports the victim towards the player?
1961959172
imnotaguest1121
186
2022-08-05 20:13:00
<p>Hello!</p> <p>I made a tool Inside of a NPC, what the tool does Is that when activated summons a door, and what the door does Is that when a victim decides to touch that said door will get teleported to the user, which Is very good to get kills, but the problem Is that even when the victim touches the door, they won...
131115
1
How to fix my Script that change music between day and night??
598133234
yaroslav664
7
2022-11-22 18:13:27
<p>sup defs, i got a problem. I have a script that change music between day or night... everything is okay but every second the playing music start again! How do i fix it?</p> <pre class='brush: lua'>local sound = game.Workspace:WaitForChild("Sound") local sleepsound = game.Workspace:WaitForChild("SleepSound") local ti...
132345
1
119535
2
559514967
T3_MasterGamer
2189
2022-11-23 11:22:26
<p><strong>EDIT:</strong> I thought of a new solution. Instead of using a loop, let's just use the signal that detects whenever the ClockTime is changed.</p> <pre class='brush: lua'>local sound = workspace.Sound local sleepsound = workspace.SleepSound local Lighting = game:GetService("Lighting") local startOfDay = 6 lo...
1
What is the most efficient way to make UI circles?
160010262
theevanegps2
15
2017-07-09 19:39:27
<p>I know of 2 ways to do this. I just wonder what is the most efficient way?</p> <blockquote> <p>Code 1:</p> </blockquote> <pre class='brush: lua'>local parent = script.Parent local color = Color3.fromRGB(0,0,0)-- makes the frame a Color3 RGB value for i=1,360,1 do local frame = Instance.new("Frame",parent)--Makes...
45033
0
[BUG] I have a problem with ClickDetector?
287206263
Dr_Smartypants123
52
2021-01-13 23:57:26
<p>This isn't really a scripting question, but I'm having a problem with ClickDetectors. When I hover over the part it is parented to, the click icon isn't showing up, and when I click the part, the ClickDetector.Triggered event doesn't fire.</p> <p>The weird thing is, is that it is inconsistent. I have 9 parts with cl...
118659
1
How do I detect if a thing has a certain child, and detect if it does?
1488957970
Radiant_Sparkles
69
2020-12-31 17:16:49
<p>I'm trying to change the starter character to a cat maid, but if its already a cat maid I dont want it to keep cloning. Im fairly new the scripting;</p> <pre class='brush: lua'>local function leftClick() local found = workspace:FindFirstChild("StarterCharacter") if found then print("kiwi") ga...
117957
1
107937
0
206662594
rookiecookie153
43
2020-12-31 17:28:13
<p>What if you make a debounce using an if statement? Like this:</p> <pre class='brush: lua'>local DB = false local function leftClick() if DB == true then return end DB = true local found = workspace:FindFirstChild("StarterCharacter") if found then print("kiwi") game.Workspace.Classes.C...
0
How to CFrame local player?
52649457
Jared_Comm
0
2018-02-05 02:59:12
<p>My code:</p> <pre class="brush: lua">wait(2) game.Players.PlayerAdded:connect(function(newPlayer) -- Player who just connected (newPlayer) if newPlayer:IsInGroup(3846293) then -- Check if (newPlayer) is in the group, (The Blue Coat Mercenaries) then do this end end) </pre> <p>My problem: So to teleport a playe...
53189
1
Double Subtracting Values?
17109037
BornLeader1
5
2014-05-05 00:51:51
<p>My script is subtracting the Value - 2 every second instead of - 1 and no, no other script is doing - 1 in case someone was curious. I don't know why it is doing this, that is why I am asking for your help!</p> <pre class='brush: lua'>while wait(1) do for i,v in pairs(game.Players:GetChildren()) do if v:...
4364
0
my script says &quot;attempt to index number with changed&quot; in the errors, what is wrong?
313291646
dangboxxer2786
4
2020-09-15 11:19:02
<pre class='brush: lua'>game.Workspace.Value.Value.Changed:Connect(function() local b = game.Players.LocalPlayer:WaitForChild("Character") b.HumanoidRootPart.Anchored = false print("Unchored") end) </pre>
113192
0
Is it possible to achieve some level of text-to-speech on Roblox, and how?
677278792
The_LogiNick
214
2020-07-19 18:41:00
<p>So my game requires EAS alerts, and I don't know how to set this up. The EAS, for those of you unaware, is the emergency alert system. It is used in the United States with automated Text to Speech software to send alerts regarding weather, usually. I don't know how I would achieve this on Roblox.</p> <p>Theory 1: My...
109462
1
100536
3
62087109
Raccoonyz
893
2020-07-19 18:50:13
<p>Text to speech is extremely complicated to do. It's even more difficult when you have to upload the audio and pay Robux to get it approved.</p> <p>Doing this would be extremely difficult, but it's possible. However, the only way to do it would cost a lot of robux and a lot of time.</p> <p>My suggestion? Make a singl...
0
Why won't My player's stat rise when health gets below a certain number?
56633716
attackonkyojin
135
2015-04-29 23:33:01
<pre class='brush: lua'>local hmn = script.Parent.Parent.Character.Humanoid local def = script.Parent.Parent.leaderstats.Defense while true do wait() if hmn.Health.Value &lt;= (hmn.Health.Value / 100 * 20) then def.Value = (def.Value + 1) end end </pre>
17123
1
20509
2
3508838
DigitalVeer
1473
2015-04-29 23:56:20
<h2>Health</h2> <p><code>Health</code> is a property itself, meaning you don't have to say <code>.Value</code> because otherwise that causes an error.</p> <p>For example, if you were to reference the Color of a part, you'd write:</p> <pre class='brush: lua'>color = part.BrickColor </pre> <p>And NOT:</p> <pre class='bru...
0
Remove car if no one is in it for 30 seconds?
54484715
5SaxWax5
2
2018-01-10 13:44:55
<p>Hi, I am trying to create a script where if no one is in the car for at least 30 seconds the car gets removed. I have tried creating different scripts but they never end up working and I need a bit of help, here is one script:</p>
51908
0
Text not showing on client side?
1948122737
ZOOP1015
27
2021-02-07 22:16:19
<p>I'm essentially trying to replicate the server side gui text onto the client side.</p> <p>Hello, i'm wondering how i can accomplish doing this? Currently I have the script inside serverscriptservice and ofc it's a normal script, and then again the text won't show on client side gui.</p>
119791
0
Creating something like a FindFirstDescendant?
15885806
SuperJumpman12
43
2019-10-09 06:43:57
<p>Is there a way I can create something that's similar to a hypothetical FindFirstDescendant? I know such a thing doesn't exist, but I have multiple models where, in order to use FindFirstChild, I would have to dig through the many models INSIDE the models, and give each one a unique name. Is there a way I can avoid d...
88548
0
Script Setting GUI TextColor3 to 19380, 62985, 65025 instead of 76, 247, 255?
21467784
MrLonely1221
701
2016-02-20 21:11:25
<p>Okay so I am having a problem where my script will work at changing the text color to red, but when it tries to change it back to blue it doesn't set it back to blue, it sets it to white. The color code that it gets changed to instead of 76, 247, 255 is 19380, 62985, 65025.</p> <pre class="brush: lua">local length =...
27685
1
31189
1
47966663
Pyrondon
2089
2016-02-20 21:13:14
<p>Color3 Values that are not 0 or 255 must be divided by 255:</p> <pre class="brush: lua">local length = string.len("11223344556677889911223344556677889911223344556677889911223344556"); if length == nil then length = 65; end; while wait(0.01) do if string.len(script.Parent.Text) &gt; length then script...
0
GUI Toggle script doesnt scan for RightShift Input?
1674805834
Black_Magic2533
58
2022-06-17 02:01:15
<p>btw there is a value inside of the GUI so that i know if its Visible so i can spend less time lol</p> <pre class='brush: lua'>local UIS = game:GetService("UserInputService") UIS.InputBegan:Connect(function(key) if key == Enum.KeyCode.RightShift then if script.Parent.Visible.Value == true then ...
130376
1
Trying to make a chunk loader, but its crazy?
71530978
enes223
327
2020-03-10 17:43:58
<p>I'm trying to make a game like minecraft but my chunk loader is just a bit crazy.</p> <p><a target="_blank" href="https://www.youtube.com/watch?v=-XqFXTlD_S4&amp;feature=youtu.be">Video</a></p> <p>Source Code:</p>
95884
0
attempt to index nil with 'Character'?
149094523
Crimsonknightzone
38
2021-02-22 19:17:47
<p>Another day, another scripting error... I've been touching up a script for the past few days. It's supposed to weld a part onto the player that touches a hazard. This, of course, has resulted in a lot of bugs with the script. This time, the <code>char</code> (Character) variable doesn't want to work. whenever I step...
120524
0
Custom Player List - update all users?
190475375
Never2Humble
81
2018-04-03 16:44:04
<p>Hello!</p> <p>I have a custom player list, and the custom player list will display a player's: Avatar, Name, Round Kills, and Killstreak. Only problem is, it doesn't update the Round Kills/Killstreak for the correct user in real time.</p> <p>Example: Player 1 has 2 RoundKills and a Killstreak of 2. On Player 1's Dis...
56140
1
54909
1
264859050
Nonaz_jr
439
2018-04-03 23:04:25
<p>first off, you do this every second? making a whole new unupdated gui (using values read at initialization, such as killstreak, then waiting for the event to update it? I may misunderstand, I read it quickly.</p> <p>Without the while loop, it's decent but it doesn't know which player to update: The event sends only ...
1
Local and regular script clashing?
377679694
TheB4dComputer
100
2021-01-05 13:32:23
<p>I have a game I'm developing, and I'm making a shop in it for armor and swords. When you enter a region specified by a blue circle, it SHOULD open a gui. It works once, and then doesn't run. It says it's done with the code, but nothing's appearing.</p> <p>I think it might have something to do with the X script. I'll...
118221
1
108166
1
472504641
AlexanderYar
788
2021-01-05 13:44:04
<p>Playerguis can only be accessed using client side scripts, so to do this, we use a remote event, so the server script looks like this:</p> <p>add a remote event to game.ReplicatedStorage and name it whatever oyu want, ill use the name remote event for this script to not confuse you</p> <pre class="brush: lua">script...
1
AssemblyLinearVelocity not working on players. Any explanations ?
877180405
Fouxelefr
7
2023-01-05 10:58:49
<p>So i have been trying to make something like when the player is touched by an object, the client sided script send a remote to the server sided script to make the other player flies. It works for dummies but when i am testing with a player, it doesn't works anymore.</p> <p>Here is a part of my server sided script:</...
132759
1
119872
1
559514967
T3_MasterGamer
2189
2023-01-05 12:10:28
<p>It's because of <a target="_blank" href="https://create.roblox.com/docs/scripting/networking/network-ownership"><strong>Network Ownership</strong></a>. All limbs of the dummies/NPCs are owned by the server, while the limbs of the players are owned by the players themselves. Because of that, you need to use <a target...
1
Limb collision system fires while mid-air?
1565853299
KneeDeepInTheDoot
13
2023-03-10 21:32:11
<p>In my code, I have it so every .Heartbeat, the game checks if a limb is intersecting with another part, which would not function without 0.8 x 0.8 x 1.8 limb colliders. This works just fine except for one thing. It somehow fires in mid-air even though I blacklisted all of the character parts. I even debugged it with...
133174
1
120258
0
559514967
T3_MasterGamer
2189
2023-03-14 12:47:20
<p>Okay, I found the problem. You see, in the <a target="_blank" href="https://create.roblox.com/docs">Roblox Creator Documentation</a>, it says that <a target="_blank" href="https://create.roblox.com/docs/reference/engine/classes/WorldRoot#GetPartsInPart"><code>Workspace:GetPartsInPart()</code></a> returns an array (t...
0
GUI Popup on Close Distance?
64476262
RemiIsDaBawss
2
2020-08-01 07:27:24
<p>Hey, I've been wondering how when you get close to an Egg It displays a GUI containing the Pets you can get and their Rarity, I just want to know the part where the GUI pops up when you get close to it and how to check if someone presses the buttons whilst the gui is open.</p> <p>https://gyazo.com/9f0d3b1b7f99c12865...
110445
0
How to unlock mouse in forced first person view?
310696583
LeHelary
87
2021-02-22 17:59:16
<p>I've found many answers to this same question but there's a problem with that. I'm trying to create a camera system like the one in Roblox Studio. That means players should be able to rotate the camera with right-click, move around with WASD, and select objects on the map with left-click. All answers I found suggest...
120522
0
How do I scale a UI in both X axis and Y Axis?
196687289
canadagamer1223
0
2021-04-07 13:13:37
<p>Hi, I have been trying to figure out what's causing why it only scales on the X axis, but not both, there are no errors in the output too.</p> <p>I am trying to make a healthbar that is shaped as a sphere.</p> <p>Here is the script.</p> <pre class='brush: lua'>local healthbarr = script.Parent local Player = game:Get...
122112
0
How can I navigate a gui while in shiftlock?
112391394
jmarsh33
7
2020-08-01 18:32:20
<p>My new game relies on the fact that players are always in shiftlock. However, how can I navigate a gui without the cursor?</p>
110487
0
how to make player look vector match velocity vector while touching part with velocity 75,0,0?
50605193
johnnygadget
50
2014-11-25 17:40:43
<p>i'm trying to make a script that makes a player face in the direction they are moving while touching a part with a velocity of 75,0,0 or any direction i may make the parts velocity to be.</p> <p>i've made a part with velocity 75,0,0 and when i stand on it moves me but my player doesn't look in the direction of movem...
12747
0
Player characters' physics not working correctly?
377679694
TheB4dComputer
100
2023-03-28 11:26:15
<p>I'm making a physics-based fighting game, where players can shove others and have falling deal damage. In it, I have a push ability where players press 'e' to play a short shoving animation, then any character in front of them that triggers the collision is ragdolled, then pushed away. It works great, except when us...
133246
1
120288
1
559514967
T3_MasterGamer
2189
2023-03-29 08:55:15
<p>It's because of <a target="_blank" href="https://create.roblox.com/docs/building-and-visuals/physics/network-ownership">Network Ownership</a>. Check my answer <a target="_blank" href="https://scriptinghelpers.org/questions/132759/assemblylinearvelocity-not-working-on-players-any-explanations#119872">here</a> for the...
0
How do I solve this error with character rigs?
156248976
TROBLOXIAN404
0
2021-04-06 16:32:56
<p>I'm trying to turn a player into a scarecrow. I found help on the internet and was told to use a plugin called "RigEdit Lite" to rig a scarecrow. I did that, but when I tried to open it with the animation editor, it said "Studio.AnimationClipEditor.RigErrors.MultipleParents". I haven't found any info on this error m...
122080
0
intvalue's integer wont decrease in value when boolvalue is set to true?
1349949134
ABDJackioZoAlt1
37
2023-02-08 05:50:52
<p>I'm trying to make an energy system for sprint in my game, where if the player is sprinting it decreases the intvalue's integer value, however it doesn't seem to decrease when the boolvalue is set to true</p> <p>When the player sprints the boolvalue is set to true and it should decrease the intvalues integer value, ...
133041
0
Problem running while wait loop?, i have not played roblox for a year at this point lol
585268368
josejunes
0
2021-04-06 19:44:18
<p>I am working on a script that mimicks the sine pattern(from trig), but the loop doesnt work?</p> <pre class='brush: lua'>local brick = script.Parent local Time = tick() local Runservice = game:GetService("RunService") local randomInt = 20 function makeRandom() local currenttime = tick() local yOffset = math....
122089
0
Script reading boolean value as true when it is false?
201640298
Syodoodle
2
2022-10-05 13:33:40
<p>I'm making a shop and one of the items is a speed boost that lasts for one life. Once you click to spawn in, the script checks if the "speedpower" boolValue is true or false. If it is true, it gives you high speed and changes the value to false. The shop will not let you buy the speedpower if you already have it. Ho...
131808
1
119054
0
110029109
loowa_yawn
316
2022-10-05 22:22:36
<p>If you're changing the BoolValue on the client and reading it from the Server, you're going to encounter issues with Filtering Enabled</p> <p>(you can read up more about it in this <a target="_blank" href="https://scriptinghelpers.org/questions/47956/what-is-filtering-enabled">scriptinghelpers post</a>)</p> <p>basic...
0
How come one of the commands in my script aren't working?
17514438
TheeDeathCaster
2368
2014-07-21 02:24:02
<p>Its the 'c/' command, it isn't working, it keeps saying <code>Failed to create script! :(</code>, I have tested it, and changed a few things, but still is not working, and there is nothing coming up in the Output, here is the script;</p> <pre class='brush: lua'>local Admins = {"TheeDeathCaster","TheAlphaStigma","Dea...
8439
1
10964
2
2933011
Nickoakz
231
2014-07-21 04:40:52
<pre class='brush: lua'>local Admins = {"TheeDeathCaster","TheAlphaStigma","DeathWindZombie"} function chkAdmin(str) for i = 1, #Admins do if str.Name:lower() == Admins[i]:lower() then return true end end return false end function Message(msg,time,par,type) local m = Instance.new(type) m.Parent = par for i = 1, #msg do...
0
Adding to Leaderstats On touch?
122514798
Nooblics
0
2018-11-07 11:41:12
<p>Most of the code works</p> <pre class="brush: lua">debounce = true if debounce then script.Parent.Transparency = 0 elseif not debounce then script.Parent.Transparency = .7 end function OnHit(hit) if debounce == true then debounce = false -- prevents script to run event again. print("All Good") ...
70164
1
How to make sure that when the player touches a share his name is written in a text label?
1629811819
creepycanary
12
2021-06-06 09:11:36
<p>My script:(I put it in a local script)</p> <pre class='brush: lua'>local Part = script.Parent Part.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then local PlayerName = hit.Parent.Name script.Parent.Parent.Parent.StarterGui.ScreenGui.TextLabel.Text = PlayerName end en...
124124
1
113155
0
1792778813
Xapelize
1952
2021-06-06 10:02:18
<p>wrong, this is a very common mistake which a lot of people edits screengui, yeah that works before but it's moved to playergui (located inside game.Players.LocalPlayer)</p> <p>you are going to do:</p> <pre class='brush: lua'>local Part = script.Parent Part.Touched:Connect(function(hit) if hit.Parent.Name == game...
0
How do I find a local playertool by name?
18976509
maxi66666
6
2022-11-23 17:22:36
<p>Hello, I have added a proximity prompt to a part and when used, it sells the item you currently have. I made this by creating a "Tools" folder in the proximityprompt, followed by a Boolvalue (Name of tool) and Numbervalue (Price of tool)</p> <p>So the structure looks like this:</p> <p>Part - Proximityprompt -- Tools...
132352
1
119540
0
435817619
SpriteGamerHD
47
2022-11-23 18:26:02
<pre class="brush: lua">local prox = script.Parent prox.Triggered:Connect(function(player) for i, tools in pairs(prox.Tools:GetChildren()) do if player.Character:FindFirstChild(tools.Name) and tools.Name ~= "Sword1" then player.leaderstats.Cash.Value += tools.Price.Value player.Chara...
0
[SOLVED] Attempt to index number with number?
1624504218
GameBuilderLol
58
2023-02-20 10:09:26
<p>Im trying to make it check if the button that is clicked has a value with a name that is equal to the current number.</p> <p>But for some reason it gives out the error on the title.</p> <p>Heres the part where it doesnt seem to work:</p> <pre class='brush: lua'>if button:FindFirstChildOfClass("NumberValue").Name == ...
133094
0
Color Changing Light Script Tips?
57356543
wsing12345
0
2021-01-13 18:40:59
<p>So, I've tried a few different things for this and nothing seems to work. I'm working on making a light slowly change color at the click of a button. I have named the light "light1" and I have put it in the model "PromLights". Any tips or ideas would be appreciated! Thanks so much!</p> <p>Here's a sample of the scri...
118647
1
'Attempt to index number with 'Clone'' error occuring in my math.random script?
351467574
Galaxybombboy
85
2021-01-14 02:41:01
<p>So i have a parkour script that loads a different parkour map from a folder in server storage that moves it to workspace and moves the position. But im getting the error 'Attempt to index number with 'Clone' '. So the script is</p> <pre class='brush: lua'>local roundLenth = 35 local intermissionLenth = 6 local InRou...
118666
1
108538
1
676326715
WINDOWS10XPRO
151
2021-01-14 02:49:58
<pre class='brush: lua'>local randomItem = math.random(#Item) </pre> <h1>means the number, consider using</h1> <pre class='brush: lua'>local randomItem = Item[math.random(1, #Item)] </pre>
0
How to make this open when a boss's health is zero?
15268497
TheRings0fSaturn
28
2014-06-04 21:00:38
<p>The boss's name is "Boss" and his humanoid is named "Humanoid" and he is also in Workspace. If anyone can help me, it'd mean a lot to me.</p> <pre class='brush: lua'>while true do for i=1,20 do script.Parent.Parent.Lock3.CFrame = script.Parent.Parent.Lock3.CFrame * CFrame.new(0, 1, 0) ...
6172
1
8191
2
29251132
HexC3D
830
2014-06-04 21:03:50
<pre class='brush: lua'>if game.Workspace.Boss.Humanoid.Health == 0 then for i=1,20 do script.Parent.Parent.Lock3.CFrame = script.Parent.Parent.Lock3.CFrame * CFrame.new(0, 1, 0) script.Parent.Parent.Lock4.CFrame = script.Parent.Parent.Lock4.CFrame * CFrame.new(0, -1, 0) wait...
0
Why is my output saying: 'attempt to index nil with Play'?
691835309
xXmatthewgameingXx
0
2022-11-24 04:47:22
<p>The output says: 'attempt to index nil with Play'</p> <p>My code:</p> <p>These are just the main parts (no ends because not needed for question)</p> <pre class='brush: lua'>local fireAnim = Instance.new('Animation') fireAnim.Parent = framework.viewmodel fireAnim.Name = 'Fire' fireAnim.AnimationId = framework.module....
132361
0
How do i make a part/parts rotate in local space?
849198397
jdm4llfem8
82
2020-07-31 21:01:09
<p>I am trying to rotate car wheels but whenever its turned on one axis and then turns on another it completely messes it up.</p> <p>script:</p> <pre class='brush: lua'>game:GetService("RunService").Heartbeat:Connect(function() for i,v in pairs(script.Parent.Parent.Parent.FLSS:GetChildren()) do if v:IsA("We...
110409
0
How would I print indexes of LogService:GetLogHistory()?
24366884
MINEBLOX106
55
2015-09-29 04:06:35
<p>The API on the wiki didn't help me at all, it only showed me the syntax, but I have no clue how to use it. I'm working on an AdminGui, and one of the features is that you can script from it. But if it errors, the user doesn't know what is erroring.</p> <p>I know GUIs don't pick up prints, but I if I know how to prin...
23106
2
How do you make mouse.Hit.p Ignore parts ?
7177436
Voltoxus
248
2014-12-14 01:20:17
<p>I need to make the mouse ignore the players gun and fake arms in my FPS game i'm making and the mouse.Hit.p is vital to the gun Its used for position the gun up and down on the Y-Axis to point at the mouse and also gets the coordinates of were the bullet will fly too, please help! thanks</p> <p>Also the script is ru...
13247
2
16295
2
386992
BlueTaslem
18071
2014-12-14 07:24:03
<p>The <code>Hit</code> property of a mouse ignores any descendants of the player's Character.</p> <p>Sometimes that may not be the best option, in which case you could use raycasting, probably the <strong><a target="_blank" href="http://wiki.roblox.com/index.php?title=API:Class/Workspace/FindPartOnRayWithIgnoreList">F...
2
What is tostring and tonumber?
233224360
mastercheeseit
77
2020-09-22 02:37:55
<p>I really don't get on anywhere about how to use them when to use them and why you use them i would really apperocate if u know anything about it please try to explain to me.</p>
113472
0
Why aren't my leaderstats saving?
238838551
PadmeOragana
78
2020-07-23 17:34:34
<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 ...
109781
0
Why doesn't my datastore work, it doesn't print anything or give errors?
1137780701
Sweaty_Bot96
2
2020-10-17 19:27:00
<p>I followed theDevKings tutorial on datastores and yet it doesn't work. It could be that my script is outdated as the video is almost a year old.</p> <p>Here is the script:</p> <pre class='brush: lua'>local dataStoreService = game:GetService("DataStoreService") local dataStore1 = dataStoreService:GetDataStore("dataSt...
114490
0
How would I make GUI Text change when a brick is clicked?
32975136
YoureTotallyScrewed
9
2019-06-01 15:42:34
<p>I'm new to scripting, so I'm not very good at this. I made this code out of what I do know about scripting, but it won't work.</p> <pre class='brush: lua'>function onClicked(mouse) game.StarterGui.ScreenGui.TextButton.Text = "hi" wait(5) game.StarterGui.ScreenGui.TextButton.Text = "x" end script.Parent.C...
81016
1
75426
0
164884514
mc3334
649
2019-06-01 16:17:45
<p>Hello! To do this, we will need something called a remote event. Just follow the following steps:</p> <p><strong>SETUP:</strong></p> <p>1)Create a remote event under ReplicatedStorage</p> <pre class="brush: lua">-Name it "Clicked" </pre> <p>2)Create a local script under the text label you want to change.</p> <p>4)C...
0
I have a remote event to fire when the player clicks a shop gui,why doesn't it work?
167154017
yumaking
63
2020-05-20 00:08:05
<p>I want the player to be able to buy an item when they click on a shop gui button, at first i put the code in a local script alone but i realised the player's money value only changed for them so i used a remote event and it didn't work, so i tried just printing a message with the remote event instead.That didn't wor...
103718
1
95728
1
659969649
Misqueso
145
2020-05-20 00:12:54
<p>It seems that you have placed the Server Script inside the Replicated Storage. Scripts inside Replicated Storage do not execute. You should place any server scripts inside the ServerScriptService.</p>
2
How do you &quot;paste&quot; something into your player's camera (like to make a realistic sniper scope)
50642786
fartz808
30
2014-03-16 03:51:42
<p>How do you draw or paste and image of a sniper scope when scoping to the player's camera so that there the cross thingy you aim at the middle? Like in games where the sniper scope isn't sctually bricks, its like a picture of one pasted in.</p>
724
2
1145
8
21540827
Articulating
1335
2014-03-16 05:11:05
<p>Use a GUI, probably an ImageLabel, to show things on the screen. You seem new to GUIs, so I would suggest looking <a target="_blank" href="http://wiki.roblox.com/index.php?title=Beginner%27s_GUI_Tutorial">here</a>.</p>