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 | When I make a tool, put it in starterpack, and equip it, it doesn't show up in my hand. Help? | 290652683 | kingofpronoobs | 0 | 2018-04-28 12:36:10 | <p>I couldn't think of anything else to say but it had to be at least 20 characters so this is what I'm doing.
Screenshots:
https://www.roblox.com/library/1810239114/Screenshot
https://www.roblox.com/library/1810233750/Screenshot</p>
| 57560 | ||||||||
1 | Why do DataStores fail occasionally? | 173002126 | Michael_TheCreator | 166 | 2018-01-03 21:15:40 | <p>What makes a DataStore fail?</p>
| 51509 | 2 | 51188 | 0 | 841509 | WillieTehWierdo200 | 897 | 2018-01-03 21:53:03 | <p>You can read a complete list of DataStore errors and why they occur <a target="_blank" href="http://wiki.roblox.com/index.php?title=Datastore_Errors">here</a>, although most of these are due to user error.</p>
<p>If you're wondering about why the DataStores themselves fail from time to time, it's a pretty simple ans... |
0 | How do i do so when someone touches a brick with a tool it gives the character EXP? | 205456885 | SuperBeeperman | 30 | 2018-04-18 22:24:31 | <p>My script does that when i touch it, the brick becomes invisible, but im having trouble with the second part.</p>
<p>Here my script:</p>
<p>script.Parent.Touched:Connect(function(hit)
if hit.Parent.Name == "WaterEssence" then
script.Parent.Transparency = 0.5
wait(20)
script.Parent.Transparency = 0
end</p>
| 57049 | ||||||||
1 | Trying to make it so if the player has already voted he cant vote again. no error why no work? | 1488957970 | Radiant_Sparkles | 69 | 2021-01-04 12:49:26 | <p>When removing the part that checks if they already voted they can still add a value to the gui ot click it but when i added the top part that checks when i try to vote it doesnt work.</p>
<p>VOte option 1:</p>
<pre class='brush: lua'>if game.Players.Localplayer.PlayerGui.Modes.Classic.ImageButton.Script.Disabled == ... | 118153 | ||||||||
0 | My touched script won't work? | 31554827 | Relatch | 550 | 2014-11-15 19:35:34 | <p>It works up until the <em>"sword.Parent = hit.Parent.Backpack"</em> part. Here's the error: <strong>Backpack is not a valid member of Model</strong></p>
<pre class='brush: lua'>part = script.Parent
serverstorage = game:GetService("ServerStorage")
part.Touched:connect(function(hit)
part.BrickColor = BrickColor.ne... | 12483 | ||||||||
0 | Not really a scripting question but cant find it elsewhere what timezone does os,time use? | 55310986 | hokyboy | 205 | 2020-03-26 00:38:15 | <p>So what timezone does os.time use?</p>
| 97091 | ||||||||
1 | script.ChildAdded not firing | 49776603 | TomsGames | 225 | 2014-03-02 16:08:29 | <p>Here is the whole script:</p>
<pre class='brush: lua'>lp = game.Players.LocalPlayer
function onPlayerEntered(newPlayer)
local stats = Instance.new("IntValue")
stats.Name = "leaderstats"
local HighScore = Instance.new("IntValue")
HighScore.Name = "HighScore"
HighScore.Value = 0... | 440 | ||||||||
1 | Indexing UserGameSettings? | 4338714 | OniiCh_n | 410 | 2014-02-26 01:46:26 | <p>I'm trying to index the MouseLock boolean. I'm doing this because I need to make sure all players are in MouseLockSwitch so the gameplay isn't ruined. Since the UserGameSettings are <em>technically</em> an object, isn't it possible to index them?</p>
<p><a href="http://wiki.roblox.com/index.php?title=RBX.lua.UserGam... | 304 | 2 | 555 | 3 | 39760131 | Hippalectryon | 3 | 2014-02-26 01:52:50 | <p><a href="http://wiki.roblox.com/index.php?title=Function_dump/Functions_specific_to_ROBLOX#UserSettings">http://wiki.roblox.com/index.php?title=Function_dump/Functions_specific_to_ROBLOX#UserSettings</a></p>
<p>Look at the end of the page</p>
|
0 | How would I make an NPC who can only be damaged by a specific team? | 293872889 | Galicate | 106 | 2017-12-10 04:28:02 | <p>How would i make an npc/Model with a humanoid that can only take damage from a specific team. I have guns that only damage players on different teams, but it only applys to players.</p>
| 50132 | ||||||||
0 | How would I change this script so if it has no target it goes to a certain part? | 1723050796 | RenDevelopment | 15 | 2020-06-29 17:48:57 | <p>I know nothing about stuff like this, so help would be appreciated :)</p>
<p>I am making a zombie that goes to a certain part when it has no target</p>
<p>Part of the script:</p>
<pre class='brush: lua'>function walkRandomly()
local xRand = math.random(-50,50)
local zRand = math.random(-50,50)
local goal... | 107759 | ||||||||
0 | How do I pick out 2 blocks that are touched? | 33349964 | KennySfromTitan | 106 | 2014-04-17 00:01:00 | <p>Im a little confused on how you pick out 2 blocks that may have been touched. So as if, one block was touched, that counts. If the other block it touched, it counts too. Please help</p>
| 2314 | ||||||||
0 | For i, v loop doesn't stop where it should and just keeps on going even after an "else"? | 103456922 | 016er | 9 | 2020-11-23 18:35:00 | <p>Hello! I've got a bit of a problem with my ban command script, and I've narrowed it down to this function with the help of print debugging. My issue with this is that I'm trying to make it so that moderators within the game aren't able to ban eachother. However, this doesn't seem to work.</p>
<pre class='brush: lua'... | 116215 | 1 | 106646 | 0 | 1751062389 | TheEagle722 | 114 | 2020-11-23 18:41:52 | <p>You can break a loop with the built in function 'break'</p>
<pre class='brush: lua'>for i, v in pairs() do
print('_')
break
end
</pre>
|
0 | How to make this text label compatible with LocalPlayer? | 355374505 | EnderGamer358 | 77 | 2018-04-19 00:56:34 | <p>:I'm trying to make a text label that shows one of the player's statistics, but the frame will be visible to multiple people at a time, so how would I use a local script to make it show the stat of the local player? I tried using my own script and it didn't change the text at all, here's the script I used:</p>
<pre ... | 57056 | ||||||||
0 | Way to get AssetVersionID from HttpService GET request? | 713824573 | GoreDemons | 215 | 2021-02-03 10:40:35 | <p>Would there be a way to do this?</p>
<p>code sample cuz not request, genuine question about service</p>
<pre class='brush: lua'>local Http = game:GetService("HttpService")
Http:GetAsync("asset id plugin thingy link")
</pre>
| 119565 | 1 | 109154 | 2 | 32873227 | shadowstorm440 | 590 | 2021-02-03 10:46:16 | <p>Yes, quite simple infact:</p>
<p>First, lets make a function to bypass the roblox website HttpService block using <a target="_blank" href="https://rprxy.xyz">rprxy.xyz</a>:</p>
<pre class='brush: lua'>local function CreateProxy(STR)
return STR = STR:gsub("roblox.com", "rprxy.xyz") -- makes sure it requests throug... |
0 | How would I make the mouse go in a full circle and not create negative degrees? | 38671667 | bestshot123 | 38 | 2022-11-15 18:19:44 | <p>Im trying to make a turret system where the seat will follow the mouse rotation, however the mouse doesn't seem to make a full circle in degrees 0-360 instead it goes from 90 to -90. Im using a hinge so i have to convert the mouse pos to degrees. How would I prevent the mouse degrees from going negative and instead ... | 132287 | ||||||||
0 | How do I convert a UDim2 into a Vector3? | 376100977 | promanfnatfreddys | 0 | 2021-01-11 20:27:32 | <p>I'm attempting a placement system, and I'm trying to get a vector3 position from a player's mouse position.</p>
| 118561 | ||||||||
2 | Can someone explain ray casting to me? | 467337150 | XDvvvDX | 186 | 2020-05-10 16:04:53 | <p><strong><em>Hey. Before you answer I want to understand the subject itself, not how to make a ray cast gun. It would be much appreciated. Thanks!</em></strong></p>
| 102602 | ||||||||
0 | Attempt to index a nil value? (RemoteFunction) | 23600185 | coolepicjoshua | 110 | 2018-04-19 02:46:02 | <p>Any time that I attempt to use the remote function, I get an error saying that I am attempting to call a nil value on line 9 in my local script, but all values are loaded into the game already. Any help is appreciated.</p>
<p>Local:</p>
<pre class='brush: lua'>repeat wait() until game.Players.LocalPlayer and game.Pl... | 57068 | ||||||||
0 | How Could I Check If A Collision Group On PhysicsService Already Exists? | 1283216314 | Harry_TheKing1 | 325 | 2020-05-21 07:48:02 | <p>So I Recently Stumbled Upon A Error In My Game It Says:</p>
<p>****Cannot Create Collision Group One Already Exists</p>
<p>So I Was Wondering How Could I Check To See If it Already Exists To Prevent Errors?</p>
<p>Here Is My Code:</p>
<pre class="brush: lua">physicsService = game:GetService'PhysicsService'
for i = 1... | 103844 | 1 | 96037 | 1 | 84322362 | OhManXDXD | 445 | 2020-05-22 20:24:00 | <p>I found a devforum post related to your error, you can try this</p>
<pre class="brush: lua">local PhysicsService = game:GetService("PhysicsService")
local function CreateCollisionGroup(collisionGroupName)
local createdGroups = PhysicsService:GetCollisionGroups()
local collisionGroupExists = {} do
for... |
0 | How can I replicate this ability from battle cats? | 1961959172 | imnotaguest1121 | 362 | 2022-08-14 23:33:30 | <p>Hello!</p>
<p>I wanted to replicate this ability from the mobile game: "Battle Cats". Anyway, there Is an ability for metal enemies, there HP Is how much times they need to be hit</p>
<p>(An example: If a metal enemy has 20 HP, the player must hit them 20 times before dying)</p>
<p>However, when It meets a critical ... | 131226 | 1 | 118523 | 1 | 178628425 | Jac_00b | 157 | 2022-08-15 00:18:58 | <p>Make a boolvalue that if true it is metal and the weapon only inflicts one damage on it. If you want to replicate a crit, make another boolvalue and make the weapon have a random chance of turning it to true. Whenever its true the normal damage is given.</p>
|
0 | connect is not a valid member of ClickDetector? | 83113170 | Peeshavee | 226 | 2016-10-30 06:49:26 | <p>So, I'm working on this CFrame script, where a part starts at one position and goes through an another brick, which is in a new position. Here's the script:</p>
<pre class="brush: lua">local cf = game.Workspace.cfrme
local db = false
function move(hit)
local human = hit.Parent:FindFirstChild(hit)
if not db t... | 36711 | 2 | 39156 | 1 | 171556069 | RobloxianDestory | 262 | 2016-10-30 07:37:22 | <p>remove :FindFirstChild(hit) from line 6, it worked for me when i tested this script in studio</p>
<pre class="brush: lua">local human = hit.Parent:FindFirstChild(hit)
local human = hit.Parent
</pre>
|
1 | How Can I Get The Weapon Through Click? | 161950547 | Minecrafter09031031 | 16 | 2019-06-22 20:15:38 | <p>I was making a weapon that you can only get if you click it, not touch it</p>
<p>The ScrewDriver is the Main Mesh
Inside the ScrewDriver (Mesh) There is a Script,ClickDetector,ScrewDriver
The other screwdriver that is the child of the screwdriver is the mainweapon, a tool</p>
<pre class='brush: lua'>local weapon = s... | 82291 | ||||||||
0 | When your making a script how would it tell the difference from a zombie nps and a player? | 1723050796 | RenDevelopment | 15 | 2020-06-29 23:44:01 | <p>When your making a script what would you put for the script to detect if its a zombie npc and not a player?</p>
| 107796 | ||||||||
1 | Materials Vs. Smooth Plastic? | 151702995 | RealTinCan | 217 | 2020-02-20 02:52:31 | <p>I've been wondering for the past month on if it is really worth using <a target="_blank" href="http://https://roblox.fandom.com/wiki/Smooth_Plastic"><strong>Smooth Plastic</strong></a> over other Roblox materials. I tried testing this in studio but couldn't get a clear result. So if there were to be like <strong>10,... | 94869 | ||||||||
0 | For Button GUI's, Is There A Way to Get a Players Name From It? | 1580677687 | ercleric | 13 | 2021-06-10 07:54:37 | <p>Is there a way to get the player’s name from clicking a GUI? I’m trying to do a simple script that whenever you click on the button, it will print the person who clicked it name on the screen. I tried doing a function, and in the brackets put ‘player’. However when printing <code>player.Name</code> it comes out as n... | 124241 | 1 | 113259 | 0 | 109513948 | SpectacularPavlos | 86 | 2021-06-10 08:30:46 | <p>I think this should work</p>
<pre class='brush: lua'>local button = script.Parent
local Players = game:GetService("Players")
button.Activated:Connect(function()
local playerName = Players.LocalPlayer.Name -- Get player's name
-- Do what you want with the name
end)
</pre>
|
0 | How do i make a brick float in the same spot but not go higer? (read below!) | 22561288 | livinggame | 0 | 2014-06-04 01:14:54 | <p>When i was making a brick float with Body Velocity, it went higher and higher, how do i make it stay in<br />
one spot but still moves like in the spinning thing of doom lobby?</p>
| 6140 | ||||||||
0 | Can I use FindFirstChild on a cloned tool? | 1561550920 | tumtindy | 36 | 2023-01-22 10:31:10 | <p>So, I asked a related question a few days ago and got an answer which worked but only for when the tool i'm referencing is in workspace.</p>
<p>WORKS FINE (read on)</p>
<pre class='brush: lua'>local player = game:GetService("Players").LocalPlayer
local char = player.Character
local prompt = game.Workspace.Smelt.Prox... | 132907 | ||||||||
1 | How can I teleport all players in the server to another place? | 724649033 | 7777ert | 7 | 2021-04-07 08:42:47 | <p>I am trying to make a game which players in the lobby can click a 'start' button to teleport to 'queue'. If there are more then 60 players in queue then all players in queue will be teleported to 'gameplay'. The first part is easy for me but the problem is the second part. How should i teleport a group of players an... | 122103 | ||||||||
0 | My Follow script is moving the NPC around and around in circles, why? | 165500987 | allybally12345 | 40 | 2020-12-16 23:14:12 | <p>This script is made to handle multiple players fighting a Mob, but it's not working. they are just moving around and around in circles. Please help.</p>
<p><strong>Code:</strong></p>
<pre class="brush: lua">local UpdatePosition = 0.2 --How long it takes target the next humanoid
local DamageTime = 3 --How long it tak... | 117279 | ||||||||
0 | How do you get a enemy NPC to lock onto (and follow) a player? | 44834678 | mississippiono | 0 | 2021-05-01 16:11:50 | <p>This is the revised version of my previous question. -- The main problem with the code below is that the battledroid (the enemy npc in my game) will not lock onto the player, but will lock onto a "drooling zombie" (test npc). There's a line of code that checks if a humanoid is there and if it isn't it'll check for a... | 122999 | ||||||||
0 | How do I get the max index in a table? | 835155757 | BRO_ITmeYO | 106 | 2020-06-04 20:03:00 | <p>Hello, I am making a players table so I can easily access players, but here is my problem:</p>
<pre class='brush: lua'>local playersTable = {}
game.Players.PlayerAdded:Connect(function(player)
table.insert(playersTable, table.getn(playersTable) + 1, player)
end)
print(playersTable)
</pre>
<p>Once I run this scri... | 105357 | 1 | 97086 | 1 | 68290027 | Warfaresh0t | 414 | 2020-06-04 20:10:39 | <p>You are getting the "strange" output because you are outputting the table itself and not the contents of the table. A simple for loop can fix that:</p>
<pre class='brush: lua'>for i,v in pairs(playersTable) do
print(v) -- v would be the entry and i is the index (position in the table)
end
</pre>
<p>Additionally ... |
0 | How do I make a model move to one side? | 37274601 | Aperturee | 22 | 2015-12-02 18:48:54 | <p>I have this rubbish, inefficient script I made that makes a model go UP. How would I make a more efficient type, that moves 5 studs in 5 seconds?</p>
<pre class='brush: lua'>function DoorOpen()
script.Parent.Parent.DoTTAlarm.Button1.ClickDetector.MaxActivationDistance = 0
wait(.1)
script.Parent.Parent.Do... | 24914 | ||||||||
0 | How do I make people face a certain direction when they respawn on a checkpoint? | 37745860 | BunjiBloxxer | 51 | 2022-06-20 16:11:52 | <p>I finally got my checkpoint script working but when you respawn, you're always facing the same direction. Here is my script:</p>
<pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(plr)
local stage = plr:WaitForChild("leaderstats").Stage
plr.CharacterAdded:Connect(function(char)
rep... | 130422 | 2 | 117763 | 0 | 96373787 | hattim00 | 80 | 2022-06-20 18:18:01 | <p><strong>[MARK THIS AS ACCEPTED IF THIS WORKS]</strong></p>
<p>You can fix this by first having the correct rotation but not position and then fixing the position.</p>
<p><strong>THE SCRIPT:</strong></p>
<pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(plr)
local stage = plr:WaitForChild("leaders... |
1 | Can someone help me find the error in this script? | 31116800 | Miike0 | 6 | 2016-06-06 18:31:51 | <p>I can't find the error in this script. It's supposed to generate random maps and teleport people to them using a block called "Tele Brick" which is placed within each map, but nothing happens. These maps are also all placed in lighting, by the way.</p>
<pre class="brush: lua">Intermission = 10
PlayTime = 90
while tr... | 31451 | 1 | 34626 | 0 | 5206310 | alibix123 | 175 | 2016-06-06 18:57:04 | <pre class="brush: lua">Maps = (math.random(1,2)
</pre>
<p>should be</p>
<pre class="brush: lua">Maps = math.random(1,2)
</pre>
|
1 | how can i make it so that when i join my game a part/group disapears? | 228514487 | Alex08l | 5 | 2021-09-30 13:24:54 | <p>i have searched up youtube tutorials it dont work i have tried everything. im making a game and when i join i need my model thats by the counter to disapear so i can stand in there instead</p>
| 127752 | ||||||||
0 | I am making an Objective system but the Ontouched wont work? | 106396567 | ment34591 | 13 | 2020-09-14 23:29:02 | <p>I am working on an Objective system for my horror game I am working on and after dozens of attempts, I can't seem to get it to work.</p>
<p>So the game starts off perfectly fine and working with it informing you on what is going on and what your goals are, and then you head off, so how it is supposed to work is when... | 113168 | ||||||||
0 | Day/Night Cycle System can't go any slower? | 16956792 | Florian27 | 76 | 2020-11-21 19:48:20 | <p>Right now I would like the day cycle to be slower, but it seems that I can't make it much slower.</p>
<pre class='brush: lua'>while RS.Stepped:Wait() do
local Clock = Lighting.ClockTime
local Speed
if (Clock > 5 and Clock < 8) or (Clock > 16 and Clock < 20) then
Speed = 20 -- Transiti... | 116116 | ||||||||
0 | How do I make a GUI dissapear OnTouch? | 58235802 | Chromathyst | 10 | 2014-05-09 20:00:10 | <p>I tried</p>
<pre class='brush: lua'>function game.Workspace.StarterGui.ScreenGui: destroy(OnTouch)
end
</pre>
<p>How can I fix this?</p>
| 4591 | 1 | 6214 | 0 | 18929555 | TurboFusion | 1821 | 2014-05-09 20:18:05 | <p>If you're trying to remove the GUI from the player that touched the brick, then this is how you would do it:</p>
<pre class='brush: lua'>function onTouch(Obj)
if Obj.Parent:FindFirstChild("Humanoid") then
local Player = game.Players:GetPlayerFromCharacter(Obj.Parent)
if Player then
if... |
14 | What are the Differences between "Local Function" and "Function"? | 5820674 | woodengop | 1134 | 2015-04-06 11:00:54 | <p>I know from all my studying that a <code>Function</code>Fires an <code>Event</code>, But what is the Difference between: <code>Local Function</code>, and a Regular <code>Function</code>?</p>
<p><strong>NOTE:</strong> The ROBLOX Wiki did NOT Provide an Answer for this.</p>
| 16395 | 3 | 19698 | 2 | 386992 | BlueTaslem | 18071 | 2015-04-06 16:47:44 | <p>adark missed the biggest <em>practical</em> different between <code>local</code> functions and not.</p>
<p>Global variables can be used <em>lexically (in order in source) before</em> they were declared. For instance,</p>
<pre class='brush: lua'>function blah()
print( a ) -- where a is a global (not local) variab... |
1 | only teleport if 2 players are touching? | 173876322 | Helloimpets | 13 | 2022-01-09 15:57:58 | <p>Hello guys,</p>
<p>Ive compiled a script to make it so it teleports a player to a random location in the two coordinates, but I want it so it only teleports if 2 players are touching it at once. I have no idea how to go about this and wondered if anyone could help?</p>
<p>Heres the script:</p>
<pre class='brush: lua... | 128817 | 1 | 116650 | 0 | 158811 | TGazza | 1287 | 2022-01-09 22:47:11 | <p>Just wrote a little code to do what you ask. Though its tested with more than 2 players it will only teleport 2 players at a time. I haven't tested it for projectiles or other things that are not players. But it should be ok.</p>
<p>Code: (Added comments explaining what does what, hope its good enough! lol)</p>
<pre... |
0 | How to make a potion of speed that disables running? | 381779672 | nooby14327 | 2 | 2022-05-14 03:08:07 | <p>Hello! Im making a game and im making a speed potion, but when i press shift it sets the speed to regular running speed, i try to disable the script, as its just a local script inside startergui, but when i disable it through script, it still allows you to press shift and set it back to regular running speed. how do... | 129993 | ||||||||
2 | How to use serverstorage instead of lighting? | 5479602 | RedneckBane | 100 | 2014-03-10 17:16:49 | <p>I heard someone say not to store maps or data in lighting anymore and put it in ServerStorage or something? Would you reference that the same way like you would with lighting?
Ex:</p>
<pre class="brush: lua">local maps = game.ServerStorage.Maps
</pre>
| 606 | 2 | 1008 | 1 | 53627646 | modFrost | 130 | 2014-03-11 17:29:11 | <p>You would want to store the models into ReplicatedStorage as it is replicated to both the client and server.</p>
|
0 | Checking for player movement | 3238120 | chrono2 | 189 | 2014-02-17 22:19:48 | <p>Is there a way to check and see if a player is walking in a localscript?</p>
| 46 | 4 | 97 | 1 | 19566737 | Unclear | 1776 | 2014-02-17 22:21:47 | <p>You can use the Running event to do this task for you and change a boolean every time it triggers.</p>
<p>Here's some code for you to inspect...</p>
<pre class='brush: lua'>local humanoid = game.Players.LocalPlayer.Character.Humanoid
local isRunning = false
humanoid.Running:connect(function(speed)
isRunning = s... |
1 | How do I make a brick that plays a sound effect every time you touch it? | 19528820 | NewChoosen1 | 5 | 2014-04-25 02:15:30 | <p>I've tried putting the soundID into a brick then touching it but it doesn't play sound effects. I've also tried adding a different sound inside the brick and sure enough it doesn't work. What do you think I should do ?</p>
| 3480 | ||||||||
0 | Why does this script is not working on player.Character.HumanoidRootPart? | 552297959 | ivanprovanek | 0 | 2021-10-10 14:48:46 | <p>Hello, I just wrote a script that should "push" players or npcs. But it works only on NPCs. I don't know why. Here the script:
(local script)</p>
<pre class='brush: lua'>local mouse = game:GetService("Players").LocalPlayer:GetMouse()
script.Parent.Activated:Connect(function()
if mouse.Target then
local m... | 127827 | ||||||||
1 | How do you get Player From UserId? | 287206263 | Dr_Smartypants123 | 86 | 2021-02-25 04:44:07 | <p>How would you get a player username from their Id, even if they aren't in the game?</p>
<p>something else that I forgot to mention is, regardless of if they are in the current game, how would you get someone's avatar. An example of a program doing this is Moon Animator, but I wanna know how they can do that with onl... | 120643 | ||||||||
0 | How can I add a hat when a player joins if a Boolean is true? | 1034377657 | TrollEnjoyer | 0 | 2022-05-13 15:25:13 | <p>I am trying to make a player equip a hat when they join if their hat purchased variable is true.</p>
<p>Part of my saving and loading script.</p>
<pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(player)
local folder = Instance.new("Folder", player) --Creating variables
folder.Name = "leaders... | 129988 | ||||||||
0 | How do I revert to an old version of Roblox Studio? | 131574961 | ShinyGriffin | 129 | 2018-07-19 01:23:05 | <p>The new animator is buggy and impossible to use. You can no longer copy entire keyframes, now having to painstakingly do it one by one. Also, the time limit is extremely buggy with the new version of the animator always being at 1.5 seconds and not being able to change it.</p>
<p>Is anyone else having these problems... | 63167 | ||||||||
1 | How do you make a player boost forward? | 47560485 | bogo01 | 0 | 2020-01-10 02:55:35 | <p>Hi, I was just wondering on how to make a player boost forward when they touch a ramp but after they leave the ramp they stop moving as fast. like the ramps in Legends of Speed.</p>
| 92800 | ||||||||
0 | What should StreamingTargetRadius be realistically set to? | 1017846707 | Overseer_Prince | 174 | 2022-11-22 23:47:55 | <p>So I already saw the Wikipedia on Streaming Enabled so you don't need to answer citing The devforum</p>
<p>My plan was that I would realistically set it to something extremely large since my map is big and that is realistiaclly the target I want to set for players</p>
<p>however I was wondering if this was bad pract... | 132347 | ||||||||
1 | LocalScript animation tool doesn't work when copied from Lighting. How can I fix this? | 3087157 | TheValiant | 5 | 2020-10-17 19:54:37 | <p>To clarify, I'm a massive noob. It's likely I'm making a mistake that shows that.</p>
<p>The tool is intended to play a simple animation holding a simple object. It works fine when placed in StarterPack.</p>
<p>However, I do not want all players to have access to it. I want it to be accessible only by using Kohl's a... | 114492 | ||||||||
0 | Ok so, i need to make a script that allows me to give a tool to another player, can anyone help me? | 859110169 | TobyFrmGFam | 0 | 2022-11-17 01:01:37 | <p>Ok so, i don't know if any of yall played east brickton, but when you equip a gun or a tool, you can say /give name of the player and it will give to the other player the tool, i need a script that can help me with that</p>
| 132298 | ||||||||
1 | How do I fix this Map loading script? | 47605193 | buoyantair | 123 | 2014-05-26 15:06:53 | <p>Hi,
I am a <strong>beginner</strong> in Lua, I tried to make a script that loads a map onto the workspace and then teleports the players to the spawn place of each group, I tried the loading maps script and it worked, but I have no Idea on how to <strong>teleport a player to a place and make him spawn only in that p... | 5584 | 2 | 7470 | 0 | 10251657 | RobloxHelper49 | 55 | 2014-05-26 16:07:58 | <p>First of all, it's <code>Game.Players</code> not <code>game.Player</code>.</p>
<p>Second, if you want to kill all the players use this:</p>
<pre class='brush: lua'>p = game.Players:GetChildren()
for i = 1,#p do
p[i].Character.Head:remove()
end
</pre>
<p>Good job so far. Just gotta keep practicing.</p>
|
1 | Script detecting if user has part not working? | 1345056247 | Nexxive25 | 20 | 2021-06-07 15:05:44 | <p>So, I have made an SCP style sliding door for my game. I have made the button door, but I need to make the keycard door. I want the script to detect if the player is holding a tool. (The player has clicked the tool in their inventory) The problem is when I run the script it does not work. There are no errors in the ... | 124169 | ||||||||
0 | Orb smash ability only dropping down, when I also want It to move as well (?) | 1961959172 | imnotaguest1121 | 186 | 2022-07-30 04:01:56 | <p>Hello!</p>
<p>I made a morph with a tool Inside of It, the tool Is an ability that creates a massive white orb (Which Is called "Divine Orb") which then the user forces the white orb to smash Itself to the ground while moving, currently I am dealing with a problem where when the user Is trying to force the white orb... | 131008 | ||||||||
0 | Stuck on leaderstats Problem? | 1466374332 | subblox1234 | 5 | 2021-02-12 13:07:29 | <p>I have tried putting a code in a tool whenever the humanoid is hit it goes to 0 health and also it gives you a certain amount of Cash, Xp, Kills.
But whenever I kill someone it gives me a random amount of Cash Kills and Xp.</p>
<p>Here is the script:</p>
<p>local knife = script.Parent
local handle = knife:WaitForChi... | 120020 | ||||||||
0 | Camera being jittery or CSG not properly staying non-collidable? Bug? | 245038271 | Impacthills | 223 | 2018-04-17 01:34:40 | <p><em>The issue that I'm having is when I get close to any game object that has collision when I have my tool equipped and when I move/turn with my character, my character jerks around like it's hitting something like collision but every part/union/meshpart has CanCollide to false. Here's a gif of what I'm talking abo... | 56977 | ||||||||
0 | Is HTTPS Service Enabled by default? | 166162059 | OMG_Gaming404 | 73 | 2017-12-24 19:01:10 | <p>Whilst using Roblox Studio, I notices the HTTPsServie thingy has disappeared... Does this mean all games have HTTPSService Enabled by default or not?</p>
| 50863 | 1 | 50666 | 0 | 308440652 | SinatraKoslov | 27 | 2017-12-24 20:50:13 | <p>Http Service is disabled by default, however, you can still enable it by typing the following in the command bar when editing your place via Roblox Studio:</p>
<p>Game:GetService('HttpService').HttpEnabled=true</p>
<p>Voila!</p>
|
0 | How can I make this simple script appear In the chatbar, but also the speaker? | 1961959172 | imnotaguest1121 | 287 | 2022-09-10 16:06:34 | <p>Hello! I want to modify this script:</p>
<pre class='brush: lua'>game:GetService("Chat"):Chat(script.Parent.Head,"I am dumb lol", Enum.ChatColor.White)
</pre>
<p>What the script does above basically forces someone to say something, the problem Is that the message only appears on the speaker, not In the chat bar, so ... | 131574 | ||||||||
0 | How could i make this Bigger Duffel Bag Gamepass? | 187025058 | DenisYordanov | 9 | 2018-04-12 14:41:15 | <p>I'm trying to make a bigger duffel bag gamepass. Here is what my script for money giving looks like :</p>
<pre class='brush: lua'>local debounce = false
local playerfound = false
function CreateRegion3FromPart(Part)
return Region3.new(Part.Position-(Part.Size/2),Part.Position+(Part.Size/2))
end
function GetPlaye... | 56677 | ||||||||
0 | How do I check if a player is swimming without using the .Swimming event? | 5105679 | xolbStudios | 127 | 2015-08-17 17:09:40 | <p>Upon learning that the .Swimming event would not trigger while the Humanoid was in the PlatformStand state, I immediately began to seek a way around this.
So, I came to the idea that the GetCell function would help, but it did not.
I needed a way to determine whether the player was in water or not.</p>
<pre class='b... | 21525 | ||||||||
0 | How can I copy a model's orientation to another model with a script? | 1823760839 | cracker_555555555555 | 0 | 2022-06-21 19:36:24 | <p>I have a model and I want to copy this model's orientation to another model with a script. These models don't have primary parts.</p>
| 130443 | ||||||||
0 | remote event not firing or not being acknowledged?. | 1532938866 | Code1400 | 75 | 2020-04-02 11:41:05 | <p>Hello, I have made a script which is supposed to be enabling a Screen Gui when conditions are met, i am using a remote event and firing it to the client from my script located in server script service and it is being called on from a local script inside the player Gui. my script works perfectly fine in play mode but... | 97859 | ||||||||
0 | How do I fix my round ending script? The PLRS variable doesnt seem to work. | 572437664 | OfflinePoggers | 0 | 2021-04-03 12:43:49 | <p>Hello! I'm Poggers and I own Sword Battles by Point Interactive and I have a script which is supposed to run when a player is the last remaining and then teleport him to the lobby and get back to the intermission script but instead it doesnt run.</p>
<pre class='brush: lua'> if plrs == 1 then
-- Last ... | 121963 | ||||||||
0 | algorithm in drawing with textlabel? | 15438711 | pwx | 1581 | 2019-01-11 01:27:21 | <p>I'll try as be as brief as possible so I don't bore you to death with all this reading.</p>
<p>I am currently trying to create an algorithm that detects letters, numbers and shapes that I am drawing within' the UI.</p>
<p>An example:</p>
<p>If I were to type the letter 'L' like so - https://gyazo.com/c6b824523175ae6... | 74231 | ||||||||
5 | What is the difference between LocalScripts, regular Scripts, and ServerScriptService scripts? | 19565874 | SlickPwner | 534 | 2014-07-26 03:54:08 | <p>I'm a bit new to scripting, and I really didn't learn the technical stuff.
What is the difference between a LocalScript, and a regular Script?
What does a script running in the "ServerScriptService" do differently than one running in the Workspace?</p>
<p>I just want a clear explanation of this kind of stuff, and as... | 8709 | ||||||||
0 | physics rope is invisible? | 23207359 | DaFlyingDutchMan | 5 | 2016-08-14 20:28:51 | <p>Hello, I'm working on something with physic ropes, when I test it in ROBLOX Studio, I see the ropes, but when I play the game, I don't see them, like they are invisible I think. Any suggestions?</p>
| 34543 | 1 | 37171 | 0 | 3238120 | chrono2 | 189 | 2016-08-14 20:34:56 | <p>If you're talking about the new rope constraints, they're invisible in-game. All constraints are, sadly.</p>
|
0 | How to give a certain player access to change other players' teams? | 1173028351 | RazorXX2 | 12 | 2021-05-25 06:19:09 | <p>For example, there are 12 players in a game. 2 are admins and the others are normal players. I want to give access to admins to like, for example, change the team of the 5 players to blue and the other 5 players to red. I want to give access to admins to add more teams, too. Oh, by the way, I want to put this in a G... | 123764 | ||||||||
0 | How do you make random player sick in Story game like Camping or Airplane? | 238838551 | PadmeOragana | 41 | 2019-12-28 23:15:14 | <p>Hi there, I am making a story game like Camping or Airplane, and if you played, you would know that a random player gets sick. In Camping, you die, but in Airplane, you have a chance to live. I want to go with the Airplane option where once you are poisoned, you can touch or click a med-kit, and it will save that ra... | 92122 | ||||||||
0 | Team gear script showing error, how would I go about fixing it? | 118061211 | jacksworld2808 | 0 | 2020-08-02 06:47:49 | <p>This script isn't mine and the person who made it didn't explain how it worked in their video. It was working for a couple of hours however, all of a sudden it is now coming up with an error. As a result of the error it is no longer working.</p>
<p>To explain what it is supposed to do, when you join each team you ar... | 110531 | ||||||||
0 | Why is my math.random erroring? | 11141840 | trogyssy | 221 | 2014-03-17 00:20:08 | <p>Here is my math.random:</p>
<p>math.random(h-v, h+v)</p>
<p>Both are integers, and positive numbers. According to the wiki, this should work. Help please?</p>
<pre class='brush: lua'>local Type=1
height=50
variation=10
speed=15
direction="z"
local Top=Workspace.TopLimit
local Bottom=Workspace.BottomLimit
---------- ... | 740 | ||||||||
0 | How do you save a players lot? | 972007460 | GooseStranger | 32 | 2020-08-02 12:56:00 | <p>So my question is how do you save a player's lot. If that is confusing, what I mean is like in that Skyblock game where they save how your island looks. I want to figure out how to do that because I want to make a farm game but I feel like people wouldn't play it if they lost all their progress when they leave the g... | 110538 | 1 | 101542 | 1 | 87736336 | exxtremestuffs | 310 | 2020-08-02 16:01:53 | <p>They probably created some type of block object that stores the properties of every block on the island, e.g.</p>
<pre class='brush: lua'>local block = {
Name = "Grass",
Color = Color3.new(0, 1, 0),
Position = Vector3.new(214, 50, 2)
}
</pre>
<p>and store these in a <a target="_blank" href="https://devel... |
0 | Chatting Animations? | 11019494 | JJ_B | 250 | 2014-03-04 21:14:24 | <p>This doesn't work, but it doesn't look right anyway.</p>
<pre class="brush: lua">game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if msg == "/e flap" then
local animTrack = Humanoid:LoadAnimation(animation)
animTrack:Play()
end
</pre>
<p>How would I do it properly?</p>
| 489 | ||||||||
0 | I need help with a Gui Script That u buy hats like a Hat game shop? | 31520859 | sycool | 0 | 2014-04-16 13:27:43 | <p>i have found some as free models but they don't work i tryed all of them and they don't work
so i need help making a script</p>
| 2145 | ||||||||
0 | Trying to make a morph that spawns 7 bodyguards, but only 1 spawns (?) | 1961959172 | imnotaguest1121 | 287 | 2022-09-17 19:01:20 | <p>As the title says, whenever you morph Into a certain troll, 7 bodyguards appear, the problem Is that only 1 appears</p>
<p>script:</p>
<pre class='brush: lua'>local Pathfinding = game:GetService("PathfindingService")
local EpicGuy
if script.Parent.Parent == game.Workspace then
script.Parent.Humanoid:UnequipTools... | 131654 | ||||||||
0 | Create draggable GUI frame? | 445069663 | Rubenske1 | 89 | 2018-09-05 09:54:02 | <p>I am trying to make a sliding puzzle in roblox but I need to be able to drag gui elements for it.
I know of the draggable property of Frames, but this is deprecated.
Unfortunately, Frames do not have the mousebutton1 events so that is also a no go.
Anyone know of a way to do this?</p>
| 66918 | ||||||||
0 | How do I add a click cooldown to this script? | 766800220 | ippiya | 2 | 2021-05-02 23:59:29 | <p>I want to add a cooldown to a tool so it cannot be spammed.</p>
<pre class='brush: lua'>script.Parent.Equipped:connect(function(mouse)
mouse.Button1Down:connect(function()
script.Parent.Input:FireServer('Mouse1', true, mouse.Hit)
end)
end)
</pre>
| 123047 | 1 | 112113 | 0 | 86083702 | jediplocoon | 862 | 2021-05-03 00:16:13 | <p>The most common form of cooldown of this type is usually called a <em>debounce</em>, which is actually fairly easy to implement once you learn about it.</p>
<pre class='brush: lua'>local debounce = true
script.Parent.Equipped:connect(function(mouse)
mouse.Button1Down:connect(function()
if debounce == tru... |
0 | Is there any way to make a plane script without needing a tool? [Solved] | 9552668 | SteamG0D | 1633 | 2018-12-21 18:36:28 | <p>I'm not asking you to script a plane for me, I'm just wondering how it is done without requiring a tool in the process. My initial theory was that the script to control the plane would be in the seat of the plane itself and that when the seat's occupant was changed, it would inject a local script into the player cha... | 72671 | ||||||||
1 | Remove Model by GUI | 15297810 | xXScorpianKillerXx | 25 | 2014-03-13 20:18:11 | <p>I am making a GUI that's supposed to remove a Model when you click on it. It doesn't work right now, and another problem is I want it just to remove ONE Model when you click on it, not the whole set. (It's a Gui that's supposed to remove a Chair in the game. I have about 30 in the game, I just want it to remove one)... | 671 | 3 | 1079 | 0 | 15049169 | DragonSkyye | 517 | 2014-03-13 20:21:01 | <pre class='brush: lua'>Model = game.Workspace["FutureChair"];
script.Parent.MouseButton1Click:connect(function(Clicked)
Model:Destroy()
end)
</pre>
<p>You showed a for loop, for loops will get all the children thats in the parent.</p>
|
0 | Why Roblox studio freezes on inserting models? | 2064359146 | GamerLighting23233 | 63 | 2021-10-30 12:51:47 | <p>When I inserted an model into workspace, it just freezes and crashes.
I reinstalled it, but it doesn't work.</p>
| 128011 | 1 | 115978 | 0 | 807381194 | iamcooldenisdaily765 | 20 | 2021-10-31 22:09:42 | <p>It is a bug</p>
|
0 | How do you make a Command Kill? | 32199237 | Rohelper123 | 0 | 2014-04-15 08:14:11 | <p>Can anybody Help me making a command kill that when you say kill NameOfPeople and there be like a Lazer or something and simple part and shoots the player that your killing it.</p>
<p>(These Command can be use also for groups) I dont need Khols admin or some admins commands.</p>
<p>If you guys could help me out Than... | 1567 | ||||||||
0 | How to lock a place after all players have been teleported? | 55310986 | hokyboy | 245 | 2021-01-14 06:26:50 | <p>In camping u have this car wich teleportes u to a place , After everyone joined the place gets locked and no one can join anymore</p>
<p>can someone send me links so i can learn about this?</p>
| 118671 | ||||||||
0 | How can I edit this server to client function to access the localplayer? | 1350569192 | AbettrWesley | 6 | 2022-09-11 04:46:05 | <pre class="brush: lua">I need to make it so when you step on a part you get teleported to a lobby, which I already have down. It's just that the "plrservice.PlayerAdded" part keeps track of the latest player added, and not the local player. How could I edit this to fire to the Localplayer's client, not some random per... | 131585 | 1 | 118843 | 0 | 559514967 | T3_MasterGamer | 2189 | 2022-09-11 10:18:52 | <p>You can check if the player who touched the part is you.</p>
<pre class="brush: lua">plrservice.PlayerAdded:Connect(function(plr)
part1.Touched:Connect(function(hit)
if hit.Parent:FindFirstChildOfClass("Humanoid") and (plrservice:GetPlayerFromCharacter(hit.Parent) == plr) then
if debounce the... |
1 | Getting concatenate error with my script that for custom chat, why? help me! | 71530978 | enes223 | 312 | 2018-12-07 20:47:27 | <p>I'm trying to make custom chat for my game and getting this error: attempt to concatenate local 'text'... ;-; Heres scripts I made:</p>
<p>For Send Button:</p>
<pre class='brush: lua'>script.Parent.MouseButton1Click:Connect(function()
local text = script.Parent.Parent.TextBox.Text
local PlrName = gam... | 71835 | 1 | 68117 | 0 | 57354998 | Cvieyra2test | 176 | 2018-12-07 20:58:18 | <p>Well one problem I could find right away is that the Client-Server communication actually gives 3 arguments and not the two you specified.</p>
<p>All client-server communications that are utilized with the Event object provide the player itself.</p>
<p>So you can remove the "PlrName" argument and just utilize the pl... |
0 | How to stop a script from repeating? | 15619704 | NinjoOnline | 1147 | 2014-04-16 23:07:42 | <p>I have this script which gives a countdown to the next round, but after it hits 1 it goess back to 9. How can I get it to stop and pick a random map once the clock hits 0??</p>
<pre class='brush: lua'>--------------------------------------------------------------------------------------------
if game.Workspace.MainT... | 2302 | 2 | 3140 | 0 | 40842434 | HomingBeacon | 5 | 2014-04-16 23:12:09 | <pre class='brush: lua'>for i = 10,1, -1 do
script.Parent.Parent.Timer.Text = i
wait(1)
end
maps = game.Lighting.Maps:GetChildren()
ranmap = math.random(1,#maps)
if ranmap == 1 then
clonemap = game.Lighting.Maps.Map1:clone()
elseif ranmap == 2 then
clonemap = game.Lighting.Maps.Map2:clone()
end
clonemap... |
1 | How can I save a player's in-game earned gear? | 45803743 | DrCylonide | 158 | 2014-05-30 05:19:52 | <p>In my game, players can use in-game currency to purchase fun gears.
I would like to know how I can save a player's in-game gear when they leave and join the game.</p>
<p>Thank you!</p>
| 5834 | ||||||||
0 | Is there anyway to increase the effective explosion radius beyond its max radius? | 6954343 | CoolJohnnyboy | 121 | 2018-01-29 20:04:26 | <p>Currently, explosions are limited to a blast radius of 100. Is there anyway you can increase the blast radius by, say, 2x?</p>
| 52881 | ||||||||
0 | Is there a way you can hide someone's name without inserting a new part? | 22187857 | Pawsability | 65 | 2014-07-18 07:34:11 | <p>I made a GUI that's over a person's head but the name and health tags are in the way, is there a way to hide them without inserting a new head? All the scripts I find insert another head.</p>
| 8301 | ||||||||
0 | How to create a Rig which features minor gore via Union(?) | 1961959172 | imnotaguest1121 | 362 | 2023-03-10 03:18:25 | <p>Hello Developers!</p>
<p>Let me explain what I mean; I want to create a Rig that inside of said Rig has minor gore such as: A Skeleton inside of the Rig, a Heart, Lungs, Etc. and I want to reveal it using Union if a player touches a blade of some short.</p>
<p>The way I imagine it is simple; There will be a part and... | 133172 | ||||||||
0 | [Solved] How do you make a player object out of metatables? | 15098126 | climethestair | 1663 | 2018-08-06 23:42:49 | <p>I wrote this Module that I know 100% is wrong since it doesn't work. I want to be able to apply the <code>player_properties</code> table to a new player object, but I am struggling to understand how that is going to work. I've looked at all the metatable/metamethod Wikis's on the front page of Google, but I am still... | 64815 | ||||||||
1 | Why am i getting attempted to index nil with parent?[SOLVED] | 357035682 | mikey2019d | 38 | 2020-07-28 04:46:08 | <p>I keep getting this error when I click a button any more than 4 times. here is my code</p>
<pre class='brush: lua'>local List = game.Players.LocalPlayer.PlayerGui.MainMenu.Screens.ShopFrame.GunNames.GunNames2.Lists:GetChildren()
local SelectedClass = game.Players.LocalPlayer.PlayerGui.MainMenu.Screens.ShopFrame.GunN... | 110136 | ||||||||
0 | Why is my speed tool not working when decreasing speed? | 139520354 | HeroFigo | 61 | 2020-04-14 21:49:40 | <p>This is the script and it works adding speed but breaks when decreasing</p>
<pre class='brush: lua'>local tool = script.Parent
local Handle = tool:WaitForChild("Handle")
tool.Equipped:Connect(function()
local h = script.Parent.Parent:FindFirstChild("Humanoid")
h.WalkSpeed = h.WalkSpeed + 20
end)
tool.Unequip... | 99300 | 1 | 91727 | 2 | 358294883 | LegoUnicornRoblox | 37 | 2020-04-14 22:05:11 | <pre class='brush: lua'>local tool = script.Parent
if script.Parent.Parent.Name == "Backpack" then
character = script.Parent.Parent.Parent.Character
else
character = script.Parent.Parent
end
h = character:WaitForChild("Humanoid")
tool.Equipped:Connect(function()
h.WalkSpeed = h.WalkSpeed + 20
end)
tool.Uneq... |
1 | How do I check if a weld has been broken? | 1342634801 | bear16225 | 7 | 2022-11-19 00:57:23 | <p>Hello all,
I'm relatively new to Lua programming, and was wondering how I could check if a WeldConstraint between two parts has broken, and then if it has, activate a ParticleEmitter briefly. After doing some research I found that .Active can be used to check whether a weld is active or not, and came up with this co... | 132313 | 1 | 119507 | 0 | 559514967 | T3_MasterGamer | 1002 | 2022-11-19 01:52:22 | <p>Always put <code>wait()</code> at the start of a loop so it doesn't error or in worse cases, crash your game. Try checking the distance between <code>part.Position</code> and <code>originalPosition</code> by subtracting them then get the Magnitude <em>(distance)</em> of the difference and check if the Magnitude is e... |
8 | When should you use a LocalScript and when should you use a Script? | 269323 | Ozzypig | 185 | 2014-02-02 00:04:01 | <p>I have a script that is meant for a GUI that displays the value of a StringValue in the workspace, but I don't know if I should use a LocalScript or Script.</p>
| 2 | 3 | 39 | 2 | 23476243 | MarkOtaris | 241 | 2014-02-17 03:17:22 | <p>You should always use local scripts for tasks related to user input, including everything related to mouse or keyboard input as well as user interfaces and camera manipulation. Tasks directly dependent on user input (including actions performed by tools in result to user input) should also be done with local scripts... |
0 | How do I connect a team with a spawn + with group roles? (please help) | 689433817 | l7mf | 2 | 2020-01-07 19:29:35 | <p>I wanna help someone make a game and we have different teams. I'll make some GUIs where people can spawn as a driver or passenger and that people with a rank, will spawn as their group roles. How do I make it so that passengers spawn in the passengers spawn and that the drivers go to the drivers spawn (so how do I c... | 92711 | ||||||||
0 | whats wrong with this script? | 3369012 | ned995 | 0 | 2014-06-03 21:07:18 | <pre class='brush: lua'>function getTeamMembers(CGABrown)
local members = {}
for i,v in pairs(Game.Players:GetPlayers()) do
members[#members+1] = v.TeamColor == TeamColor and v or nil
end
return members
end
function teleportTeam(BrightBlue, Position)
for i,v in pairs(getTeamMembers(CGABrown)... | 6123 | ||||||||
2 | How would you correctly nest this table? | 31265920 | Azarth | 3141 | 2017-07-29 00:14:04 | <p>Does anyone know of a better way to nest the 'this' table while still being able to use it as a dictionary? It looks ugly and I'm blanking.</p>
<pre class='brush: lua'>local bank = {}
bank.__index = bank
setmetatable(bank, {
__index = function(ogt, bank_id)
-- Converting to a dictionary and nesting 'this... | 45905 | ||||||||
0 | How to make a GUI's visibility set to false after a certain amount of time? | 737158244 | SkyFume | 10 | 2021-02-17 08:18:56 | <p>I have currently tried to make a GUI that goes invisible after a certain amount of time: this is my code,</p>
<pre class='brush: lua'>local guis = game.StarterGui.Menu.SideMenu
while true do
wait (10)
guis.Visible = false
wait (10)
guis.Visible = true
end
</pre>
<p>I am currently new to Roblox Script... | 120272 | 2 | 109723 | 2 | 232623022 | 2_MMZ | 837 | 2021-02-17 15:56:01 | <p>So here's what you'll need to do. First, if your script is a regular script, then change it to LocalScript, and insert that LocalScript into the target GUI.</p>
<p>Then, you must use a <code>while true do</code> which will make your script loop for eternity, you can even put a wait in there, so it waits every 10 sec... |
0 | Why does applying a humanoid description make the player glitchy? | 29255869 | dingding2002 | 14 | 2020-11-23 09:08:26 | <p>I've spent so much time trying to find a answer but seems like i'm the only one to have this problem. I've tried so many things to make it work but none of them work. The glitch have no reason to occur, i'm losing my nerves.</p>
<p>Here the "glitch" : https://gyazo.com/4a98cabf5909549c21296c79fbf33cdd</p>
<p>I can't... | 116195 | ||||||||
0 | GUI that shows what level you are on is not working with no errors? | 1241159283 | guuguu058 | 9 | 2022-06-19 23:30:56 | <p>I have tried to create a level system with a gui that shows what level you are at but the gui part just wont work here is the script</p>
<pre class='brush: lua'>local player = game.Players.LocalPlayer
local xp = 0
local level = 0
local xpneeded = 100
local levelsgui = script.Parent.Parent.Frame.Levels
local xpgui = ... | 130412 | 2 | 117752 | 0 | 34716028 | cmgtotalyawesome | 1403 | 2022-06-20 04:21:37 | <p>I know I left a comment but I figured I'd answer as well just to show you. While using a while true do loop like the user above me suggested would work, it isn't as simple as it could be and would slow down your game if it had a lot of scripts running. Instead what I would do is change the gui text inside of the Mou... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.