question_score
stringclasses
21 values
title
stringlengths
6
119
question_userid
stringlengths
4
10
question_user
stringlengths
3
20
question_user_score
stringclasses
496 values
question_datetime
stringdate
2014-02-01 23:57:31
2023-04-02 01:40:15
question
stringlengths
0
11k
question_id
stringlengths
1
6
answer_count
stringclasses
8 values
answer_id
stringlengths
0
6
answer_score
stringclasses
18 values
answer_userid
stringclasses
946 values
answer_user
stringclasses
963 values
answer_user_score
stringclasses
692 values
answer_datetime
stringlengths
0
19
answer
stringlengths
0
10.7k
0
How to transfer data between Places?
1421099517
Alperenyazar0
0
2022-06-20 17:08:45
<p>Despite my research from the internet, nothing I do works. How do I transfer Data between Place? I copied the following script to both Places as a script: (In ServerScriptService)</p> <pre class='brush: lua'>local DataStoreService = game:GetService("DataStoreService") local DataStore = DataStoreService:GetDataStore(...
130423
0
How should I make a dive like in Robot 64?
204448429
youngmacka123
17
2021-02-23 16:16:50
<p>So, I want to create a dive like in 3d platformer games (mario 64 and robot 64 are good examples) but I don't know how to do the sliding part. I've been looking around for quite a while now and have not found any useful results. (Once again, I know how to do everything apart from the bit where I want it to slide.)</...
120569
0
How can I set properties locally using a click detector?
1406209964
ElectricZooo
55
2020-07-13 04:36:56
<p>I am using a click detector so a player can click a button and set properties of parts (transparency/CanCollide) locally so they are the only player seeing changes but since you cannot run local scripts in workspace I'm not sure how I can do this through a click detector or if this is even possible. Could remote eve...
108916
1
99996
0
1777456227
Nickuhhhhhhhhhhhhhhh
819
2020-07-13 04:40:08
<p>You could do this by detecting when the ClickDetector is clicked from the client and simply just change the properties of the parts on the client. You could run this code in a LocalScript from anywhere inside of the client.</p> <pre class='brush: lua'>local Part = workspace.Part ClickDetector.MouseClick:Connect(func...
0
Can anyone help out with a punch script? (trying to make it server sided)
946498536
Not_Paulo
4
2020-11-22 15:49:22
<pre class='brush: lua'>ifDmg = true Keyting = "e" amountdmg = 10 local plr = game.Players.LocalPlayer local mouse = plr:GetMouse() mouse.KeyDown:Connect(function(key) if key == Keyting then local anim = script.Parent.Humanoid:LoadAnimation(script.Animation) anim:Play() anim.Looped = false ...
116158
0
Why does mouse.Hit.Position place this part in a constant position somewhere else? [SOLVED]
32975136
YoureTotallyScrewed
9
2023-03-25 02:23:04
<p>trying to write a function that spawns a damaging part where the cursor Vector3 position is. No errors show up in output but the position where the part spawns is always in a random but unchanging position. FYI - some parts of the script have been omitted to save space but it's mostly just individual checks to see i...
133237
1
Tweak script please, and please tell me why its not working (if its not working)..?
1140657357
xxkillergodmanxx
5
2020-06-26 21:53:22
<p>I want it so when you arent touching apart your weapon deletes</p> <pre class='brush: lua'>weapon.Equipped:Connect(function() if part.Touched:Connect = false(function() weapon:Destroy() end) </pre>
107534
0
im trying to make bomb tag, and the tagger has a highlight. its not working right?
518263070
hudstir
0
2023-03-22 13:51:16
<p>the highlight stays on the person who had the bomb first, and it doesnt come back next round. when i run this code V</p> <pre class="brush: lua">local currentTagged = Instance.new("ObjectValue") currentTagged.Name = "CURRENT TAGGED PLAYER" currentTagged.Parent = rs currentTagged:GetPropertyChangedSignal("Value"):Con...
133228
1
How can you teleport all players to a Certain Area?
1288500822
Finty_james
269
2021-03-27 14:29:59
<p>I have been thinking of this for a long time... How can you teleport all players to a certain area?</p> <p>No matter how much I try to research, I cant find anything. So I decided to come on this site to ask a question.</p>
121742
1
110908
2
48885392
bibi0629
82
2021-03-27 14:47:55
<p>Assuming you meant teleport within a place, <a target="_blank" href="https://developer.roblox.com/en-us/articles/How-to-teleport-within-a-Place">there is an article made by roblox.</a></p> <p>You'll need to get all players first, using <a target="_blank" href="https://developer.roblox.com/en-us/api-reference/functio...
0
What's the best way to apply a force to a character?
22653509
MrHerkes
166
2018-09-22 19:13:49
<p>I wanted a character to get pushed away without any lag. I've tried two ways of applying a force to a character. One is that I applied BodyForce to the root of the character and destroying the BodyForce after 0.1 seconds. Sadly, when someone has high latency, it wouldn't work sometimes. I've also tried the velocity ...
67752
0
I'm coding rn and for some reason Position is not a valid member of Model anyone know how to fix?
995903142
BonkedWasTaken
0
2022-08-02 00:13:25
<p>Script has changed since I've made progress but it is still showing the same error.</p> <p>local tower = script.Parent local mobs = workspace.Mobs</p> <p>local function FindNearestTarget() local maxDistance = 50 local nearestTarget = nil</p> <pre class="brush: lua">for i, target in ipairs(mobs:GetChildren()) do ...
131051
0
Multiple Destinations
462428
RSoMKC
45
2014-02-17 21:53:35
<p>I'm learning how to do basic AI programming. I found this script on this website which I'm really appreciative of:</p> <pre class='brush: lua'>Workspace['Test AI'].Humanoid:MoveTo( Vector3.new(10,0,0), Workspace.Baseplate ) -- ?? Workspace['Test AI'].Humanoid:MoveTo( Vector3.new(10,0,10), Workspace.Baseplate ) </pre...
45
0
Why does my while true loop stop after a few iterations?
51697211
AronYstad
101
2022-01-01 11:52:31
<p>So I made a while true loop to make fire spread in my game. The first iteration it spreads fine, the second iteration it only spreads to a few of the bricks, and after that, the code seems to completely stop. Also, the game lags quite a lot when the loop runs, so any ideas on how to optimise it? Here is the code:</p...
128615
0
InsertService not inserting a model ingame?
15450849
MadWorlds
84
2019-03-16 13:09:47
<p>I have this function I'm using to handle the case of Roblox failing to insert the model, since it's very integral to the game.</p> <p>The place this is being run in is a group place and the model is free. The code works in test servers and in 'Play Mode', but doesn't work in an actual server.</p> <pre class="brush: ...
77716
0
How do i use pathfinding service in a zombie i made?
951380
ace12345678135
50
2016-10-30 05:38:50
<p>I want to make a zombie that moves towards a player. I know how to get pathfind service and make points from the youtube tutorial, but instead of showing people how to insert that script into a model with humanoid and make it move, he assumes everyone already knows how to script it, skips to a game showcase, and end...
36709
1
Why is connect deprecated?
11808841
blowup999
659
2017-07-28 20:19:59
<p>I've always used event:connect(), except I was going through RBXScriptSignal and I saw that connect is deprecated in favor of Connect() does anybody know why this is?</p>
45894
1
46652
0
345710839
MightyBaconOverlord
253
2017-07-28 20:36:40
<p>It was most likely because <code>connect</code> is inconsistent with Roblox's use of Pascal Case for object member names. Other such instances of this have occurred in the past, for instance <code>getService</code> being deprecated in favor of <code>GetService</code> in DataModel.</p>
0
attempt to index function with 'Value' error keeps showing up?
25034342
jochengael
0
2022-05-08 06:52:39
<p>I am creating a door system that only opens doors depending on your card's clearance value, and I keep recieving this error and I don't know what's wrong.</p> <p>This is the entire script.</p> <pre class='brush: lua'>-- // variables // local ts = game:GetService("TweenService") local rs = game:GetService("Replicated...
129954
0
How can I get a players rank in group if they are not in game?
175809831
Cald_fan
26
2020-02-24 04:06:02
<p>As you know you can not send requests to roblox's api from game. And I need to get a players rank in group based off ID. How do I do this?</p> <p>I have tried</p> <pre class='brush: lua'>HttpService:GetAsync("https://groups.rprxy.xyz/v1/users/"..tostring(UserId).."/groups/roles") </pre> <p>It returned 400(Bad Reques...
95110
0
Script not printing out player name as it should?
1251627904
CodeWon
65
2021-04-07 23:50:00
<p>I was making some basic and random code and nothing happend when I ran it.</p> <pre class='brush: lua'>local players = {} game.Players.PlayerAdded:Connect(function(player) table.insert(players, player.Name) end) for i, v in pairs(players) do if v.Name == "CodeWon" then print("Hello") end end </pr...
122133
0
How would I get the other values of a multidimensional array?
93469599
Pinksheep2007
5
2022-05-03 21:18:27
<p>I am trying to get the Level Name and Level Status but I haven't found out how to get those with just the level id (ex. "Level1" or index [1] of the 2nd array). Does anybody know how to do this?</p> <pre class='brush: lua'>local Levels = { {"Level0","Level 0","Safe"}, {"Level1","Level 1","Unsafe"}, } </pre>
129904
0
Incorrect HttpService post parameters?
40763226
bombsaway8
0
2017-10-19 18:23:15
<p>I'm working on a system that allows communication from ROBLOX to Discord via a bot.</p> <p>When using PostAsync, these are my parameters:</p> <pre class='brush: lua'>local Data = { ["Authorization"] = "auth_code" -- this is normally a string with an auth code, however for security reasons I can't include it } ga...
48757
0
How would I use ContextActionService and bind Touch back to default?
879399690
jamespringles
105
2021-03-24 02:22:50
<pre class="brush: lua">ContextActionService:BindAction("PlayerInput", playerInput, false, Enum.KeyCode.W,Enum.UserInputType.Touch) </pre> <p>This will run the "BindAction" function every time the W key is pressed or the screen is touched on a touch screen.</p> <p>When this happens the W key will no longer move the cha...
121613
1
What is &quot;HTTP Requests?&quot; How can I use them?
461604490
2Loos
145
2020-11-09 15:15:57
<p>I've seen this everywhere, from the F3X plugin to Discord feedback GUIs. How does this work? What does it do, and what is it used for in general? I have no code for this, as I don't even know what it does. I want to know what it can do.</p>
115550
1
106141
3
346475255
Optikk
499
2020-11-09 15:48:34
<p>HTTP (hypertext transfer protocol) requests used <em>outside</em> of Roblox are most often used for communicating information from websites to you. In Roblox, you can use HTTP requests to communicate with endpoints or read information from a website. Roblox exposes HTTP methods through <a target="_blank" href="https...
0
Players in the server cannot see each other's edited avatars?
449298285
StirSavvy
38
2021-04-06 00:11:24
<pre class='brush: lua'>game.Players.LocalPlayer.CharacterAdded:connect(function() -- Head Color local Head = game.Players.LocalPlayer.Character:WaitForChild("Head") Head.BrickColor = BrickColor.new("New Yeller") -- Arms Destroyed local LeftUpperArm = game.Players.LocalPlayer.Character:WaitForChild(...
122050
1
111178
0
1361134044
NotedAPI
809
2021-04-06 00:22:47
<p>You're using a LocalScript to make the changes to their avatar, which isn't going to replicate it to the server. Use a RemoteEvent or Normal Script.</p>
0
How to use IsPlaying?
67304998
GameAnnounce
3
2014-06-14 12:39:33
<p>Hello,</p> <p>I wanted to know how do I detect when a song has stopped playing since the IsPlaying function is not working as it should. So if I a song was no longer playing how would I find this out? (P.S I'm not going to use :Stop() since it's a automatic switching system). So how would I do it?</p> <p>Thanks Pkam...
6660
0
How Do I Change The Camera By Clicking A Gui?
216282452
ErraticThe_legend27
8
2020-05-25 09:56:56
<p>i want to make it so when the player clicks a button inside a frame it then changes the camera. i am using this script:</p> <p>repeat wait() until Player.Character</p> <p>Camera.CameraType = "Scriptable" Camera.CFrame = game.Workspace.CamPart.CFrame</p> <p>script.Parent.Enabled = true</p> <p>to set the camera to a p...
104283
1
96279
0
206535752
AntiWorldliness
863
2020-05-25 17:03:13
<p>You didn't script the part where a player has to click a button in order for the code to execute. You said you wanted the GUI to be visible though when a player clicks the button.</p> <pre class='brush: lua'>game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.ButtonName.MouseButton1Click:Connect(function() -- button ...
0
Unable to find value in player?
966100159
NUR53_M45K
0
2022-11-22 06:54:19
<p>So, I'm making an in game ID card. In my game, there are 6 soul colors that are each represented by a number. There's also an integer value (created in another script) that's stored within the players character. It's called "Color." I'm trying to have the script find that value, and then change the color of a GUI fr...
132339
0
How do you add a simple knockback system to a tool?
526210522
Dehydrocapsaicin
20
2021-01-03 05:10:52
<p>This is how I did it but it doesn't work. Please help, thank you! &lt;3</p> <pre class='brush: lua'>local tool = script.Parent local head = tool.Head local swinging = false tool.Activated:Connect(function() local humanoid = tool.Parent:FindFirstChild("Humanoid") if humanoid then local smash = tool.Sm...
118090
0
Why can't I destroy the pet?
595106923
VipDanT
0
2022-06-19 16:42:46
<p>I'm working on a simulator Link btw: https://web.roblox.com/games/9952086550/Donut-Eating-Simulator And this destroy pet doesn't work. Can someone please explain this? Here's the code: game.ReplicatedStorage.Remotes.UnequipPet.OnServerEvent:Connect(function(player, pet) if player.Character.Humanoid.Health ~= 0 then ...
130408
0
how i can remove all hats and create a new one on the player ?
41909831
sheppard929
9
2018-05-15 19:51:32
<p>hello, or even hello again for some I'm still a beginner for the LUA script, I know a few tricks but I don't know how to do it, so I'm here to ask you for a little help.</p> <pre class='brush: lua'>local function ChangeClothes(char, shirtid, pantsid) local shirt = char:FindFirstChildOfClass"Shirt" or Instance.ne...
58469
1
Dialog not showing up?
37652173
DeveloperSolo
355
2015-10-19 01:21:57
<p>So I'm making a dialog so you can rob a place, but when I test it the dialog is not showing. I bet I am doing something wrong but Idk...</p> <p>What i'm trying to do is script a dialog to rob a place.[basic of it]</p> <pre class='brush: lua'>local Dialog1 = Instance.new("Dialog", workspace.John.Head) -- in ze head, ...
23665
0
How do I fix my 'object detecting' script?
275409044
Gam3r_Play3r
23
2020-09-14 07:10:28
<p>So basically, I made a script for my AI car, and I want it to stop when something was in front of it, and that's what I made. But what make's me confused is that why does it keep driving when something is in front of it instead of stopping?</p> <p>Script:</p> <pre class='brush: lua'>local leftDrive = script.Parent.C...
113152
1
103876
0
1283216314
Harry_TheKing1
145
2020-09-14 12:29:21
<p>Maybe Try This:</p> <pre class='brush: lua'>local leftDrive = script.Parent.Chassis.WheelRL.WheelMount.LeftDrive local rightDrive = script.Parent.Chassis.WheelRR.WheelMount.RightDrive local stopLight1 = script.Parent.LightParts.TailLightPart1 local stopLight2 = script.Parent.LightParts.TailLightPart2 script.Parent.S...
0
Is there any way that I can disable FilteringEnabled on my game?
5736873
tyridge77
0
2022-11-13 16:17:15
<p>I’m trying to disable FilteringEnabled on my game, but I haven’t found any way to do so yet. Any suggestions?</p> <p>I tried:</p> <pre class='brush: lua'>game.Workspace.FilteringEnabled = false </pre>
132268
0
part is in explorer but localscript cant see it, any help?
1868345253
Verse_NOVA
52
2023-02-07 14:41:07
<p>I am trying to make an FPS gun system, it works just fine until the player dies. I can still see the "ViewModel" object in the explorer, but when I try to reference it through a modulescript that is run by a localscript it can't see it. Any help would be appreciated!</p> <p>local script:</p> <pre class='brush: lua'>...
133036
1
120133
0
1491184861
666_brithday
79
2023-02-07 14:49:55
<p>In your module script I don't see you told the system where it is you are going to want to do something like this</p> <pre class='brush: lua'>local View = game.Workspace.ViewModel -- change this to the correct placement it is </pre> <p>or depending on the scripts location you can do this</p> <pre class='brush: lua'>...
0
Local ambience script fails to cooperate after the player dies and respawns?
7168501
Char187
0
2018-04-17 05:12:54
<pre class='brush: lua'>while true do wait(.25) ray = Ray.new(Char.Head.Position,Vector3.new(0,1,0).unit*5000) part = workspace:FindPartOnRayWithWhitelist(ray,whitelist,false) AudioData = script:WaitForChild("AudioData") if part ~= nil then ray2 = Ray.new(part.Position,Vector3.new(0,1,0).unit*5000) advpart ...
56984
0
Where can I find a list of useful premade functions?
127069567
builtItMemj
0
2016-05-17 20:51:34
<p>Where can I find a list of common and useful function such as <code>wait()</code>? Before learning about the wait function I was hard coding a wait method and may be doing so with other functions as well.</p>
30669
0
How would I make a Gui that appears when another player is clicked on?
29772586
broboch479
15
2014-03-01 21:01:52
<p>I need a Gui for my Pokemon game that opens up and offers the option of sending a battle request to the other player.</p> <p>What I have so far:</p> <pre class="brush: lua">local player = script.Parent.Parent m = player:GetMouse() m.Button1Down:connect(function() if m.Target then if m.Target.Parent then ...
407
3
How do i make a pellet from a slingshot break buildings? [Unanswered]
6785177
Marios2
360
2014-07-10 23:04:27
<p>I am trying to reprogram a slingshot so that, instead of damaging humanoids, it takes out parts out of buildings.</p> <p>Is this script i added in correct in any way? <em>Note:No errors in the script</em></p> <pre class='brush: lua'>connectionPart = pellet.Touched.Part:connect(onTouchedPart) function onTouched(hit) ...
7913
0
How to fix script not showing up on ServerScriptService?
89587322
blackshot43
7
2019-01-06 06:30:53
<p>So I have my scripts in serverscriptservice and everything's working fine but the whenever I press start the script just went missing.</p>
73943
1
How to make it so only one person can hear a sound?
11808841
blowup999
659
2014-02-26 00:50:34
<p>Is it possible so that if in a roblox game only 1 person can hear a sound and nobody else can? If so how?</p>
300
3
549
1
39760131
Hippalectryon
3
2014-02-26 00:57:44
<p>Put the sound inside a GUI in the player's PlayerGui That way only the player will hear it</p> <p>Hope i helped :)</p>
0
Does ROBLOX handle advanced calculations?
1613881755
brodywth
97
2021-06-08 18:32:16
<p>I'm thinking about making a rocket ship game,</p> <p>I was just wondering if ROBLOX was able to calculate stuff like:</p> <p>E = MC^2,</p> <p>M (u + du) - M u = M du,</p> <p>dm (u - v) - dm u = - dm v,</p> <p>M du - dm v,</p> <p>(p - p0) A - M g cos (a),</p> <p>u = v eq in (mf/me) = v eq in MR = ISP g o In MR</p> <p...
124205
0
So Im trying to make a Button which lets you spawn but it is doesnt work. What should I do?
473052976
nkminion
21
2020-03-30 08:01:14
<p>I am making a FFA/TDM game where players can enter the game by pressing a button. The button is inside a ScreenGui which is inside the StarterGui. The script inside the button is a localscript</p> <p><strong>Code</strong> (LocalScript):</p> <pre class='brush: lua'>local ReplicatedStorage = game:GetService("Replicate...
97542
1
90117
0
244452876
JesseSong
3400
2020-03-30 13:13:55
<p>Local scripts cannot be accessed through a serverstorage or serverscriptservice. It can only work if you add a remote event through a serverscript to local scripts.n</p> <pre class='brush: lua'>local ReplicatedStorage = game:GetService("ReplicatedStorage") local remfunction = ReplicatedStorage:WaitForChild( "Spawn")...
0
OrderdDataStore Request Limit?
3925445
DaMrNelson
130
2014-05-30 18:06:38
<p><a target="_blank" href="http://wiki.roblox.com/index.php?title=Data_store">Normal DataStores</a> have a limit of <code>60 + (10 * players in game)</code> requests per minute. Do <a target="_blank" href="http://wiki.roblox.com/index.php?title=Ordered_data_store">OrderedDataStores</a> have this same limitation?</p> <...
5856
0
Tried to index a function with WaitForChild?
462634197
pietrosniper1000
0
2021-05-02 17:03:37
<blockquote> <p>when i run the game the error in the title appear</p> </blockquote> <pre class='brush: lua'>local player = game.Players.GetPlayerFromCharacter local leaderstats = player:WaitForChild("leaderstats") local config = script.Parent.Parent.Parent.Frame.ScrollingFrame.Frame.ImageButton.Config script.Parent.Mou...
123036
0
Color Lerp doesn't work properly?
111523961
Azure_Kite
870
2018-08-29 07:40:29
<pre class='brush: lua'>local newColor = Color3.new(math.random(255), math.random(255), math.random(255)) for i=0,1,0.1 do script.Parent.Color = script.Parent.Color:lerp(newColor, i) wait() end </pre> <p>Instead of doing a transition, it does this garbage instead.: https://www.youtube.com/watch?v=qHoCi8t3p3g</p...
66454
1
64065
0
102676337
GmDTheSine
70
2018-08-29 09:41:18
<p><strong>Color3.new</strong> takes float from 0 to 1. You should use <strong>Color3.fromRGB</strong> instead if you're trying to use RGB values for parameters:</p> <pre class='brush: lua'>local newColor = Color3.fromRGB(math.random(255), math.random(255), math.random(255)) for i=0,1,0.1 do script.Parent.Color = s...
0
Why does my output say &quot;Attempt to index nil with &quot;Position&quot;?
82150455
Garnetpj2007
0
2020-09-13 05:35:12
<p>I've been trying to fix this issue, but cannot seem to find a fix. Here is the code below:</p> <pre class='brush: lua'>local Player = game.Players.LocalPlayer:FindFirstChild("Humanoid") local RunService = game:GetService("RunService") local UIS = game:GetService("UserInputService") local Door = game.Workspace.DualDo...
113105
1
What's the purpose / use of &quot;do&quot; by itself?
386632990
gmatchOnRoblox
98
2018-06-14 02:08:37
<p>Is there a purpose of "do" outside of a for loop? I only see them in for loops, and occasionally randomly.</p> <p>i.e - (not literally but this is an example lol)</p> <pre class='brush: lua'>do print("Hi") end </pre> <p>Could someone explain the functionality of this?</p>
60307
0
The tween of a part is not working, Why is that?
412955334
AriyanHacker29
22
2020-07-20 14:08:11
<p>I wrote this simple code but it does not work, Please help thanks</p> <pre class='brush: lua'>local tween = game:GetService("TweenService") local tweeninfo = TweenInfo.new(10, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 1000, true, nil) local tweenProperties = {Position = Vector3.new(-16, 10, -6)} tween:Create...
109532
1
Grab ability keeps damaging the player, what the hell (?)
1961959172
imnotaguest1121
287
2022-09-21 04:06:36
<p>As the title says, I made this tool where when you click, you will grab, If you manage to grab a NPC or player, you will yeet them, the problem Is that the ability also damages the player, and the victim as well, like what the actual [Bleep].</p> <p>Note: The tool has no handle</p> <p>Script:</p> <pre class='brush: ...
131685
1
Leaderboards
5206310
alibix123
175
2014-02-19 13:38:25
<p>How do I start on making one? Do I tag a killer and add a number for every time the killer has killed? How do I show this on a leaderboard?</p>
85
2
171
3
1850266
Bubby4j
231
2014-02-19 15:44:09
<p><a target="_blank" href="http://wiki.roblox.com/index.php/Leaderboards">Leaderboards</a> are just some IntValue items inside all Players.</p> <pre class='brush: lua'>game (DataModel) Players (Player Service) Player1 leaderstats (IntValue) KOs (IntValue) WOs (In...
0
How do i change a size of a GUI element from a script?
1593155829
OreyTheOre
12
2021-02-21 13:35:23
<p>Hey there, i need to know how i can change a GUI Element's (imagelabel, textlabel/button etc.) size from a script. Is it?</p> <pre class='brush: lua'>(GuiElement).Size = "{size}, {size}" </pre> <p>Please tell me</p>
120458
0
How can I fix this intermission script that breaks when another player touches it?
861475515
kek_productions
7
2023-03-03 10:00:32
<p>It works perfectly for one player but when another player touches it, it pauses the first player's gui timer.</p> <pre class='brush: lua'>ready_players = {} local timer = script.Timer local debounce = false local rs = game:GetService("ReplicatedStorage") local Countdown:BoolValue = script.Bool rs.TeleportTouched.OnS...
133137
1
How would i make a quest for a player?
1530504742
epic_hen9
25
2021-04-07 12:22:20
<p>I have a gui of a player speaking when a player gets close enough. How would i make it so they could go somewhere, get a gear/item, and bring it back so the NPC can say something else?</p>
122108
1
111243
0
1522202318
NathanBlox_Studios
212
2021-04-07 12:49:20
<p>You could make a quest value in the player. When you accept the quest the quest value changes to the quest number. And when the player returns, the quest giver checks their backpack or their character (because they might have it equipped) for the gear/item. If they have it they get rewards and the quest value is set...
0
How can I change humanoid`s parts?
345256394
HeyItzDanniee
222
2018-04-17 14:09:26
<p>I want to make an armor, I want a humanoid to touch the armor and it will change his parts into the armor parts. For example humanoid`s hand will change into ArmorHand.</p> <p>I dont know how to change a part of a humanoid, can someody help me change for example just the head on touch event? I will learn to do the r...
56992
1
55695
0
80243995
AlexStorms
21
2018-04-17 15:56:13
<p>I think it is possible, but unfortunately I do not know how to script it, but I have seen this and it rather works like a morph I think. Or there are other ways you could implement it. Try surfing the toolbox for armor morphs then try to learn the code by observing and then try to make armor of your own and try a re...
11
How do I get the height of a wave?
78338000
Xiousa
156
2017-01-09 22:31:38
<p>Hey, I've been working on boat physics, and I was experimenting with smooth terrain water.</p> <p>It was going great...</p> <p>...until the water was going over the raft, and making it look unrealistic.</p> <pre class='brush: lua'>local x, z = 0, 0 game:GetService("RunService").RenderStepped:connect(function() y...
38894
1
Vector3.FromAxis(Axis (Enum) axis)
462428
RSoMKC
45
2014-02-18 17:56:36
<p>I'm attempting to create a mining unit shot from orbit. (Using BodyPosition) When it's close enough to the surface, I want it to anchor (and do some other trippy stuff yet to be added to the script) However, I'm struggling with the Vector3.FromAxis</p> <pre class="brush: lua">local body = script.Parent local destina...
65
1
125
3
13416513
Merely
2122
2014-02-18 18:08:34
<p>According to the wiki, Vector3.FromAxis has one argument, with a type of Enum.Axis</p> <p>The options for the enum are: X, Y, and Z.</p> <p>Here's an example of how to use it.</p> <pre class="brush: lua">Vector3.FromAxis(Enum.Axis.Y) </pre> <p>Some other changes needed for your script: - Line 9 doesn't need a 'do' a...
0
Why wont this work??
18369403
Lem0nzz
5
2014-04-16 10:05:23
<p>Why wont this work?? Nothing wrong with output, it just wont work.</p> <pre class='brush: lua'>local player = Game.Players.LocalPlayer local swordMesh = script.Parent local GuiBar = player.PlayerGui.ScreenGui.TextBox --Change to correct path. GuiBar.FocusLost:connect(function() pcall(function() swordMesh...
2116
0
What is wrong with this script?
63545797
StandardIglooMoron
0
2015-05-03 16:30:42
<p>I'm trying to write a script that will play the first four seconds of a sound over and over when a button is clicked, then stop when another button is clicked. It works when I test in studio, but when I go to play my game, it plays the full sound and doesn't repeat. Here's the script I'm using:</p> <p>v = 1 clicker ...
17242
0
How do i make a doubletap to dash script in my game?
39478722
EzireBlueFlame
14
2019-01-07 06:22:26
<p>I want to make a double tap W to dash script in my game but i dont know how to could someone give me an idea of what i would need to do to make it work and i can figure out the rest from there?</p>
74027
2
How EXACTLY does this recursive factorial function example work in Lua?
965397388
programmerHere
370
2019-05-28 17:31:13
<h1><strong>Disclaimer</strong></h1> <p>I know what recursion is. I'm just having some trouble understanding a specific part of it. There are questions regarding recursion, but they are more of "what is recursion" rather than what I am asking.</p> <hr /> <h1><strong>Question</strong></h1> <p>I will use a factorial func...
80850
4
75277
3
386992
BlueTaslem
17922
2019-05-29 02:03:19
<h2>A functional view -- find and replace</h2> <p>First, I'm going to write the <code>fact</code> function <em>slightly</em> differently, because it will make the first version of my explanation easier.</p> <pre class='brush: lua'>function fact(n) return n == 0 and (1) or (n * fact(n - 1)) end </pre...
1
How to control ray cast thickness?
1159375735
NightmaareTsukuyomi
78
2020-04-05 21:56:38
<p>I'm currently trying to make a mob to follow a player and move around obstacles using ray casting. However, there was been a problem with it not checking whether or not the space that it can walk through will fit because the ray is like 1 millimeter thick. So I was wondering if there was a way to change the thicknes...
98242
1
90732
2
506493159
ViktorIsNub
32
2020-04-05 22:00:33
<p>I don't think there is a way to control the thickness of a ray, however, you can use TWO rays.</p> <p>Here's how it works, create 2 rays, one at the very far left of the mob, and one at the very far right.</p> <p>Cast them in the direction the mob is currently moving at, then check if BOTH of the rays return nil, if...
0
Trying to make a Gui that says the players username?
180198062
Nimbzee
14
2019-06-20 22:15:51
<p>Ok, to start things off I am a complete noob at scripting 100% noob, I'm trying to make a text label that says Hello and your username And I have a screen GUI in the Starter gui and a text label inside of the gui. I don't understand much about scripting so this is what I could piece together from my knowledge Becaus...
82169
2
76399
1
216701907
suspectshot108
559
2019-06-20 22:48:49
<p>It's very simple. All you need to do is reference the player and get their name.</p> <p>Also, you will want to use a Local Script, not a regular script cause a local script only runs in the player and a regular script only runs on the server. And as long as you have a screen GUI with a textlabel inside, you're all s...
0
Some questions ?
13970097
namelessassasin
30
2014-04-30 22:29:11
<p>What is return and when do we use it?( example please)</p> <p>What is impairs and pairs and what is it used for?</p> <p>What is and iterator?</p>
4017
0
How do I make a decent loop that doesn't glitch?
164513214
Fixer1987
84
2020-11-21 19:59:20
<p>Hello everyone!</p> <p>I have been trying for ages to make a decent loop function that can play alarms when a BoolValue in workspace is true. This is what I got so far, I tried many things but none of them worked:</p> <pre class='brush: lua'>local playergui = game.Players.LocalPlayer.PlayerGui while wait(game.Worksp...
116118
0
Are highlights enabled for mobile devices?
107690936
SpiritualSonicdash
67
2022-07-06 03:17:45
<p>I'm currently developing a game that uses the highlight object to make certain important assets pop out. In live games on PC, this works perfectly fine, and will display as intended, but while testing on mobile, the highlights were not there for most mobile devices I tested on.</p> <p>There was only one that had the...
130657
0
Why is my door model teleporting above the wall?
570131927
lineoreo
0
2021-05-04 21:16:26
<p>trying to place a door model between a wall consisting of three parts and it teleports on top instead of the proper spot</p> <pre class='brush: lua'>while true do wait(1) local om = game.ReplicatedStorage.Reinforced0 local cm = om:Clone() if workspace.ACS_WorkSpace.Doors:FindFirstChild("Reinforced0") == nil then...
123099
0
CFrame LookVector not changing???
703610999
R_LabradorRetriever
198
2020-11-05 20:03:01
<pre class="brush: lua">local camcenter = workspace.CameraCenter -- this is a part that controls a camera local cframe = camcenter.CFrame local MaxIncrement = 10 local increment = 1 local uis = game:GetService("UserInputService") uis.InputBegan:connect(function(input) print("InputDetected") if input.UserInputTy...
115392
1
106001
1
263275634
HEMAN_9
70
2020-11-05 21:10:53
<p>After experimenting with the code you provided, sometimes the new CFrame you change it to can have numbers that show up as "NAN" or not a number. These show up when you do something like divide 0 by 0. NAN came up for me with an unrotated block for me when I tried out your code, but it worked when I rotated the bric...
0
I need help with scripting, can yall help me? i need help with detecting a keyboard button pressed
837939149
Vortex_Vasne
89
2019-09-30 22:59:09
<p>yea so i need help sorry for the title i am still learning scripting i am a noob at it how do i detect a keyboard key pressed?</p>
88166
4
81721
1
813441115
MmadProgrammer
35
2019-10-01 01:13:54
<p>You can use the UserInputService to detect when a key is pressed. For example:</p> <pre class='brush: lua'>local userinputservice = game:GetService("UserInputService") userinputservice.InputBegan:Connect(function(key) -- when key is pressed if key.KeyCode == Enum.KeyCode.Q then -- if key is *x* then... -...
0
Using DataStore
1986945
PiggyJingles
358
2014-02-26 22:59:20
<p>I'm trying to figure out how I can save and update a "key" in the datastore with a table. I've never used DataStore before so I'm trying to figure out how it works.</p> <p>I have<code>{plr.Name, servername, password, public};</code>and I want to save that to the next position in the serverList table.</p> <pre class=...
317
1
582
6
31265920
Azarth
3141
2014-02-27 00:00:09
<pre class='brush: lua'>serverList[#serverList+1] = {plr.Name, servername, password, public} </pre>
0
Datastorage does not save data when leaving, how to fix?
320675807
Dragon_meck
4
2021-04-06 18:48:28
<p>I know someone else has asked this but it hasn't been answered and I'm really stuck and worried I won't be able to find it again. So sometimes my data stores work and sometimes they don't. It's weird. Here's the important code and I'm not getting any errors or errormessage</p> <pre class='brush: lua'>game.Players.Pl...
122088
1
111222
0
38403618
CoolMcroy
35
2021-04-07 03:18:16
<p>If you are testing and you are the only one in you server, the server shuts down when you leave and the code wont run. To prevent this, add another block of code that includes this</p> <pre class='brush: lua'>game:BindToClose(function() for _, player in pairs(game.Players:GetPlayers()) do local Id = "pla...
0
what is the problem that causes character displacement?
73237950
TinyHooman
2
2021-05-03 23:22:41
<p>I have an issue in all of my games where joining after a server starts causes some player's characters to be displaced from their humanoidrootpart in multiple possible ways(they can be in any direction)</p> <p>this causes player complaints involving appearances of players flying or being invisible.</p> <p>I cannot f...
123069
0
How to make a pinsetter weld with pins on touch and sense when the player got a strike?
308572986
bittyboy1234
91
2021-01-20 22:49:40
<p>So I am trying to make a bowling game, and I need to know how to make a working pintable that senses when the player got a strike. I also need to make rotating sweep arms.</p>
118986
2
Touch Function going crazy?
2869366
Paldi
109
2016-12-20 00:44:09
<p>Hello, i'm trying to make some kind of hitbox to use as a zone in a kind of Capture the zone game and when i touch it it works as expected but when i leave it it dont, when i touch it, it should add +1 to the "Hero" or "villain" value and when i leave it should negate -1 to it but what happen is it negate like -40 a...
38165
0
How would I make a voting system that gives players a gear?
167148136
bloxcel
0
2021-06-07 22:38:43
<p>Hello. I am currently working on a story type game. I am making a script where you vote for what item you want to use. This is the main script, and what I have currently.</p> <p>local togglePollEvent = game.ReplicatedStorage.Remotes.togglePollEvent</p> <p>wait(5)</p> <p>togglePollEvent:FireAllClients(true)</p> <p>wa...
124182
1
Not changing the color when team is changed?
112463152
Ieowyyn
69
2020-05-23 11:41:40
<pre class='brush: lua'>--// variables //-- local gui = game:GetService("ServerStorage"):WaitForChild("Name") --// script //-- game.Players.PlayerAdded:Connect(function(plr) plr.CharacterAdded:Connect(function(char) if not char.Head:FindFirstChild("Name") then local clone = gui:Clone() ...
104090
1
96627
1
237126800
TheWaildug
40
2020-05-29 19:09:16
<pre class='brush: lua'>local Group = game:GetService("GroupService"):GetGroupInfoAsync(GROUPID) --this is just if you want the group name local GUI = game.ReplicatedStorage.Group game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(char) local clone = GUI:Clone() ...
0
attempt to call a RBXScriptConnection value but why?
73170429
imKirda
1110
2020-10-18 15:00:50
<p>I have made custom plugin prefab maker, there is a function called onRunning which fires when the module is Initialized (On bindable event).</p> <pre class='brush: lua'>function Plugin.OnRunning(Connection) return Startup.Event:Connect(Connection) end return Plugin </pre> <p>In the script, i require the module, ...
114521
0
NPC Script Shortening with Modules?
13924793
luckyjack7
0
2014-02-18 01:52:24
<p>I just wanted to know if it would be possible if I could put these functions into one module script, or would I have to put each function into a seperate Module Script?</p> <pre class="brush: lua">wait (3) NPC = script.Parent Children = NPC:GetChildren() humanoid = NPC.Humanoid IsHurt = false SpawnPos = NPC.Spawn.Po...
53
1
Data Store one value saving, other not.
49776603
TomsGames
225
2014-03-13 07:54:28
<p>NOTE: This is activated by the PlayerRemoving event.</p> <pre class='brush: lua'>local ds = game:GetService("DataStoreService"):GetGlobalDataStore() ptnow = pts.Value hsnow = hs.Value local asynccode = p.Name .. "pts" local asynccode2 = p.Name .. "hs" if not (ds:GetAsync(a...
660
2
Freezing Death Water Script
2108078
Mirror_Master
25
2014-02-18 18:13:09
<p>How do I make a script that functions the same as asimo3089's Winter Games Lodge?</p>
66
3
126
3
24324045
Trewier
146
2014-02-18 18:31:39
<p>something like this:</p> <pre class='brush: lua'>script.Parent.Touched:connect(function(part) character = part.Parent if character:FindFirstChild("Humanoid") then for i,e in pairs(character:GetChildren()) do if e:IsA("Part") then e.Anchored = true end end ice = Instance.new("Part"...
0
How do I revert an animation to its first version?
1696695257
sngnn
274
2019-11-04 01:24:06
<p>I was testing a run animation, and I made one and it took a really long time. I made another to see how it looked, and when I went back, it didn't go back to the animation I made before I changed it.</p> <p>Anyways, I made the animation for a sprint script:</p> <pre class="brush: lua">local Player = game.Players.Loc...
89592
1
83029
0
1007890826
nc2r
117
2019-11-04 15:37:33
<p>Find the <a target="_blank" href="https://www.roblox.com/library/4292125434/">animation</a> in the roblox web site, then click the three dots at the top right of the animation, then click configure, go to versions, find version 1 and revert to this version. Hope this helps</p>
1
i am trying to make a viewmodel show on the players screen and its not how do i fix it?
1659997192
CMB1048
25
2022-11-23 21:23:28
<p>i keep getting the error "Unable to assign property Position. Vector3 expected, got CFrame "</p> <p>(i am bad at scripting)</p> <p>and even if it got fixed i dont know if the viewmodel would show</p> <p>heres my code:</p>
132356
1
119542
0
215237638
LikeableEmmec
470
2022-11-23 21:45:23
<p>You put in <code>Position</code>, but you use <code>CFrame</code>. Hence the error. It's a really easy fix:</p> <p>local run = game:GetService("RunService") local RS = game:GetService("ReplicatedStorage") local plr = game.Players.LocalPlayer local char = plr.Character local GunModels = RS:WaitForChild("GunModels") l...
0
Keeping gear after death?
23698202
zachmcfly
11
2020-04-05 11:23:57
<p>im trying to make a script that makes it so that you keep a gear after you die but i have no clue how to do it, its meant for a egg hunt event in my own game where you collect eggs and have to get all of them to get a badge award, but when you die you have to get the eggs (they are gears) again.</p>
98186
0
'string expected, got instance'. How to fix?
698511703
PufferfishDev
0
2021-02-21 13:20:27
<p>Hello. I am trying to make a player title script but it keeps on outputting the error 'string expected, got instance'.</p> <p>Here is my code:</p> <pre class='brush: lua'>local Players = game:GetService("Players") local function title(plr) if plr.Name == 'PufferfishDev' then wait(1) local ws = ga...
120457
1
What is the best way to structure game scripts?
26654129
Adsteriuss
10
2019-01-09 12:28:50
<p>Hello, this is rather a general game development question, would ask this on devforum if I could bother getting accepted in there.</p> <p>What would be the best way to structure scripts on a major project, trying to make as much things as possible in one big script, or making multiple scripts each doing something el...
74123
3
69877
1
22225270
ee0w
458
2019-01-09 14:11:13
<h1>For proper game development, readability is key.</h1> <p>This allows for easy debugging in the future. <strong>Never</strong> write sloppy code and expect to be able to read it 2 months later; you won't. The explicit point here is to remain organized, and Roblox provides you with a few tools to do so.</p> <h4>How a...
0
I made this, but it wont print out any errors, and the output dose not give any errors?
47710658
RootDirectory
10
2014-04-26 00:58:50
<pre class='brush: lua'>numtble = {} function Check() repeat wait() until game.Players.NumPlayers &gt;= 2 for i,v in pairs(game.Players:GetPlayers()) do table.insert(numtble,v.PlayerGui.Points.Posy.Numbers.Value) wait() print("Awesome2") wait() end end function Check2() for i=1, #numtble do if i &gt; 2 then if numtble[...
3551
0
Ways to get the center position of model?
38406274
synkrio
281
2020-05-10 05:22:27
<p>I'm working with viewport frames right now and I need to be able to center a model, however there is no position property for models. The model's primarypart exists but it is not in the center. Is there any ways to get the center position of a model and if not, I would like to know the best way to work around it.</p...
102561
2
94716
1
87531166
virushunter9
943
2020-05-10 05:36:13
<p>I assume you can do this by using <a target="_blank" href="https://developer.roblox.com/en-us/api-reference/function/Model/GetBoundingBox">Model:GetBoundingBox()</a>.</p> <pre class='brush: lua'>local model = workspace.Model local orientation = model:GetBoundingBox() local position = orientation.p </pre> <p>I haven'...
0
How do I detect distance and orientation of part under car?
156865601
TheMiniMagic_YT
20
2022-05-01 18:26:09
<pre class='brush: lua'>script.Parent.MaxSpeed = 120 maxspeed =script.Parent.MaxSpeed script.Parent.BodyPosition.position = script.Parent.Position -- this is how i set the height at the start script.Parent.BodyGyro.cframe = script.Parent.CFrame value1 = 0 while true do wait() if script.Parent.Throttle == 1 the...
129882
0
RichText coloring with variables?
151916604
MajinBluee
80
2021-05-02 04:09:14
<p>Hey there! So I’m trying to color a TextLabel with each letter having a different color. The problem is that I need to do it with variables and it just doesn’t work.</p> <pre class='brush: lua'>word.Text = “&lt;font color = ‘#00be00’&gt;”..Variable1.."&lt;/font.&gt;&lt;font color = ‘#ff0000’&gt;"..Variable2 </pre> <...
123015
1
112101
1
55174990
sO_Ov
275
2021-05-02 11:11:13
<p>Your mistake is in the quotes, you can use double quotes(") and single (') to separate the strings, try this</p> <pre class='brush: lua'>word.Text = "&lt;font color='#00BE00'&gt;"..Variable1.."&lt;/font&gt;&lt;font color='#FF0000'&gt;"..Variable2.."&lt;/font&gt;" </pre> <p>if you only will use rich text for color, y...
0
What and How is this a userdata value?
125757683
ninja_eaglegamer
61
2017-08-25 20:25:33
<p>I'm trying to make it so you randomly spawn in any of the spawnpoint setup but it is saying that spawns is a user data value</p> <p>variables / values</p> <pre class="brush: lua">local maps = serverstorage:WaitForChild("maps") local mapholder = game.Workspace:WaitForChild("MapHolder") local allmaps = maps:GetChildre...
47254
1
47840
1
6755068
DanzLua
2879
2017-08-25 21:21:23
<p>The reason this is erroring is because you are treating the value of spawns as a table when it isn't. To fix this on line 8 you should get the children of that model so you get a table, then where you are setting spawn index you can get # from that table without it erroring.</p> <pre class="brush: lua">local maps = ...
0
How to convert R15 animation to R6 Animation?
911443230
BigsChungus
0
2021-03-18 14:36:01
<p>based on the tile, How to convert R15 animation to R6 Animation?</p>
121445
0
How do I make a gamepass that makes a gui/frame visible?
514555456
RustedDeveloperMike
0
2020-09-14 17:45:36
<p>So i’m trying to make a radio gui like jailbreak so I added it to my chassis but, when I sit it my chassis it appears whithout owning the gamepass. So what should I put in the local script to check if the player has the gamepass and if so show the frame of the gui.</p> <p>Chassis i’m using: A-Chassis</p>
113163
0
Workspace.Script:8: attempt to index nil with 'Humanoid' this is a server script help?
235251315
Wrathoxicihatehim
5
2022-09-15 13:27:40
<p>while true do wait() player = game.Players:GetChildren() for i = 1, #player do if player[i].TeamColor ~= game.Teams.SCP.TeamColor then if player[i].Character.Humanoid.WalkSpeed > 50 or player[i].Character.Humanoid.Health > 5000 or player[i].Character.Humanoid.MaxHealth > 5000 then player[i].Character.Parent = nil pl...
131629
1
Help Sound!
45397757
Intpixel
0
2014-03-03 15:17:51
<p>I tried putting a script like this inside a sound(The sound is inside a part) and it works!</p> <pre class='brush: lua'>script.Disabled = true script.Disabled = false script.Parent.Play() </pre> <p>But the problem is,it only works in ROBLOX Studio.I need a help to make the sound also works in my place.Also,I wanted ...
462
0
Does anyone know how to fix this problem with the AutoScale plugin?
135656789
Gameloft64
1
2019-06-13 13:26:16
<p>Let's start from the fact that to make my GUIs "responsive" I use the plugin called AutoScale, but when I tried to use it on the loading screen GUI it gives me this problem:</p> <p>Roblox Studio view: <a target="_blank" href="http://">https://i.imgur.com/RfDF82b.png</a></p> <p>1920 x 1080 view: <a target="_blank" hr...
81657
0
How would I make more audio play in my game than just this one I scripted?
237223364
Skepticalitys
31
2018-04-29 22:40:22
<p><code>LocalScript</code>:</p> <pre class='brush: lua'>game.ReplicatedStorage.BackgorundMusic:Play() </pre> <p>I can make one audio file play with this script, but how can I make more play after this one ends?</p>
57676
1
56356
0
37092313
tim458458
29
2018-04-29 22:47:23
<pre class='brush: lua'>game.ReplicatedStorage.BackgorundMusic:Play() wait (---How long you want to wait before you play next song here in second numbers) game.ReplicatedStorage.Nextsoundhere:Play() wait (---How long you want to wait before you play next song here in second numbers) --- And so on. </pre>
1
Will this spawn multiple models in one space?
44083134
Fifkee
2017
2018-04-09 04:12:35
<p>Hey guys, I have a question.</p> <pre class='brush: lua'>local function setupPlayerData(player) local data = DataStore1:GetAsync(player.UserId) if not data then data = {Items = {}, Money = 0, Experience = 0} DataStore1:SetAsync(player.UserId, sessionData[player]) end sessionData[playe...
56503
0
Question about Tables and service children?
25045164
sebastian1102
11
2022-12-15 06:14:29
<p>Let's say I make a table containing the children of the workspace service.</p> <p>Would removing the children from the table remove them from the workspace?</p> <p>I'd imagine not right?</p>
132568
0
this is a sever script Unable to assign property Part0. Object expected, got table?
1933759051
DisasterHotelGiant
0
2022-09-11 18:52:36
<p>function weld() local parts = {} local last = {} local function scan(parent) for _,v in pairs(parent:GetChildren()) do if (v:IsA("BasePart")) then if (last) then local w = Instance.new("Weld") w.Name = ("%s_Weld"):format(v.Name) w.Part0,w.Part1 = last,v w.C0 = last.CFrame:inverse() w.C1 = v.CFrame:inverse() w.Parent...
131594
0
Fireball not shooting forward, only dropping down, why Is that?
1961959172
imnotaguest1121
186
2022-07-30 19:34:46
<p>So I made a ability for a morph (The ability Is a tool with no handle Inside of the morph), the ability Is to summon a massive white fireball that after 1.40 seconds (In roblox time) causes the user who used the ability to force the fireball to smash Itself Into the ground, basically It works, the problem however Is...
131018
0
How to access the player character from a Local Script?
36672663
MasonJames136
21
2019-07-09 22:45:27
<p>I am trying to access the character model in game.Workspace, but I am not able to accomplish this. How may I do this task?</p>
83346
1
77439
0
348887675
michaelp023
45
2019-07-09 22:52:48
<p>First you need to get the player</p> <pre class="brush: lua">local player = game.Players.LocalPlayer </pre> <p>and then you get the character</p> <pre class="brush: lua">local character = player.Character or player.CharacterAdded:Wait() </pre> <p>You need to use CharacterAdded:Wait() to make the script wait until th...
2
&quot;loadstring() is not available&quot;?
23122017
Cr_eepy
8
2017-04-30 20:28:56
<p>Hello there! I'm currently working on a script builder. The script builder works in studio, but not online. Whenever I test it online and look at the Roblox Developer Console, it says "loadstring is not available". Here is the script:</p> <pre class='brush: lua'>source = script.Parent.ScreenGui.Frame.ScrollingFrame....
42487