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 would I make a floating arrow that points to the next stage in my obby? | 1969259785 | glxymo | 6 | 2021-01-11 20:27:19 | <p>I tried using a billboard gui but it didn't work.</p>
| 118560 | ||||||||
0 | How to send a notification to all players via Gui? | 94195111 | Laertus | 2 | 2015-12-19 20:27:20 | <p>I want to make a script that will send a gui (notification) to everyone in the server. How do I do that?</p>
| 25370 | ||||||||
0 | Mech Joints | 2964376 | elihill | 0 | 2014-03-02 17:26:46 | <p>I don't have basic knowledge on movements of vehicles. I'd like to know how to operate joints and animate them on a mech I working on. I have the joints done but I don't know how to make them moving joints. I want to set up the joins so the mech will crouch and the torso will move with the legs when I'm walking. The... | 442 | ||||||||
0 | How to have a script execute at a certain amount in Leader stats? | 33283401 | BillingError | 0 | 2018-04-17 16:56:31 | <p>For example if you get 10 kills I want it to execute the script</p>
| 56997 | ||||||||
2 | Script doesn't detect the right player? | 27191813 | Tymberlejk | 143 | 2020-06-19 13:58:47 | <p>So what I'm trying to do is to make a function that only happens when the enemy player is touching the stunned player.</p>
<p>Unfortunately my method of detecting it doesn't work for some reason:
(<code>char</code> is the stunned player's character and <code>player</code> is the enemy player)</p>
<pre class='brush: ... | 106830 | ||||||||
1 | Shooting a block with bodyVelocity? | 74144343 | Kryddan | 261 | 2015-04-29 23:49:11 | <p>I try to do so whenever i press the "Y" button i should shoot away a block from myself into the direction where my mouse is. It works until i move, if i move and then press "Y" the block spawns but never shoots away it just sits still.</p>
<p>here is my code and i hope you can help me.</p>
<pre class='brush: lua'>lo... | 17124 | 1 | 20513 | 0 | 79451355 | SurVur | 86 | 2015-04-30 02:09:36 | <p><code>xvelocity.velocity = CFrame.new(player.Character.Torso.Position, mouse.Hit.p).lookVector * 50</code></p>
<p>replace line 20 with this</p>
|
0 | Humanoid.Running not working correctly. What should I do? | 711280444 | PanIntegralus | 2 | 2020-08-26 19:28:58 | <p>I'm having this weird problem with this event and I don't know why. I'm trying to cancel playing animations but because of this is impossible.
<a target="_blank" href="https://i.imgur.com/AuePaKC.png">Image of the problem</a></p>
<p>EDIT: I only have this in my code right now:</p>
<pre class='brush: lua'>humanoid.Ru... | 112193 | 1 | 102994 | 0 | 28410786 | AlexTheCreator | 461 | 2020-08-26 19:37:31 | <p><a target="_blank" href="https://developer.roblox.com/en-us/api-reference/event/Humanoid/Running">humanoid.Running</a> fires when the speed of the character moving <em>changes</em> (detects acceleration not the act of running). I imagine the ...build-up time? (the time it takes for the player to transition from walk... |
1 | How to make a GUI pop up when brick is clicked? | 161262344 | sean_thecoolman | 190 | 2019-08-03 23:09:05 | <p>Code I have so far:</p>
<pre class='brush: lua'>script.Parent.ClickDetector.MouseClick:Connect(function(Player)
Player.PlayerGUI.AreYouSureGUI.Frame.Visible = true
end)
</pre>
<p>I know this question has been asked and answered a lot, but trying those solutions would not work! I get this error:</p>
<p><em>PlayerGUI ... | 85042 | 1 | 78950 | 1 | 171801589 | JoshGamingHQ1 | 43 | 2019-08-04 01:20:28 | <p>What I did was I used a RemoteEvent, a script in the brick, and a local script in the GUI.</p>
<p>For the script inside the brick I did this:</p>
<pre class='brush: lua'>local replicatedStorage = game:GetService("ReplicatedStorage")
local event = replicatedStorage:WaitForChild("ShowGUI") --The RemoteEvent is named "... |
0 | How do i remove gear from backpack when i press play? | 871412957 | OrewaKamidaa | 40 | 2019-08-12 08:11:53 | <p>I want to remove gear from avatar Roblox that we had bought early because I want to make my
game be clean</p>
<p>Gif Here : https://gyazo.com/a5fac5800ac821d33290d0545cf9124e</p>
| 85587 | 1 | 79461 | 1 | 39939779 | EpicMetatableMoment | 1444 | 2019-08-12 16:58:24 | <h2>Question</h2>
<blockquote>
<p>How do i remove gear from backpack when i press play?</p>
</blockquote>
<h2>Answer</h2>
<p>I looked at the comments on this post and they allude me to the idea that your game doesn't have anything in <code>StarterPack</code> and instead you have gear permissions enabled.</p>
<p>The sol... |
14 | Can Roblox Handle 28800000 Raycasts per second? | 16826035 | YellowoTide | 1992 | 2015-04-03 18:42:34 | <p>60 times a second, 800x600 raycasts. I was wondering if it can even handle 1/6 of what I'm going for?</p>
| 16300 | 2 | 19561 | 7 | 386992 | BlueTaslem | 18071 | 2015-04-03 19:08:03 | <p>No. Let's say you have a full 2GHz processor to run your game (I don't think you get that much, but it would be hard to tell). Let's say 1 ROBLOX function call takes 1000 instructions (this is probably an okay approximation). That means you get around 2,000,000 function calls / second.</p>
<p><em>This is a really ro... |
0 | How to put debounces to multiple functions efficiently? | 526210522 | Dehydrocapsaicin | 20 | 2021-01-13 11:37:30 | <p>So I'm trying to make a combat system with multiple attacks and I don't want players to be spamming the same attack over and over again.</p>
<p>Was:</p>
<pre class='brush: lua'>local UIS = game:GetService("UserInputService")
local cooldown = false
local function attack1()
if not cooldown then
cooldown = ... | 118637 | ||||||||
0 | How to solve the store script problem? Hello everyone, I'm a beginner game developer | 1744613578 | YTBrainBroYT | 29 | 2021-03-24 08:54:18 | <p>recently started writing scripts and
I got this error
the script itself is here</p>
<p>PlayerGui.ShopGui.Frame.ScrollingFrame_12.ScrollingFrame.Arranger:9: attempt to index nil with 'IsA'</p>
<p>and script</p>
<pre class='brush: lua'>game.ReplicatedStorage.GameClient.Events.RemoteEvent.PlayerLoaded:FireServer()
prin... | 121621 | 1 | 110792 | 1 | 9552668 | SteamG0D | 1613 | 2021-03-24 09:26:18 | <p>When you get an error that says "attempt to index nil with ___" it means that whatever variable is on the left side of the operation is nil. So in this case, it is attempting to index image with IsA, but cannot do so because image is nil, and nil does not have the IsA operation.</p>
<p>So what you will want to do is... |
0 | Indexing a player search and linking it with a player ID? | 174759426 | dirty_catheter | 7 | 2015-04-30 20:38:59 | <p>I'm trying to figure out how to successfully create a search system for a data center I am working on.</p>
<p>I would need to pull IDs from usernames that are searched.</p>
<p>For example, if I searched <code>cloudwork</code>, I would want that user's avatar image to pop up and I would want their data to appear in m... | 17142 | ||||||||
0 | How to Make Player change body on Entered? | 29242210 | TheVortexmodels | 0 | 2014-05-12 18:26:54 | <p>when player enters he/she spawns with package.</p>
| 4764 | ||||||||
0 | NPC follows humanoid named zombie how? | 609694350 | thedukke1 | 7 | 2021-07-21 18:25:17 | <p>So my npc follows every humanoid in existence and i will have it to follow humanoids named zombie</p>
<pre class='brush: lua'>function findNearestTorso(pos)
local list = game.Workspace:GetChildren()
local torso = nil
local dist = 10000
local temp = nil
local human = nil
local temp2 = nil
... | 125570 | ||||||||
1 | How would I make a smoother first person camera? | 681078 | Edenojack | 171 | 2016-03-25 19:55:00 | <p>So the current Roblox Camera code seems to skip tiny angles, this is really only noticable when reducing the field of view, or trying to move your camera in small increments.</p>
<p>I found one method was to simply change the camera from Pointing in the desired direction and instead lerping it towards its intended d... | 28841 | ||||||||
0 | Problem with a Dev Product giving a item from a gui? | 642967600 | tonomeow | 5 | 2022-11-20 02:35:37 | <p>The dev product shows up when I click the TextButton but when I buy it I dont get the item.
I have a script in ServerScriptService here it is.</p>
<pre class="brush: lua">local marketplaceService = game:GetService("MarketplaceService")
local players = game:GetService("Players")
local productId = 1338743761
local Too... | 132320 | ||||||||
1 | This is annoying in the output. I cant remove it? | 552691418 | funboy12344444 | 19 | 2021-06-12 10:30:22 | <p>Output:</p>
<p>Module code did not return exactly one value</p>
<p>Error occurred, no output from lua.</p>
<p>The requested module experienced an error while loading</p>
<p>Stack Begin</p>
<p>Script 'Model.MainModule ', Line 3</p>
<p>Stack End</p>
<p>I do not have a script named MainModule. It cant be a virus as it ... | 124314 | 1 | 113335 | 0 | 1044984225 | datboyPiter | 52 | 2021-06-12 15:38:34 | <p>I think that is a roblox studio bug, so you can't do anything but wait</p>
|
1 | how do you add an amount on to a value? | 98600858 | cjkizzy286 | 24 | 2020-05-27 15:45:59 | <p>for a leaderstat im trying to add for a simualtor how do you do it</p>
| 104519 | 2 | 96460 | 0 | 522434929 | Qub_lex | 201 | 2020-05-27 15:54:02 | <p><code>.Value</code> should be pretty straightforward. It gets the value of, well, a value. You can use any math function on values. It was literally that simple.</p>
|
0 | How to make a Custom Player List GUI? | 101879484 | XxSHjokerxX | 18 | 2016-06-05 14:01:26 | <p>I'm rather confused on how to do this, I know how to do everything else like Data Store, leaderstats, Functions, Tables etc etc but I have no idea on how to do this and I know how to get all the players and makes gui's for all of them but how do I make the second players gui under the first the one and the third one... | 31398 | ||||||||
0 | FireClient can only be called from the server? | 22097427 | ZeMeNbUiLdEr | 104 | 2016-01-30 22:23:17 | <p>I'm trying to fire an event from a GUI when a player clicks a button. The script works, the only problem is i get the output "FireClient can only be called from the server". The part of the script that fires the event looks like this:</p>
<pre class='brush: lua'> local event = Instance.new("RemoteEvent")
even... | 26877 | 1 | 30413 | 1 | 1600676 | MasterDaniel | 320 | 2016-01-30 23:48:36 | <p>You should use :FireClient(player) when you are in a server script, attempting to communicate with the client.</p>
<p>For communication with the server, started by the client you need to use :FireServer(). By default the first argument will be the player (which can be a bit confusing at first - essentially anything ... |
0 | Is there a way to make inserted r15 characters dance? | 348200991 | gpp_CSRO | 4 | 2020-08-01 00:41:40 | <p>Im pretty new to this but how do i make my roblox r15 character that i pasted into the game dance?</p>
<pre class='brush: lua'>local gpp = game.Parent
gpp:PlayEmote(132546884)
</pre>
<p>this is most likely completely wrong. tbh i dont know what im doing. i cant find anything on the api reference.</p>
| 110429 | ||||||||
0 | How do I make a Team door for my infection game? | 435817619 | SpriteGamerHD | 47 | 2020-12-09 00:19:52 | <p>I wanna make a team only door
like so if someone walks up to the door it makes the other team cant go at the same time has him
also can you fix the script</p>
<pre class='brush: lua'>local AlloweedColor = "Really Blue"
local DeniedColor = "Lime green"
script.Parent.Touched:Connect(function(hit)
local player = ga... | 116950 | ||||||||
0 | How would I make a player teleport by saying something in chat? | 1024064500 | DJTwisted_2 | 0 | 2021-07-04 08:11:24 | <p>I'm working on a game currently and want to add a secret parkour level for a badge. I want players to be able to type, for example, "Yessir" into the chat then teleports them to the parkour and deletes the "Yessir" message (the parkour is a separate place/game.) If anyone could help me that would be awesome!</p>
| 125041 | 1 | 113888 | 0 | 1533246993 | CountOnMeBro | 51 | 2021-07-04 16:30:29 | <pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
if msg == "Yessir" then
game:GetService('TeleportService'):Teleport(GameID)
end
end)
end)
</pre>
<p>player.Chatted is a function that detects when the player writes somethin... |
0 | I keep on getting Nil in-game on the server console. How do i fix? | 254090301 | lukepillingrblx | 2 | 2022-05-13 17:38:07 | <p>Quite simple, the server console in-game sometimes just spams "nil" and im not really sure why. I don't really know how to find out why or to see where it is coming from; any help is appreciated.</p>
| 129989 | ||||||||
0 | Fix? - Cannot store Instance in data store. Data stores can only accept valid UTF-8 characters. | 1744613578 | YTBrainBroYT | 29 | 2021-10-13 14:56:27 | <p>Script</p>
<pre class='brush: lua'>for i,v in pairs(game.Workspace.Teleports:GetChildren()) do
local dss = game:GetService("DataStoreService")
local sv = dss:GetDataStore("Save1")
game.Players.PlayerAdded:Connect(function(plr)
local SetSuccess, errormessage = pcall(function()
... | 127854 | ||||||||
0 | Button lets me click once but wont after the second? | 547784746 | Lamborghinihurican0 | 4 | 2022-06-21 18:51:28 | <p>When I click a part in the workspace it is supposed to show a frame but it works one time then when you close the frame and try to click the part again it wont show
here is the code to the part that shows the frame (Script)</p>
<pre class='brush: lua'>local cd = script.Parent.ClickDetector
cd.MouseClick:Connect(func... | 130441 | ||||||||
0 | Health change or INFINITE HEALTH of the character in ROBLOX? | 583950340 | LILUZIVERT_XOTourLyf | 0 | 2018-05-04 20:32:15 | <p>Please help me out guys how do you change the amount of health your character has in a game.Does an infinite value even exist? Changing it such that it is saved everytime the character respawns.</p>
| 57938 | 2 | 56584 | 0 | 71379989 | whenallthepigsfly | 500 | 2018-05-04 22:32:36 | <p>To do this, simply use math.huge!</p>
<p>Example in a server script:</p>
<pre class='brush: lua'>wait(1)
local plrs = game.Players:GetPlayers() --Replace with target player/character
local chr = plrs[1].Character --Get player character
--Set both maxhealth and health to an infinite value
chr.Humanoid.MaxHealth = mat... |
0 | This shooting script does not work at all, does not shoot? | 1400234436 | KoalaKo_XD | 27 | 2023-03-10 22:15:58 | <p>This following script is supposed to instance a new part, and make it shoot towards the player but it dosent do that! Thanks for the help</p>
<pre class="brush: lua">local function Shoot()
local bullet = Instance.new("Part", workspace.Bullets.EnemyBullets)
bullet.Size = Vector3.new(0.3,0.3,0.3)
bullet.Ma... | 133175 | 1 | 120249 | 0 | 178628425 | Jac_00b | 157 | 2023-03-11 15:09:20 | <p>You said in the comments that this was in a LocalScript. LocalScripts are meant for things that only the client can see, so no other clients in the server will be able to see the bullet. However, it's not as easy as just switching it to a server script, as you referenced <code>game.Players.LocalPlayer</code>, which ... |
0 | How to make your Character Teleport when killing a NPC? | 18976509 | maxi66666 | 6 | 2020-04-17 21:01:10 | <p>So I'm pretty new to scripting and I wondered how I could make your character teleport to a position when you kill a NPC.</p>
<p>I get the error attempt to index nil with 'Character' , and I've tried researching but I simply can't find a solution on how to let the script find the HumanoidRootPart</p>
<pre class='bru... | 99669 | ||||||||
0 | How do i detect when a player stops walking? awnser ASAP please | 105389156 | bily117 | 6 | 2021-10-02 04:07:01 | <p>Ok so i am making a animation pack and i need to know when the player stops walking this is what i have so far</p>
<pre class='brush: lua'>local Players = game:GetService("Players")
local player = Players.LocalPlayer
local RS = game:GetService("ReplicatedStorage")
local RStop = RS.RStoppedWalking
local Player = game... | 127776 | ||||||||
0 | Table keeps returning "nil" for some reason? | 929847335 | TheDude646 | 72 | 2021-08-10 22:46:20 | <p>so i am trying to use a table to store loadout data in my game, but every time i try to use the table it tells me it's just nil. i have 2 potential culprits in my loadout handling server-side script:</p>
<pre class='brush: lua'>local dataStore = game:GetService("DataStoreService")
local replicatedStorage = game:GetS... | 126332 | ||||||||
0 | Will this work as a data storage for like a load game thing? | 1103001350 | GamerWareYT | 0 | 2022-08-02 16:17:56 | <p>Code:
local frame = script.Parent
local New = frame.New
local load = frame.Load
local updates = frame.Updates
local Player = game.Players.LocalPlayer
New.Activated:Connect(function()
local datastore = Instance.new("Folder", Player)
datastore.Name = "Data"
local lvl = Instance.new("StringValue", datastore)
lvl.Name =... | 131066 | ||||||||
1 | health display script doesn't work, no errors in console? | 46430307 | starwars5251977 | 48 | 2019-01-01 23:56:59 | <p>here is the script:</p>
<pre class='brush: lua'>local humanoid = script.Parent.Humanoid
local health = humanoid.Health
local maxHealth = humanoid.MaxHealth
script.Parent.Name = health.."/"..maxHealth
script.Parent.Humanoid.HealthChanged:Connect(function()
script.Parent.Name = health.."/"..maxHealth
end)
</pre>
<... | 73541 | ||||||||
0 | How would you add value to CFrame? | 715494 | Orlando777 | 315 | 2014-04-29 19:55:03 | <pre class="brush: lua">Workspace.Part1.CFrame = Workspace.Part1.CFrame * CFrame.Angles(0,math.rad(10),0)
</pre>
<p>This only sets it to that degree. + CFrame.Angles(0,math.rad(10),0) wont work it tells me it needs a vector 3, which I tried and wouldn't work either.</p>
<p>What I plan on doing is adding +1 to math.rad ... | 3919 | 3 | 5390 | 2 | 806698 | duckwit | 1404 | 2014-04-29 20:07:29 | <p>You can use the addition operator, <code>+</code> between a <code>CFrame</code> and a <code>Vector3</code>, between a <code>Vector3</code> and another <code>Vector3</code> but <strong>not</strong> between a <code>CFrame</code> and another <code>CFrame</code> - the Offical ROBLOX Wiki page on CFrames has a section de... |
0 | Data Store 2 leaderboard sometimes doesn't show up? | 167536064 | MelodicSea5914 | 10 | 2020-08-02 13:14:38 | <p>Hi, I am currently making a game that uses Data Store 2 to save the data. I made a script that works but only shows the leaderstats every second time I join in the game. For example, if I join the first time, it will show that that I have 100 Coins and 0 Gems but when I leave and join the game again, the whole leade... | 110539 | ||||||||
0 | Where did the GunCursor.png go? Cannot find it in the textures folder. | 97863960 | Joz2015 | 6 | 2018-01-27 17:20:37 | <p><em>Background</em></p>
<p>Before (as in 2016-) you were able to <a target="_blank" href="https://www.youtube.com/watch?v=wHknH8PsxiU">customize your own default gun cursor</a> for personal use in all ROBLOX games.</p>
<p><a target="_blank" href="https://t5.rbxcdn.com/9ec26ccc96fd8a2579ac57838a1add3f">This</a> is wh... | 52746 | ||||||||
0 | Way to switch between cameras? | 205124720 | bogotesr | 2 | 2021-01-31 23:29:20 | <p>I want to make it so that when a player touches a block it teleports them to an area and changes to a camera that shows the area exactly the way I want. I got the teleporting part but how can I switch the camera to a camera object inside a brick?</p>
| 119470 | 1 | 109062 | 0 | 160399649 | genilsonotavio | 132 | 2021-02-01 01:20:08 | <p>To change a specific player's camera, you need to use a LocalScript, because you need to use CurrentCamera, which can only be accessed by a LocalScript.</p>
<p>In a LocalScript.</p>
<pre class='brush: lua'>local Camera = Workspace.CurrentCamera -- To get the player's camera.
local CameraPart = -- The part you want t... |
0 | How can I code where the client can see as well in this is a local script ? | 40621453 | JerkDerekThe14alt | 9 | 2020-08-01 03:23:34 | <pre class='brush: lua'>wait(0.1)
local Player = game.Players.LocalPlayer
local Button = script.Parent.Toggle.Button
local Menu = script.Parent.Menu
local Debounce = false
function ChangeColor(Child, Code)
if Code == 1 then
Child.BrickColor = BrickColor.new(Color3.fromRGB(255, 255, 255))
elseif Code == ... | 110437 | ||||||||
1 | What is the difference between index and *underscore*? | 984384728 | RebornedSnoop | 170 | 2019-11-15 13:02:35 | <pre class='brush: lua'>i , v in ipairs | _,v in ipairs
</pre>
<p>What is the difference between those two?</p>
| 90046 | 1 | 83487 | 0 | 151545165 | RiskoZoSlovenska | 373 | 2019-11-15 15:06:15 | <p>When you have a table and want to cycle through it, you have two options. <code>ipairs(a)</code> and <code>pairs(a)</code>. I do not know the detailed implementation of each, but what they do is that they move through <code>a</code> (in this case a list) and assign values to variables. Let's focus on <code>ipairs(a)... |
1 | How would I manually recreate mouselock? | 25264511 | travddm | 5 | 2014-02-21 21:44:44 | <p>I've been trying to recreate the Roblox mouselock camera setting for a 3rd person view, but haven't had any success. Does anyone have any ideas?</p>
| 206 | ||||||||
0 | Is there a way to use recursive in "WaitForChild"? | 85800608 | Gulgazar | 65 | 2020-04-23 05:20:17 | <p>As i found, function ":WaitForChild()" has no bool value for recursive search in children.
So how to determine if one of the folder children with unknown name get a child i need to wait?
I mean same as function</p>
<pre class="brush: lua">Folder:FindFirstChild("PartName", true)
</pre>
| 100380 | ||||||||
0 | [ANSWERED] How Does CFrame.fromEulerAnglesXYZ() Work? | 44579150 | MixCorp | 70 | 2014-05-10 20:13:16 | <p>This is exact code, It always worked before...</p>
<pre class='brush: lua'>Object.CFrame = Cframe.fromEulerAnglesXYZ(1,4,6)
</pre>
| 4671 | 1 | 6299 | 1 | 9000604 | xDeathBear | 90 | 2014-05-10 21:20:37 | <p>Object.CFrame = CFrame.fromEulerAnglesXYZ(0,0,0) basically just rotates the brick depending on what your numbers are.</p>
|
0 | How to compare color value in for loops? | 715494 | Orlando777 | 315 | 2014-04-30 23:14:50 | <p>How do I compare team to Bright red?</p>
<pre class='brush: lua'>function tele()
wait()
c=game.Players:GetChildren()
for i=1, #c do
team = c[i].TeamColor
if team == "Bright red" then <-----Problem here
print("RED")
end
end
end
while true do
wait(5)
te... | 4021 | 2 | 5540 | 0 | 307412 | deaththerapy | 60 | 2014-05-01 00:03:36 | <p>To expound on what M39 said, TeamColor is a type of value called a BrickColor value. What that line of script is doing therefore is comparing some letters ("Bright Red") to a Color value, which clearly colors and letters aren't the same thing so it spits out an error. That's why you have to say:</p>
<pre class='brus... |
0 | Why can't I change the value of ImageTransparency? | 8675135 | SolarHorizon | 15 | 2014-12-08 23:38:56 | <p>I was trying to see how a particular image would look if it were to fade in/out.</p>
<pre class='brush: lua'>a = game.Workspace.Part.SurfaceGui.Frame.ImageLabel.ImageTransparency
for i = 1,10 do
a = a - 0.1
wait(0.04)
end
</pre>
<p>For some reason, it doesn't change the value at all. When I made the script... | 13113 | ||||||||
0 | How can I make my horde of npcs spawn behind the player? | 264630904 | DriBowser | 55 | 2022-11-11 19:59:56 | <p>So basically, I'm making an ability for a sword where you can spawn a horde of noobs behind the player that will move straight ahead. I'm having a problem, though. That problem is that I can't figure out how to make them properly spawn behind the player, because when they spawn, they dont go where i want it to (The ... | 132242 | ||||||||
0 | Image label's position keeps changing to {0, 0},{0, 0}. How do I fix this? | 85509330 | KatsuneSniper | 31 | 2018-03-14 07:17:32 | <p>In the script below I tried to change the image label's position. But it keeps changing to {0, 0},{0, 0} other than changing it to the desired position. How do I fix this?</p>
<pre class='brush: lua'>arrow = script.Parent.Parent:WaitForChild('PlayArrow')
arrow.Position = UDim2.new({0, 0},{0.2, 0})
wait(0.05)
... | 55039 | ||||||||
0 | How do I make a message with a script? | 30372619 | Roboy5857 | 20 | 2014-03-11 01:10:38 | <p>I always wondered if you can make a message with a script. Example: I wanted to say Hello World! then wait 5 seconds.</p>
| 620 | ||||||||
0 | gui position is changing with different screen size, how do I "lock" GUI to a certain position? | 178088402 | friso9 | 2 | 2021-07-20 16:49:18 | <p>So I just published my game on roblox and me and my friend tested it out. But when he is in game, the GUI position changes. And I think it is because the difference in screen size. I use scale, do I have to use offset?</p>
| 125538 | ||||||||
0 | How do i make ragdoll show on other players perspective? | 87942360 | HamsterxDD | 0 | 2021-02-23 16:52:17 | <pre class='brush: lua'>local Storage = game.ReplicatedStorage
local ragdollDummy = Storage.Ragdoll_Rig
local debounce = false
local Players = game:GetService("Players")
local DebrisMoment = game:GetService("Debris")
local function safeClone(instance)
local oldArchivable = instance.Archivable
instance.Archivabl... | 120571 | ||||||||
0 | How do I fix the swapping function for my Inventory system? | 611962719 | AdamBolt2 | 7 | 2023-02-18 23:33:14 | <p>I've been working on an inventory system for a survival game I've been working on, and I've been having trouble with it. I've been lately working specifically on the swapping function, where you can select an item, press a button, and then if you press 1 for example, the selected item will go in slot 1 of the hotbar... | 133090 | ||||||||
0 | Attempt To Call A Nil Value? | 69364093 | TheNINJA152 | 85 | 2020-07-12 22:37:53 | <p>I'm trying to make a ban button and it shows me this error, can anyone help me?</p>
<p>Here's my script</p>
<pre class='brush: lua'>local banDataStore = game:GetService("DataStoreService"):GetDataStore("banDataStore")
local Frame = script.Parent.Parent
script.Parent.MouseButton1Click:Connect(function()
local Pla... | 108895 | ||||||||
0 | How do I make a plane spawn GUI? | 1615234129 | ConorG234 | 39 | 2021-04-07 19:40:08 | <p>I am trying to make a spawn where the player stands on the spawn and a GUI comes up and the player can select what plane they want to fly. Then the plane will spawn in the position that I choose. For some reason the script does not seem to be working and I can not find a way to make it work. I also have multiple spa... | 122126 | ||||||||
0 | Why do i get this error? ('=' expected near) | 17026327 | Quote545 | 0 | 2016-05-01 01:32:28 | <p>error: 21:32:13.931 - Players.Player1.Backpack.Tool.LocalScript:79: '=' expected near ''</p>
<pre class='brush: lua'>--Variables
local hMouse = game:GetService('UserInputService')
local player = game.Players.LocalPlayer
local m = player:GetMouse()
local tool = script.Parent
local hud = script.mainGui
local hud2 = s... | 30156 | ||||||||
1 | When I click the part the color changing script won't work, why is that? | 169428835 | Cynical_Innovation | 595 | 2019-11-14 05:02:14 | <p>This is supposed to make it so that when you press a button light12 turns white</p>
<pre class='brush: lua'>local db = true
local click = script.Parent.ClickDetector
click.MouseClick:Connect(function()
script.Parent.BrickColor = BrickColor.new("Black")
wait(1)
if script.Parent.BrickColor == "Black" then... | 90005 | ||||||||
0 | Is there any way to get descendants properties without a loop? | 95691042 | Darksniper600 | 104 | 2020-11-20 03:51:03 | <p>I'm trying to make a placing system and this has been killing me for hours. I'm attempting to <strong>get the positions of parts so people can't place them close together</strong>. Unfortunately, the loop makes my building script to where too much money is taken (since <strong>it loops for each boundary</strong>) an... | 116036 | ||||||||
0 | [Solved] My script is not working how I expected? | 303357794 | ColdFoxy07 | 24 | 2021-04-28 09:25:38 | <p>Hey there! I am making a script where you can to the enemy the mouse is pointing at. The only problem however, is that you would still be able to dash, even when the mouse is off the enemy or you moved the specified 40 studs away from the enemy</p>
<p>Here is that script:</p>
<pre class='brush: lua'>--[[ Values ]]--... | 122897 | ||||||||
1 | How to combine these two Scripts? | 1609610586 | Iownrobloxp | 44 | 2021-09-19 18:56:49 | <p>I have this code</p>
<pre class='brush: lua'>local plr = game:GetService('Players').LocalPlayer
local backpack = plr:WaitForChild("Backpack")
for i, v in pairs(backpack:GetChildren()) do
if v:IsA("Tool") then
v:Destroy()
end
end
</pre>
<p>that was given to me by ColdFoxy07(big... | 127558 | 1 | 115698 | 0 | 303357794 | ColdFoxy07 | 61 | 2021-09-19 19:01:46 | <p>Hey again! Hopefully I fixed it for you;</p>
<pre class='brush: lua'>local cooldown = false --//r
local button = script.Parent
local plr = game:GetService('Players').LocalPlayer
local tool = game.ReplicatedStorage.ACS_Engine.HOOD["Micro UZI"]
local backpack = plr:WaitForChild("Backpack")
button.A... |
0 | How to print out the players name? | 385960399 | Artemiygogolev | 4 | 2022-08-01 11:02:21 | <p>Hello everyone, this is my second post here, and i have another question
How do i print out the players name, yes i know this is pretty easy, but i tried some methods, it did not work, it always said: attempt to index nil with Name
heres the script, i made a lava-like part, that kills you, and will print out the vic... | 131035 | 1 | 118375 | 0 | 953256806 | SEAN_YT213 | 104 | 2022-08-01 11:17:40 | <p>You cannot get the local player using a server script.
We can use GetPlayerFromCharacter for this!</p>
<pre class='brush: lua'>local lava = script.Parent
local players = game:GetService("Players")
function KillPlayer(Hit)
if Hit.Parent:FindFirstChild("Humanoid") then
local Player = players:GetPlayerFromC... |
0 | How would you turn off collisions on VR hands? | 861614757 | MrFernian | 0 | 2021-07-15 21:51:18 | <p>I'm making a game and I need to learn how to turn off collision on VR hands, I don't have a VR to test this out.</p>
| 125355 | ||||||||
0 | Problem with opening local file. Does anybody know how to fix the problem? | 230442423 | Charizardbro88 | 2 | 2020-05-26 17:00:02 | <p>Hey! I’m having a problem with one my of local files on studio, as when I open one of them this message appears Could not open place “c:/Users/(MyName)/NewRPG.rbxl “SerializerPugi::deserializelmpl ill-formed XML”.</p>
<p>Does anybody know how to fix this problem?</p>
<p>Sorry if I’m asking to much.</p>
| 104419 | 2 | 96376 | 0 | 117957104 | Nguyenlegiahung | 1091 | 2020-05-26 17:04:54 | <p>Try reinstalling roblox Studio and try again.</p>
|
0 | How to make a part that damages a player in a specific team? | 424755598 | Mystical_Un1verse | 9 | 2021-10-24 23:21:18 | <p>How would I make a script in a part that damages a player on a certain team?</p>
| 127973 | 2 | 115944 | 0 | 136245173 | SharkRayMaster | 81 | 2021-10-25 08:01:07 | <p>Well, since the post doesn't say answered, and maybe you don't know how to adapt joshthegamer456's script, here it is</p>
<p>Just like joshthegamer456 said, just use player.Team</p>
<p>The script goes inside the part that will be touched</p>
<pre class='brush: lua'>local DamagePerTouch = 25 -- How much damage per to... |
0 | Why doesn't the UI change/start a meltdown when it reaches over or under temperatures? | 329032545 | Mister33j | 31 | 2021-04-07 18:44:54 | <p>tested it many times, only "UNSTABLE" works
WHAT IS WRONG WITH THE SCRIPT</p>
<pre class='brush: lua'>while true do
wait(0.1)
if game.ServerStorage.Temperature.Value <= 250 then
script.Parent.Reader.TextColor3 = Color3.new(0.0431373, 1, 0.0431373)
script.Parent.Reader.Text = "STABLE"
e... | 122125 | 1 | 111268 | 1 | 15438711 | opgeeza | 1310 | 2021-04-08 12:53:23 | <p>The client cannot access ServerStorage, I suggest you check on the server then FireAllClients() in order to change what's on a UI.</p>
|
1 | i wanted to make gui visible by a button it didnt work. Can someone help? | 1521983389 | Thelodomir_320 | 5 | 2021-05-23 13:07:21 | <p>Brick = script.Parent
Sound = Brick.Sound</p>
<p>function onClicked()
Sound:Play()
game.StarterGui.ScreenGui.Frame.Visible = true
end</p>
<p>script.Parent.ClickDetector.MouseClick:connect(onClicked)</p>
| 123706 | ||||||||
0 | How Can I make it so people can climb In my Game? | 16319587 | mrnoobypoopy | 5 | 2014-04-15 04:44:03 | <p>So Other Players In my game can climb walls or parts</p>
| 1521 | 1 | 2029 | 0 | 16506729 | Unpoke | 5 | 2014-04-15 04:48:17 | <pre class="brush: lua">Insert a truss in studio and change the mesh to Block Mesh or whatever object you want them to be able to climb.
</pre>
|
0 | Workspace.Maps.DesertMap.Door.Script:5: attempt to index nil with 'leaderstats'? | 183699517 | Coolmansunsh | 17 | 2022-07-29 16:11:57 | <p><strong>What does the error mean??</strong></p>
<pre class='brush: lua'>script.Parent.Touched:Connect(function(hit)
if hit then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player.leaderstats.Coin.Value >= script.Parent.Requirement.Value then
player.leaderstats... | 130996 | 1 | 118376 | 0 | 953256806 | SEAN_YT213 | 104 | 2022-08-01 11:21:34 | <p>The error means that the script is trying to index something that <strong>does not exist.</strong></p>
|
0 | The frame won't become visible? | 340404492 | basicecstasy | 122 | 2017-12-25 00:40:52 | <pre class='brush: lua'>--// LOCALSCRIPT
--// Variables
local optGui = script.Parent.Frame
local button = script.Parent.TextButton
--// Booleans
on = false
--// Scripting
button.MouseButton1Click:Connect(function()
if on then
on = true
optGui.Visible = true
end
end)
button.MouseButton1Click:Conn... | 50880 | ||||||||
0 | Is there a Web API for getting linked items? | 1952394981 | pkoelin0 | 0 | 2021-02-21 13:59:37 | <p>This is for a game called Linked Item Checker. Can I fetch the url for this and output it to a user?</p>
| 120459 | ||||||||
0 | I Can't Get My Custom Meshes to Spawn? | 161034196 | AnScathMarcach | 2 | 2020-01-01 02:40:28 | <p>So I'm brand new to LUA coding and Roblox Studio (though I'm familiar with coding in general). I have successfully created and imported my own custom mesh with a texture, a simple apple.</p>
<p>However, I wanted to mess with scripting and attempted to add in a tycoon-style dropper with a button that would drop the a... | 92324 | 1 | 85552 | 0 | 20111088 | royaltoe | 5139 | 2020-01-03 05:01:58 | <p>I think it was erroring because <code>part.BrickColor= game.Workspace.DropColor.Value</code>
DropColor was most likely a string since there's no brickcolor in value objects</p>
<p>Also, <code>part.Material=game.Workspace.MaterialValue.Value</code> material should be an enum and there's no way to have enums in value ... |
0 | Getting objects within a certain distance from another object? | 5538435 | AwsomeSpongebob | 350 | 2015-10-20 23:25:28 | <p>So I've nearly torn the wiki apart (metaphorically) trying to find a way to do this. What I want to do is get/define all the parts within a certain distance from another part, and use them in a variable. I have the code all worked out, problem is how do I select those parts? CFrame? Method I might not know of? Math?... | 23714 | ||||||||
0 | HTTP 409 error when trying to insert model? | 54927707 | DutchRailwaysLover | 0 | 2020-08-25 01:18:57 | <p>Hello everyone.
I have recently been trying to take on trying to fix all the gear in Roblox, but when I got up to the Turkey Friend, things went horribly wrong.
The Turkey Friend requires that a model must be loaded from the Roblox library.
However, when I join the game, I get a HTTP 409 (Conflict) error.
The output... | 112096 | ||||||||
2 | How do you calculate the max hight of a particle from a particle emmiter with drag? | 365574496 | esepek | 103 | 2021-04-05 17:02:35 | <p>Since Particles are basically just 2d objects they dont really have a position in 3d space that you could get (at least thats what I know, correct me if I am wrong).
I am trying to calculate the maximum hight of a particle just from the predefined values that are given. These are Drag,the Time and the Velocity when ... | 122041 | ||||||||
0 | How would I be able to make people play as a custom character with their own avatar's clothes? | 364050765 | Shedflesky | 5 | 2020-12-10 21:36:57 | <p>I have tried a ton of things and none of them work.</p>
| 117036 | ||||||||
0 | how can i make more triggers? | 1634275512 | leoonardo101max1 | 0 | 2022-06-20 11:17:24 | <p>i was making a trigger that spawns the slenderman so i made that when you touch it, it deletes the trigger and then, it waits for some seconds and then the script spawns another trigger from the replicated storage, but the script dosent work whit the new trigger, it only works whit the first one and then it dosent w... | 130418 | ||||||||
0 | How do I detect If a key is pressed while another key is being held down? | 90871349 | riverroger | 0 | 2022-04-30 22:57:53 | <p>I'm trying to make a slide ability that is activated when you press LeftAlt while holding W, but I'm stumped and I can't find any solution.</p>
| 129872 | ||||||||
0 | How do I make a curtain open and close with one button with debounce? | 124963457 | kanchoplets | 71 | 2019-06-12 06:01:41 | <p>Yet again, still making my border game, but this time its like a scanning feature.</p>
<p><em>You press the scan button</em>
<em>The curtain closes</em>
<em>You wait 4 seconds.</em>
<em>The curtain opens.</em></p>
<p>Heres my script, I attempted it myself, but it broke the whole script, so it doesnt make me say anyt... | 81599 | ||||||||
0 | I need BodyPosition help | 34082258 | Lineout | 10 | 2014-03-01 18:21:38 | <p>Ok so here is my code:</p>
<pre class='brush: lua'>hoverPart.BodyPosition.position = workspace.Slayer.Pos.CFrame.lookVector + Vector3.new(speed, workspace.Slayer.HoverHeight.Value, speed)
</pre>
<p>So, this is not working for me. I want it so it will move the hoverPart, toward its look vector + speed(speed = 2) sp i... | 397 | 1 | 2805 | 0 | 4237805 | mark1516 | 25 | 2014-04-16 10:38:40 | <pre class='brush: lua'>while wait() do
hoverPart.BodyPosition.position = hoverPart.CFrame.lookVector * 2
end
</pre>
<p>that will move hoverPart forward in a loop. make sure you set the P,D and maxForce property for more control of the BodyPosition personally i would set maxForce to Vector3.new(math.huge,math.huge,math... |
1 | Scripts inside starterpack disappear after player dies. How can I prevent this? | 154326189 | XxWingKing | 96 | 2020-09-10 23:05:27 | <p>I'm currently trying to load in a player's powers by cloning them from serverstorage to the player's backpack. It works, but when the player dies they disappear. How can I fix this?</p>
| 113001 | 2 | 103728 | 1 | 336467162 | TribotGamerGX | 169 | 2020-09-10 23:06:39 | <p>Put it in the player starterpack. You prob only put it in the player backpack.</p>
|
0 | My Elevator Script does not work :/ can anybody see whats the problem? | 32730446 | DesiredToResign | 10 | 2019-11-11 18:35:51 | <p>This script does not work , can anyone see if there is a problem?</p>
<pre class='brush: lua'>local part = script.Parent
local tweenservice = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(2,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
local Up = {CFrame = part.CFrame + part.CFrame.Po... | 89910 | 1 | 83359 | 0 | 754480402 | sleazel | 1282 | 2019-11-11 18:47:40 | <p>To move parts correctly using CFrames, please use Vector3.new.</p>
<pre class='brush: lua'>local part = script.Parent
local tweenservice = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(2,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
local Up = {CFrame = part.CFrame + Vector3.new(0,1.2... |
0 | I keep getting this: string expected, got Object, anybody know why? | 119226470 | AlphaGamer150 | 101 | 2017-05-10 16:49:52 | <p>Upon running my script it is not getting the players (obtained using <code>game.Players.LocalPlayer</code> name properly!</p>
<p>Here is the code:</p>
<pre class="brush: lua">wait()
local PlayerName = game.Players.LocalPlayer -- Get the player's name.
local HealthBar = script.Parent.Side.Health.Bar -- GUI health bar... | 42799 | ||||||||
2 | Local Script to Module Script | 13071393 | Wildstorm1 | 10 | 2014-03-12 00:27:12 | <p>So in my game i'm trying to use a Local Script in a tool to access a function in a Module script. However, no matter what I try, the Local Script just wont work.</p>
<p>More Explanation.</p>
<p>The below local script is found in a tool. Without the Module requirement, the script will run just fine, except that it wi... | 642 | ||||||||
0 | WHY does this seemingly illogical error happen? | 193694100 | dispeller | 200 | 2018-03-16 19:19:59 | <p>So I have this module, and whenever I try to call this function:</p>
<p>(around line 22)</p>
<pre class="brush: lua">-- Read data function
function PlayerStatManager:GetData(player, statName)
warn("DATA : ",unpack(sessionData))
return sessionData[player.Name][statName]
end
</pre>
<p>it gives me this error:<... | 55159 | ||||||||
2 | Free Mouse in First-Person? | 151702995 | RealTinCan | 217 | 2019-12-30 05:24:29 | <p>So I am trying to <em>free</em> the clients mouse in <strong>first-person</strong> when they open their <code>InventoryGUI Menu</code>. Is there anyway to unlock the clients mouse while keeping them in first-person when they open the InventoryGUI?</p>
| 92197 | 2 | 85370 | 3 | 919872974 | RoButCantBlox | 68 | 2019-12-30 16:02:37 | <p>You can use <code>UserInputType</code>s <strong>MouseBehavior</strong> which can be set to</p>
<pre class="brush: lua">Enum.MouseBehavior.LockCenter
Enum.MouseBehavior.Default
</pre>
|
0 | Some questions on a gun aim script? | 822264695 | adexter_ya | 0 | 2021-04-04 22:57:27 | <p>How can I make it where If hold onto the right click i aim with a shift lock type shoulder view and when I let go it goes back to normal, If anybody could help me with this it will be appreciated as I am a little confused.</p>
| 122018 | ||||||||
1 | transparency in part wont change when clicked? | 55885613 | mohamedeatpotatoes | 67 | 2018-04-19 14:14:01 | <p>pls help me again i added a click to transparency change my part but it not working whats weird about it its theres no error output it just wont work idk why this is frustrating pls heelp</p>
<pre class='brush: lua'>part = game.Workspace.skate
transparency = part.Transparency
clickdetector = part.ClickDetector
click... | 57079 | ||||||||
0 | Help with detecting which direction the player is moving? | 123585026 | NykoVania | 198 | 2022-11-12 20:54:39 | <p>I want to detect which direction the player is moving, but only the Z axis works, which detects forwards and backwards movement.</p>
<p><strong>Script:</strong></p>
<pre class='brush: lua'>local Player = game.Players.LocalPlayer
local Char = Player.Character
local Humanoid = Char:WaitForChild("Humanoid")
local HumRP... | 132255 | ||||||||
0 | Making part rotate with camera? | 36818362 | chook100 | 48 | 2022-11-22 07:28:17 | <p>Currently, the part spins wildly, even setting math.deg(camY) to a constant number makes it spin crazy. This causes the park to just do donuts. What I want the part to move (only on a 2D plane, it should not go up/down) in the direction that the camera is facing. For example if the camera is pointing top-down, the p... | 132340 | ||||||||
0 | I am wondering if this is the right code for a ingame notifier? | 38233113 | AverageHackerman | 0 | 2015-01-09 02:27:26 | <p>I am making a ingame item notifier and I am wondering if this is the right http code?</p>
<pre class="brush: lua">Http = game:GetService"HttpService"
while wait(1) do
DataTaken = Http:GetAsync("http://roproxy.tk/catalog/json?Subcategory=17&SortType=3&IncludeNotForSale=true&ResultsPerPage=3")
Data... | 14095 | ||||||||
0 | Why do I keep getting the error "<eof> expected near end"? | 112159981 | AltLaserthrasher1 | 13 | 2017-02-11 06:01:24 | <pre class='brush: lua'>Mouse.KeyDown:connect(function(key)
if key == "q" then
if game.Players.LocalPlayer.leaderstats.Level.Value == 1 then
if Banana == 1 then
game.Players.LocalPlayer.leaderstats.Exp.Value = game.Players.LocalPlayer.leaderstats.Exp.Value + 10
... | 39981 | 2 | 42122 | 0 | 109383927 | Async_io | 908 | 2017-02-11 06:07:35 | <p>You're using an extra end and using a connect function, which requires an ending <code>)</code></p>
<p>If you use a normal function, you don't have to use the <code>)</code>; however, if you use it in a connect function, you need to have a <code>)</code> on the end. I.e <code>end)</code>.</p>
<p>Sorry if I made that... |
0 | Can anyone help me with my RPG-7, I need the missile to point where the mouse Is (?) | 1961959172 | imnotaguest1121 | 294 | 2022-10-30 17:55:18 | <p>As the title says, I am trying to make the RPG-7 missile to follow where the mouse Is, the problem Is that the missile always goes down</p>
<p>Script:</p>
<pre class='brush: lua'>local tool = script.Parent
tool.Fire.OnServerEvent:Connect(function(player,mousePos)
local raycastParams = RaycastParams:new()
ray... | 132087 | ||||||||
1 | Is it possible for a Part to have an outline? | 62315656 | rochel89 | 42 | 2018-11-17 09:17:53 | <p>Is it possible for a Part to have an outline?If so,how?</p>
| 70676 | 3 | 67278 | 2 | 67723826 | farizarps | 132 | 2018-11-17 09:28:56 | <p>Parts can be outlined using Roblox's <a target="_blank" href="https://developer.roblox.com/api-reference/class/SelectionBox">Selection Box</a> object.</p>
<p>Create a new SelectionBox.
Set its Adornee property to the part that you want to outline
You can change the color, transparency and line thickness of the outli... |
1 | Locking the mouse at one point | 6795437 | ChosenDreamer | 5 | 2014-02-18 02:48:02 | <p>I have a third person camera, and it currently locks the player from zooming in or out, and it also makes the
person follow where the mouse is going.
What i need now is to make the mouse lock at one position on the screen.
How would i start ?
Here is the Cam script</p>
<pre class="brush: lua">local abs = math.abs
lo... | 55 | ||||||||
1 | Why does Roblox Studio crash when I enable HTTP services? | 103466946 | kimbriel | 19 | 2020-08-27 22:40:02 | <p>^^^^^^^title^^^^^^^^^</p>
| 112254 | ||||||||
0 | [SOLVED] How do I get the position left/right to the lookVector of a player's HumanoidRootPart? | 114964274 | Rogue_Ram | 40 | 2022-08-05 01:59:01 | <p>Right now I'm using this:</p>
<p><code>local pos = owner.HumanoidRootPart.CFrame + (owner.HumanoidRootPart.CFrame.lookVector * -6)</code>
to get the position behind the player using the lookVector of the HumanoidRootPart.</p>
<p>I am trying to figure out how I would get the right or left of the lookVector too</p>
| 131104 | ||||||||
0 | How can I make the part move where the player Is facing? | 1961959172 | imnotaguest1121 | 186 | 2022-08-03 13:59:58 | <p>Hello Developers!</p>
<p>I made a tool Inside of an NPC (Or Morph) that when activated summons a hand that currently does nothing besides moving but soon will grab on a victim they touched and smash them Into the ground, Currently, I rotated the hand so that way the hand Is not upside down, however It will move In t... | 131081 | ||||||||
0 | Module Script keeps crashing? Thanks for the help. | 17509109 | harvest109 | 0 | 2015-02-03 12:13:39 | <p>Module Script (In workspace)</p>
<pre class='brush: lua'>local DataSave = {}
--wait()
--game:WaitForChild("ServerStorage")
----game:WaitForChild("DataStoreService")
game:GetService("DataStoreService")
local SafeStore = game.ServerStorage:FindFirstChild("PlayersData")
local mouse = game.Players.LocalPlayer:GetMouse()... | 14715 | ||||||||
0 | The player can say a spell and keep using the same key to fire the event, how may i stop this? | 186218839 | EliteForce1420 | 0 | 2020-11-22 03:29:13 | <p>Hi!
Thank you for taking the time to help me.</p>
<p>So my issue today is that I want to create a spell, so when a player says a certain string of words the right key is pressed, and if the mouse position is on another player then it should fire a remote event to push a player or other spell types appropriate to my ... | 116140 | ||||||||
0 | How to unanchor a model from a script AFTER a specific time? | 721604356 | MarkusMape | 22 | 2018-08-20 11:28:11 | <p>Hi, i have been looking for hours how to do it but couldn't find anything. Does anyone know how to unanchor a model from a script AFTER a specific time? Lets say if map (Model) named (Map1) spawns in, then after 5 seconds the whole map will unanchor.</p>
<p>Map changing script</p>
<pre class='brush: lua'>while true ... | 65862 | 2 | 63654 | 0 | 4691581 | hellmatic | 1523 | 2018-08-20 17:59:33 | <p>You can use GetDescendants() instead of GetChildren(). The difference is that GetDescendants() gets ALL of the contents (including other models inside the model) while GetChildren() only gets the model's contents you assigned to (only gets children to one model).</p>
<pre class='brush: lua'>wait(5)
local Descendants... |
0 | Expected identifier when parsing got 'then' I've also tried removing ends and adding ends? | 183699517 | Coolmansunsh | 17 | 2021-07-16 17:44:49 | <p>if not then
print("Spawnpoints not found!")
end</p>
<pre class="brush: lua">local AvailableSpawnPoints = SpawnPoints:GetChildren()
for i, player in pairs (plrs) do
if player then
character = player.Character
if character then
-- Teleport them
character:FindFirstChild("Huma... | 125377 | 1 | 114154 | 0 | 85341864 | JustinWe12 | 714 | 2021-07-17 20:52:29 | <p>You have to specify what it is "not" suppose to be or it will error.</p>
|
1 | How should I go about making a round system? | 34716028 | cmgtotalyawesome | 1418 | 2019-07-05 17:03:37 | <p>I've been trying to make some games that have a working round system in it. For the simple games that I tried to make, it worked perfectly. However, when I got into the more complex games with multiple different ways that the round could end, I didn't know what to use for a round system. When I say "what to use" I m... | 83024 | 1 | 77189 | 1 | 91078963 | Mr_Unlucky | 1085 | 2019-07-05 18:09:03 | <p>Hi! As I'm currently making a round based game, I'll give you a brief rundown on my way of creating round-based games.</p>
<p>I create several functions, one for the intermission, one for choosing the round, and another for teleporting the players and such. However, for multiple gamemodes I usually use module script... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.