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 can i give people clothes if they are on a certain team and only when a round began? | 1908439866 | momgggbghghghghg | 50 | 2021-06-07 23:14:44 | <p>im making an scp game</p>
| 124184 | 2 | 113199 | 1 | 107017283 | Cirillix | 68 | 2021-06-08 03:42:32 | <p>Just add that when the round starts</p>
<pre class='brush: lua'>for i,v in pairs(game.Players:GetPlayers()) do
if v.Team == game.Teams.Team1 then --First team
if v.Character:FindFirstChild("Shirt") then
v.Character:FindFirstChild("Shirt").ShirtTemplate = "" -- shirt asset id
... |
1 | How do I fix the "attempt to index nil with 'FindFirstChild'" Problem? | 644265093 | Dev443322 | 59 | 2021-02-02 03:37:46 | <p>I tried to make a part with a click detector inside. I also made the character name which is like this:</p>
<pre class='brush: lua'>script.Parent.ClickDetector.MouseClick:Connect(function(characterName)
</pre>
<p>Then, I made the local character like this:</p>
<pre class='brush: lua'>local character = workspace:Find... | 119511 | 2 | 109101 | 1 | 160399649 | genilsonotavio | 132 | 2021-02-02 03:55:40 | <p>This happened because when the Click Detector is activated, it does not send the name of the player who activated it, but its data, it sends the player in full.</p>
<p>So when you use FindFirstChild, you get this error because it cannot search for it in Workspace, because we are not talking about a name, but an enti... |
0 | How can I check whether a player is looking at a part? | 71739181 | Noonekirby | 162 | 2019-02-04 21:15:25 | <p>I want to make a Weeping Angel-Like monster, but I do not know where to start.
I've seen this post:
https://scriptinghelpers.org/questions/25213/how-can-i-create-mechanics-similar-to-dont-blink
which has this code:</p>
<pre class='brush: lua'> local camera = game.Workspace.CurrentCamera
local worldPosition = ... | 75732 | 2 | 71162 | 1 | 181320025 | Aniline_Purple | 266 | 2019-02-05 03:28:27 | <p>Alright, let's start with this:</p>
<pre class="brush: lua">local offset, onScreen = Camera:WorldToScreenPoint(point)
</pre>
<p>This is a function that returns:</p>
<ol>
<li><code>offset</code>, which is a Vector3 describing how far <code>point</code> is from the camera screen, and </li>
<li><code>onScreen</code>, w... |
0 | How to find position of an item in table? | 48081915 | AdministratorReece | 194 | 2018-05-04 03:13:45 | <p>Hey there.</p>
<p>Trying to scroll through table 'F' in my script</p>
<pre class='brush: lua'>local E = A:WaitForChild('C'):WaitForChild('H')
local F = {"your","my","we","yeet",}
for x123,x124 in pairs(F) do
if E.Text == x124 then
E.Text = F[x123 + 1]
end
end
</pre>
<p>I plan to put this in a repeat ... | 57906 | 2 | 56548 | 1 | 205083914 | MooMooThalahlah | 421 | 2018-05-04 04:32:50 | <p>You're not wrong. It's printing as expected. Also, I'm using ipairs because your order when going through the table might be different than mine. With ipairs it'll iterate in order.</p>
<p>You're already finding the positions of items in the table with <code>x123</code></p>
<pre class='brush: lua'>local E = "your"
l... |
0 | Hammer won't appear when the 3 minute timer is finished? | 1073917569 | Puppy_lovertheawsome | 84 | 2023-03-01 06:32:43 | <p>I'm having trouble getting this script to work, I need it to wait <strong>3 minutes</strong> then it will show up and give the player the chance to <strong>click it</strong>. When it is clicked, <strong>it shouldn't be able to be clicked again</strong> and instead wait 3 minutes again, <strong>this will also give a ... | 133133 | 1 | 120222 | 1 | 165500987 | allybally12345 | 40 | 2023-03-01 14:46:29 | <p>i notice a few issues with your code, try this</p>
<pre class="brush: lua">local part = script.Parent
local BadgeService = game:GetService("BadgeService")
task.delay(180, function()
part.Transparency = 0
end)
--now for the clicking function
part.ClickDetector.MouseClick:Connect(function(player)
if part.Trans... |
0 | How far Can a Sound Travel When Placed in a Part? | 17390348 | legodudeZU | 5 | 2014-04-15 06:39:14 | <p>I need to know, when all properties of the Sound and SoundService are at default, what is the radius of the area from which you can hear it being played, or any undocumented features that can tell that? Once this is known, I can figure out anything else to know how far away my AI should be able to hear gunshots.</p>... | 1546 | ||||||||
1 | Attempt to index nil with 'InputBegan'? | 689608604 | Abacus300 | 7 | 2020-12-05 01:20:47 | <p>So, I am trying to code some script that i forgot i had a long time ago and I keep on getting the error: "Workspace.InfOHac.fur:1486: attempt to index nil with 'InputBegan'". and it is annoying me a lot, my code is</p>
<pre class='brush: lua'>UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function(... | 116756 | ||||||||
0 | Why is the part following my character so buggy? | 984384728 | RebornedSnoop | 170 | 2020-08-01 11:14:50 | <p>http://www.youtube.com/watch?v=khtrpm1F94s</p>
<p>The video ^</p>
<p>What I mean by buggy is that the ball is like kinda glitchy. Sorry I dont know what word to use for it but please watch the video so you get what I mean. Help would be appreciated , Thanks!</p>
| 110457 | 1 | 101519 | 1 | 60076245 | kaytikookie | 45 | 2020-08-02 07:30:08 | <p>im assuming this is server-sided.</p>
<p>from the video you posted, the ball seems to be lagging a little, most likely you are using a wait-based loop ("while true do" and such).
the best thing i would do is put a BodyPosition in the sphere and just keep setting the Position property of the BodyPosition to the posit... |
0 | How would I turn the added child into a variable, with .ChildAdded? | 490346166 | A_Mp5 | 222 | 2021-01-29 00:28:58 | <p>I need help making a script, that when a child/descendant is added to workspace, it goes in a function, and the child is a variable.</p>
<p>That's it.</p>
| 119320 | 1 | 108957 | 1 | 78280248 | Wayyllon | 170 | 2021-01-29 01:53:37 | <p>This should be what you're looking for.</p>
<pre class="brush: lua">function DoWhatever(Child)
if Child....... then
end
end
game.Workspace.ChildAdded:Connect(function(Child)
DoWhatever(Child)
end)
</pre>
<p>Helpful Links:</p>
<p>https://developer.roblox.com/en-us/api-reference/event/Instance/ChildAdded</... |
0 | How do I make a gui button that clears your inventory, I've tried so much? | 297422471 | lpyrite | 4 | 2022-03-12 04:05:28 | <p>Please be more describing, I'm quite new to lua/</p>
| 129272 | 1 | 116932 | 0 | 1122312651 | totosimamora608 | 61 | 2022-03-12 06:05:18 | <p>Put this inside your button:</p>
<pre class='brush: lua'>local Button = script.Parent
Button.MouseButton1Down:Connect(function() -- Detect when the player click the button
game.ReplicatedStorage.ClearInventory:FireServer()
end)
</pre>
<p>now create a new RemoteEvent in ReplicatedStorage and name it "ClearInventor... |
0 | How do I use PromptGamePassPurchaseFinished? | 129874072 | Oficcer_F | 207 | 2018-09-26 14:59:04 | <p>I am making a GUI when you buy it you get the tool. But how do I use it?</p>
| 67977 | 1 | 65203 | 1 | 2441841 | nick540 | 20 | 2018-09-26 15:16:14 | <p><code>PromptGamePassPurchaseFinished</code> is event, so use it like you would use any other event. Just read the documentation for the parameters provided when the event fires. <a target="_blank" href="https://www.robloxdev.com/api-reference/event/MarketplaceService/PromptGamePassPurchaseFinished">https://www.roblo... |
0 | How come game.Players.PlayerAdded doesn't work in my script? | 31617790 | Novaulis | 15 | 2015-12-20 06:56:39 | <p>What I'm trying to do is make a gui that'll display the value of a NumberValue in ServerStorage, and since they're on the client and the other's on the server respectively, I need to do some fancy things with RemoteFunctions to make it work. I got some code from the wiki and spliced it together with what I need, and... | 25388 | 3 | 28959 | 0 | 2966752 | Validark | 1580 | 2015-12-20 07:23:07 | <p>You were misusing FireClient. First of all, you didn't properly identify which RemoteEvent you wanted to fire. Secondly, you didn't tell the script **which ** client it needs to Fire. Try the following:</p>
<pre class="brush: lua">game.Players.PlayerAdded:connect(function(player)
local event = Instance.new("Remo... |
0 | why can I pick up the wood with any keycode when I just want it to be the keycode F? | 476698948 | xxaxxaz | 38 | 2021-06-08 16:54:05 | <p>I was following a tutorial but I changed some things so it is usable on mobile, so then players can click the wood to to pick it up, it works perfectly exept that it can get picked up with any keycode instead of just the keycode F.</p>
<pre class='brush: lua'>local UIS = game:GetService("UserInputService")
local Rep... | 124200 | ||||||||
1 | Game not reading IntValue Correctly? | 33666987 | XDgirl909090 | 150 | 2020-03-28 15:08:08 | <p>Hello!
I've been struggling with a bigger problem inside of my game for a bit now, and I finally found the problem. However, I'm not sure how to fix it.</p>
<p>When a player joins, a folder is created inside them (in addition to leaderstats, they are siblings) and there is an intvalue inside of that. Every time I pr... | 97334 | 1 | 89901 | 0 | 190374931 | Gingerely | 245 | 2020-03-28 15:21:13 | <p>Hi! I know the answer. The variable spent is a constant. To fix this, all you have to do it delete the value in "local spent".</p>
<pre class='brush: lua'>local Spent = Players[i].folder.spent
print("Spent "..Spent.Value)
</pre>
<p>Because when you just do local Spent = Players[i].folder.spent.Value , that is a cons... |
0 | Text Button Not Doing The Click Event When I Click It? | 353632707 | SuperSM1 | 67 | 2021-08-03 01:04:24 | <p>I'm clicking my text button but it's not doing anything</p>
<pre class='brush: lua'>LeaveButton.MouseButton1Click:Connect(function(Leaving)
local BackToSpawn = CFrame.new(game.Workspace.GameSpace.BackToSpawnA.Position)
HRP.CFrame = BackToSpawn
end)
</pre>
<p>someone plz help its almost been over half a day s... | 126003 | ||||||||
0 | How to work with multiple textlabels and usernames? | 623147872 | bxshh | 0 | 2021-04-06 05:03:36 | <p>Currently I am working on a agent team select menu, and for this part I want the users name to be displayed on the left, as seen in the screenshot below.
https://i.imgur.com/ryVmriQ.png</p>
<p>If you look at the screenshot below, I have 5 text labels. This is how I plan to list the usernames of each individual in th... | 122058 | ||||||||
0 | DataStoreService on Leaderboards? | 25691148 | FromLegoUniverse | 264 | 2014-03-02 05:28:15 | <p>I am making an RPG for my friend, but I need help with leaderstats. Is there any way to save/load leaderstats of every player using the DataStoreService? I need it to work between places in a universe, so let me know of other ways. I know :SaveNumber() and :LoadNumber() are not shared between places after tests I di... | 430 | ||||||||
0 | I'm making a super smash bros game but something isn't right. How to fix it? | 1432132925 | Dadeyom | 0 | 2023-01-14 14:57:04 | <p>I'm adding the combat/knockback system.
I made this script:
function punched()
script.Parent.Parent:WaitForChild("RightHand").Touched:Connect(function(hit)
if hit.Parent.Humanoid ~= nil then
local vf = Instance.new("VectorForce")
local at = Instance.new("Attachment")
vf.Parent = hit.Parent:WaitForChild("HumanoidRoot... | 132831 | ||||||||
0 | I write a working function but I rewrite it but with different gui and it wont work? | 22464995 | ILikepie2100 | 20 | 2014-12-18 14:31:28 | <p>Ok so I have this. And MarioLogo and NintendoToSega wont dissapear.</p>
<p>wait(1)
player = game.Players.LocalPlayer
button = script.Parent</p>
<p>function teleportToArena()
torso = player.Character.Torso
torso.CFrame = game.Workspace.MarioTP.CFrame
end</p>
<p>button.MouseButton1Click:connect(teleportToArena)</p>
<p... | 13387 | ||||||||
1 | Equipped and unequipped tool function working correctly? | 321147068 | iiFloxy | 9 | 2022-11-14 19:05:42 | <p>I only want to player to play an animation when a tool in the backpack is equipped, but the animation does not play even when the tool is equipped. The script knows the tool is equipped as it prints true and false, but the animation still does not play. Code here:</p>
<pre class='brush: lua'>local real = false
scrip... | 132279 | 2 | 119475 | 0 | 1929477313 | Kingu_Criminal | 170 | 2022-11-15 17:43:28 | <p>I rewrote your script to make it more organized...
Don't put your variables inside connections unless you need to rewrite them</p>
<p>It should work now, if it doesn't that means that the animation has no ID</p>
<pre class='brush: lua'>--VARIABLES--
local LocalPlayer = game:GetService("Players").LocalPlayer
local Co... |
2 | Prevent a Connect function from running several times? | 198719522 | MageMasterHD | 256 | 2018-10-30 22:45:28 | <pre class='brush: lua'>wait ()
while true do
wait ()
script.Parent.InputBox.InputEnded:Connect(function ()
print (script.Parent.InputBox.Text)
script.Parent.InputBox.Text = ""
end)
end
</pre>
<p>How whould you prevent this script from running 200 times?</p>
| 69771 | 2 | 66653 | 3 | 156586483 | Leamir | 2963 | 2018-10-30 22:49:21 | <p>Hello, MageMasterHD!</p>
<p>To make that, do the following:</p>
<p>1 - Remove the While Loop</p>
<p>2 - Add <a target="_blank" href="https://www.robloxdev.com/articles/Debounce">debounce</a></p>
<p>Edited Script</p>
<pre class='brush: lua'>wait ()
local deb = false --Debounce variable
script.Parent.InputBox.InputEnd... |
0 | how to make a part spawn where the player is looking? | 1865523181 | pakancina | 19 | 2023-01-30 20:42:57 | <p>i have this script that lets me spawn balls on E</p>
<pre class="brush: lua">Tear = game.ReplicatedStorage.tear
local plr = game.Players.LocalPlayer
UserInput = game:GetService("UserInputService")
UserInput.InputBegan:Connect(function(input , gameProccesedevent)
if input.KeyCode == Enum.KeyCode.E then
lo... | 132978 | ||||||||
0 | Trying to do stuff with leaderstats, but...? | 1392117113 | Hgamerpro50 | 0 | 2023-03-29 22:00:13 | <p>Ok, so... I'm trying to make a system to make that when the player has triggered a prompt, it will add some points to the player and show up in the leaderstats, but... for some reason doesn't work... please help me... I would thank the person who help me with this stuff.</p>
<p>The prompt local script:</p>
<pre clas... | 133249 | ||||||||
1 | How do I I make this script with the "touchended" work? | 25568705 | guestnot99 | 112 | 2018-04-28 11:15:46 | <p>I have the following script here, where there is a basepart "Push"</p>
<pre class='brush: lua'>ts = game:GetService("TweenService")
ti = TweenInfo.new(3)
push = script.Parent.Parent.push
weighted = {}
weighted.CFrame = script.Parent.Parent.push.CFrame+Vector3.new(0,10,0)
left = {}
left.CFrame = script.Parent.Parent.... | 57557 | ||||||||
1 | How to put a block to the sides of other blocks? | 964670520 | IgromanEXE | 9 | 2023-03-11 15:53:51 | <p>Hello!</p>
<p>I want to make a build tool to build anything. Basically, my tool works well... However, the blocks that I want to put doesn't appear on the sides of other blocks. Exactly, when I hover the mouse, for example, on the side of a pillar, then when I press the left mouse button, the block appears on pillar... | 133178 | ||||||||
1 | Script killing player on DialogChoice doesnt work [?] | 524832183 | nikitos54327 | 70 | 2023-02-27 18:34:13 | <p>Hey guys!
Actually made a script for my game which kills the player if the dialog choice but it seems to have an error
Here's it by the way</p>
<pre class='brush: lua'>local dialog = script.Parent--Or whatever the path is
dialog.DialogChoiceSelected:connect(function(player, choice) --This is getting the service when... | 133129 | 1 | 120218 | 2 | 1073917569 | Puppy_lovertheawsome | 84 | 2023-02-28 06:40:02 | <p>Try doing instead of game.Players.LocalPlayer.Blah blah blah do <strong>player.Character.Humanoid.Health</strong> = 0. Hope this helps</p>
|
0 | How to make Script that when it ends it restarts ? | 16504446 | alaingomez100 | 0 | 2015-04-09 03:16:06 | <p>How to make a script that restarts after it reaches the end ?</p>
| 16520 | ||||||||
0 | How to reverse GetPlayerFromCharacter? | 15288675 | emite1000 | 335 | 2014-06-14 17:40:05 | <p>The method GetPlayerFromCharacter is used to find the Player associated with a certain character, but I want to do the opposite of that and find a Character associated with a certain Player. How would I do that? Is there a method for it?</p>
| 6667 | 1 | 8803 | 1 | 12014954 | Tempestatem | 884 | 2014-06-14 17:43:00 | <pre class='brush: lua'>player.Character
</pre>
|
0 | how to fix dialogue gui?? it works with only chars in workspace but not with players... | 1959249435 | moneyislands1 | 26 | 2021-04-06 10:40:21 | <p>this is script in gui</p>
<pre class='brush: lua'>local StarterGui = game:GetService("StarterGui")
local createDialogueEvent = game.ReplicatedStorage.Remotes.createDialogueEvent
local hideDialogueEvent = game.ReplicatedStorage.Remotes.hideDialogueEvent
local setDialogueImageEvent = game.ReplicatedStorage.Remotes.set... | 122066 | ||||||||
0 | How can I fix up my script so it works in the actual game and not just in roblox studio? | 67015061 | ErskinePierre | 48 | 2020-02-22 21:12:14 | <p>The script is supposed to make the part face the player, I tested it out in studio and it worked fine, but when I tested it ingame, the script doesnt work.</p>
<pre class='brush: lua'>function MakeRightSurfaceFace(Pos, LookAt)
local Up = Vector3.new(0,1,0);
local LookAtDirection = (LookAt - Pos).unit
if ... | 95040 | 1 | 87800 | 0 | 5816073 | AlmostADemon | 50 | 2020-02-22 22:53:10 | <p>The original code had an error where it couldn't find the character in the game, so I changed the way it looks for the character.</p>
<p>I made sure that it works in studio and in game since you originally had a problem with that.</p>
<p>Here is the code:</p>
<pre class='brush: lua'>function MakeRightSurfaceFace(Pos... |
5 | Explanation of ":connect" please? | 59981683 | sFrosty04 | 30 | 2014-04-30 07:26:52 | <p>Could someone explain to me what ":connect" is? Scripting tutorial I found doesn't really explain it too much at all.</p>
| 3980 | 3 | 5463 | 7 | 806698 | duckwit | 1404 | 2014-04-30 09:43:49 | <p>ROBLOX is an <a target="_blank" href="https://en.wikipedia.org/wiki/Event-driven_programming">event-driven</a> scripting environment. This means that it is possible to create new events and setup scripts to <em>listen</em> for other events - ROBLOX itself has a multitude of built-in events for each of it's <a target... |
0 | How should I master my scripting skill? | 724649033 | 7777ert | 7 | 2021-04-05 09:05:28 | <p>I’m kind of new to scripting. I have just finished TheDevKing’s advanced scripting tutorial. However, I still find myself not understanding most of the services, events, functions, etc. Therefore, I would like to know how I should master my scripting skill and how pro scripters learn to script.</p>
| 122028 | 3 | 111143 | 1 | 2043565453 | smidgesrev | 39 | 2021-04-05 10:58:55 | <p>Try to make small projects first, don't make big projects that you can't finish. try to incorporate what you learned from The dev kings tutorials into small projects or, Try taking commissions, you can use the dev forum or you can find a discord server that allows commissions and hiring. with this you will slowly le... |
0 | Quest Accepted script won't work? | 6038417 | generalsteve | 0 | 2015-02-03 20:15:28 | <pre class='brush: lua'>workspace.Dad.Head.Dialog.DialogChoiceSelected:connect(function(choice, player)
if choice.Name == "AcceptQuest" then
player.PlayerGui.Quests.FamilyJewel.Visible = true
end
end)
</pre>
<p>background info:
theres a Gui in StarterGui named Quests and inside that is a text box named ... | 14722 | ||||||||
1 | How do you enable third party teleportation? | 521332795 | charizardstar87 | 16 | 2021-05-07 20:38:07 | <p>I was making my game, and it teleports you to another game that I made when you click a button.</p>
<p>Here's my code:</p>
<pre class="brush: lua">script.Parent.gertname.MouseButton1Click:Connect(function(player)
local TPS = game:GetService("TeleportService")
TPS:Teleport(examplenumber, player)
end)
</pre>
<... | 123213 | 3 | 112298 | 0 | 1024248310 | MarcTheRubixQb | 153 | 2021-05-08 00:17:24 | <p>What that error is saying is that the game you are teleporting them to does not allow third-party teleports. If it is one of your games, then just open the game go to game settings>security>enable third party teleports.</p>
<p>Hope this helped!</p>
|
0 | Key to Show Menu and Change CameraMaxZoom? | 147234919 | KidMudasir7 | 15 | 2021-04-06 13:41:08 | <p>Hey I wanted to do a script which changes the CameraMaxZoom so it goes out. It is 0.5 at the start but at the menu its 128. I made a button to change it to 0.5 (at the start). The key makes it change to 128 but the problem is it still changes to 0.5. I would like to know what is the problem I have done. To just let ... | 122071 | ||||||||
0 | How do I fix Attempt to index nil with 'GetChildren'? | 371084325 | Cheesyple | 0 | 2023-01-07 00:28:32 | <p>Ive tried to put the <strong>Mobs folder</strong> inside of <strong>workspace</strong>, it will work but it totally ruins the game. I even set the <strong>Primary parts</strong> to what it is supposed to be set to but it doesn't work. The <strong>Mobs folder</strong> is inside <strong>ServerStorage</strong>.</p>
<p>... | 132774 | ||||||||
2 | I have multiple Sounds how to rename Sound in script?? | 433962773 | theking66hayday | 836 | 2022-10-16 15:15:32 | <p>Hi, I am having issues renaming sound in this script. I got a script in StarterCharacterScripts. The script puts a sound in the player's head. Issue i'm having is that I want multiple sounds, but I need to rename sound.
Script:</p>
<pre class='brush: lua'>local sound = Instance.new("Sound")
sound.SoundId = "rbxasset... | 131938 | 2 | 119157 | 2 | 1539955076 | Pedrougubtz | 90 | 2022-10-16 15:44:42 | <p>You can use <strong>sound.Name</strong> to change the name of the sound.</p>
<pre class='brush: lua'>local sound = Instance.new("Sound")
sound.Name = "Put the Name Here"
sound.SoundId = "rbxassetid://9064263922" -- Replace the numbers with your sound's asset ID.
sound.Parent = script.Parent:WaitForChild("Head")
</p... |
0 | Timer Things for different uses? | 42139522 | kapitanovaskapandr | 0 | 2014-04-30 18:01:48 | <p>I'm thinking of making multiple Timer things, and so that there would be a SurfaceGui and that the TextLabel's Text property would be equal to the Value in the Model called "Time" and then I would like say that every second that goes it takes away a second from the timer... I know that it's</p>
<pre class='brush: lu... | 3999 | ||||||||
0 | Part won't fall on touch? | 746093 | ethanw89 | 0 | 2014-02-26 00:50:42 | <p>Okay so I've tried SO MANY different scripts for this but nothing seems to work....</p>
<p>I want a part to fall when it is touched by another part (a ball to be exact; it is the bullet that is shot out of a gun, but it disappears after a few seconds). Anyway, for whatever reason the part refuses to fall when touche... | 301 | ||||||||
0 | How to temporary disable mouse camera movement? | 368080440 | VAnkata20 | 49 | 2022-06-19 16:16:29 | <p>I made a focus script but the camera has some kind of problem when I move the mouse.</p>
<p><a target="_blank" href="https://vimeo.com/721938495">Video:</a>https://vimeo.com/721938495</p>
<p>I am looking for a way to disable the mouse while the shift button is pressed but cant find seem to find a way</p>
| 130407 | ||||||||
0 | Can you help my text filtering error returning Instance? | 64291305 | uhTeddy | 101 | 2018-04-17 03:01:05 | <p>Hey, So I am trying to filter chat text for my custom chat. The message is returning back as "Instance" I have no idea why as no error is logged. Please help me.</p>
<pre class='brush: lua'>local ChatSent = game:GetService("ReplicatedStorage"):WaitForChild("Chat"):WaitForChild("ChatSent")
local RecieveChat = game:Ge... | 56983 | ||||||||
0 | I am trying to make a part only give a tool once when I touch it, can you help me with this error? | 95706501 | HimoutoUmaruDomaChan | 20 | 2017-12-24 22:56:01 | <p>But when I touch the part, it gives multiple of the same tool at once, can you help me with this?</p>
<p>Here is the script I used:</p>
<p>script.Parent.Touched:Connect(function(hit)</p>
<pre class="brush: lua">if hit.Parent.Humanoid then
plr = game.Players:GetPlayerFromCharacter(hit.Parent)
local gravity = game.Rep... | 50877 | ||||||||
0 | This size change script isnt working when the random number is 2? | 147305218 | PeterParker17386 | 16 | 2022-07-23 11:33:56 | <p>I am trying to make a script where something random happens. On the first part the game has a chance of making the baseplate ice and slippery but for the second part im trying to make it so the character increases in size but it does not seem to work. This is my script:</p>
<pre class='brush: lua'>local baseplate = ... | 130902 | ||||||||
0 | What software/website should a beginner use to learn/practice Lua coding? | 491803603 | robthepoop123 | 7 | 2020-05-15 17:00:01 | <p>Hi I am a beginner developer with no scripting knowledge whatsoever and I make obbys as a hobby. What should I use in order to enhance/practice my Lua knowledge? Please answer if you have any suggestions.</p>
| 103229 | 2 | 95299 | 1 | 33666987 | XDgirl909090 | 143 | 2020-05-15 17:03:28 | <p>Hi! This is what I have used to learn scripting.</p>
<p>1.) YouTube Tutorials (I like AlvinBlox and Ripperoni)
This is good especially if you're searching for a specific script</p>
<p>2.) https://developer.roblox.com/en-us/quick-start
This is good for helping your general understanding</p>
<p>3.) This website is alw... |
0 | How to load a function after GetAsync? | 109079013 | LoyalQuickAngel | 14 | 2021-04-07 06:19:59 | <p>Detailed explanation here. I created a character customization menu and i stored the data on Server Storage. And then i created a function to load those each time the character respawns, which is player.Character.CharacterAdded. It works. The thing is, this script runs before the getAsync could get any data from the... | 122100 | ||||||||
0 | How would i use buttons created in a for loop? | 588624505 | Tateboogle123 | 0 | 2020-08-01 14:23:19 | <p>here is the script i am working with</p>
<pre class='brush: lua'>local teamService = game:GetService("Teams")
local teamsTabel = {
"Mailman",
"Chef",
"GameDev",
"Jobless",
"Child",
"Store Clerk"
}
for i, v in pairs(teamsTabel) do
local newTeam = Instance.new("Team")
newTeam.TeamColor ... | 110471 | ||||||||
0 | How i can make a Sword Randomizer script? | 438845010 | Ariirael | 15 | 2020-08-30 21:51:52 | <p>i want randomize a sword when the player enter and if his Race value is "shinigami", the swords is all in a folder, so how can i randomize some of these swords and give it to the player if his race is shinigami?</p>
| 112427 | ||||||||
1 | Does a FloorWire object redirect actively during play? | 7163102 | iceman8k | 15 | 2014-03-14 14:02:56 | <p>Or does it only determine it's path when it's created? I was wondering, for if, for example, you are using a detonator for an IED in-game, and someone moves the detonator by way of pushing. I was planning to use one for aesthetic purposes.</p>
| 681 | ||||||||
0 | Moving a block up and down? | 5438409 | Rythian2277 | 65 | 2014-11-29 09:54:33 | <p>Ive been looking around the website & Roblox wiki but i cant find anything to my knowledge about moving a block up and down about 1 / 1 & a half studs</p>
<p>If anyone knows somewhere where this is explained can you link it, thanks!</p>
| 12844 | 2 | 15885 | 3 | 18697683 | ChipioIndustries | 454 | 2014-11-29 15:38:34 | <p><strong>For future reference:</strong> Please provide the sufficient material, code snippets you may have tried, any specific idea on what it should do, etc.</p>
<p>To accomplish this task, you must change the <code>Position</code> of the part using a <code>Vector3.new()</code>.</p>
<p>To use it in a loop, it would ... |
2 | [FE] Gun works when in StarterPack, but not when Cloned from ReplicatedStorage? | 190475375 | Never2Humble | 90 | 2017-12-04 20:23:27 | <p>Hello!
I got a gun that works when the tool is in the StarterPack, but not when its cloned from ReplicatedStorage to Backpack.</p>
<p>For reference, this is a slightly modified script from the one AlvinBloxx provides in his 3 hour tutorial - ( https://www.youtube.com/watch?v=acJu605JNQE&t=1s ).</p>
<p>I feel thi... | 49903 | ||||||||
5 | What is string.sub and how do you use it? | 14971205 | Yeevivor4 | 155 | 2015-03-17 23:57:19 | <p>Hi, thank you for reading. After doing some digging and trying to understand it from wiki, I'm still confused. Why? On Wiki.Roblox, it said:</p>
<p><strong>Returns the substring of s that starts at i and continues until j; i and j may be negative. If j is absent, then it is assumed to be equal to the length of s. In... | 15841 | 1 | 18982 | 10 | 13667373 | EzraNehemiah_TF2 | 3552 | 2015-03-18 00:07:01 | <p>string.sub, sub means substring or part-of-a-string. It's basically taking a string and cutting off a piece of it. e.g.</p>
<pre class="brush: lua">print("Hello") --Hello
print("Hello", 2) --Ello
</pre>
<hr/>
<p>In string.sub it looks like something like this:
<code>string.sub("String", 2,4)</code>. string.sub is yo... |
0 | Why doesn't it change BrickColor? | 32477251 | iSidersz | 59 | 2016-05-01 02:54:46 | <p>Says nothing in Output log.
Trying to change a Bunch of different parts colors.</p>
<pre class='brush: lua'>local Co1 = "Navy blue"
local Co2 = "Lily white"
for i,v in pairs() do
if v:IsA("Part") and v.Name = Color1 then
v.BrickColor = BrickColor.new = (Co1)
end
end
for i,v in pairs() do
if v:IsA("Part") and v.Name ... | 30161 | 3 | 33518 | 3 | 15619704 | NinjoOnline | 1147 | 2016-05-01 03:01:52 | <pre class='brush: lua'>local Co1 = "Navy blue"
local Co2 = "Lily white"
for i,v in pairs(game.Workspace:GetChildren()) do
if v:IsA("Part") and v.Name == "Color1" then
v.BrickColor == BrickColor.new(Co1)
end
end
for i,v in pairs(game.Workspace:GetChildren()) do
if v:IsA("Part") and v.Name == "Color2... |
0 | can someone explain me about parameters? | 800926308 | luxkatana | 0 | 2021-02-21 14:08:10 | <p>so when i was using function then i asked myself what parameters are
is it for function like the following code?
local function name()</p>
<p>print("function")</p>
<p>end</p>
<p>name()</p>
<p>-- what does that () means in local function name</p>
| 120461 | ||||||||
0 | how do i make the camera set to a Dummy's head? | 165331906 | IlLupoMannaro34 | 0 | 2021-02-02 20:30:22 | <p>so i'm making an animation, from a dummy POV (camera is set to dummy head). I'm not so experienced in scripting so i thought i would ask here.</p>
<p>how would i do that? i tried using cframe but it doesnt work.</p>
<pre class='brush: lua'>local camera = game.Workspace.CurrentCamera
local dum = workspace.Dummy.Head
... | 119542 | ||||||||
0 | I cant find a fix im trying to make a a textbox and when you put die you die? | 1288722259 | aged_force9yt | 0 | 2022-06-15 23:48:05 | <p>local textbox = game.StarterGui.ScreenGui.TextBox
local changed = textbox.Changed</p>
<p>changed:Connect(function()
textbox.Text = ("die") if then
script.Parent:Destroy()
end</p>
<p>end)</p>
| 130369 | ||||||||
0 | How do i check if a specific player presses a key? | 1919544428 | Cill_Roblox | 2 | 2022-06-23 21:40:01 | <p>as the title said, how do i check if a specific player presses a key?
Ive tried to do</p>
<pre class='brush: lua'>local cool = {"Cill_Roblox"}
local gui = script.Parent
game.Players.PlayerAdded:Connect(function(player)
if player.Name == cool then
if game:GetService("UserInputService"):IsKeyDown(Enum.KeyC... | 130483 | 1 | 117828 | 0 | 929847335 | TheDude646 | 49 | 2022-06-23 23:35:31 | <p>first of all, you need to make sure that the UserInputService part is in a local script as it's client-side only, second of all, try using the InputBegan event to toggle the gui instead of checking if a key is being held down.</p>
<p>example:</p>
<pre class='brush: lua'>gui = script.Parent
userInputService = game:Ge... |
0 | how do you read the steps the script is taking to run a piece of code? | 95639712 | proROBLOXkiller5 | 34 | 2021-04-08 15:06:55 | <p>so i went on a search to find out what is efficient coding and bascially the summary is less steps the code take to do something the better it will run</p>
<p>which i got another question. how do you know if its efficient code if you dont know how to read what steps the code is taking?</p>
<p>the only problem is i d... | 122147 | 1 | 111278 | 1 | 15098126 | climethestair | 1605 | 2021-04-08 18:39:34 | <p>The efficiency of your code is not always based on the "steps" it takes or the length of the code. It is about the actions are that contained within the operations you're using.</p>
<p>Here is a brief analysis of your code from my perspective, you should be analyzing your code in a similar way:</p>
<ol>
<li>Variable... |
3 | Bricks That Slow Movement While Inside Them [SOLVED] | 2669002 | Corogl | 0 | 2014-02-19 10:26:42 | <p>So I understand how to make a brick change your movespeed once you touch it, but once you are no longer touching said brick your speed returns does not change, so it is still modified. I am struggling with how to make it so that when you are touching/inside of a brick, you move slowly, 8, but as soon as you are no l... | 82 | 3 | 181 | 1 | 1546726 | nate890 | 495 | 2014-02-19 18:02:15 | <p>Something like this is what you're looking for I believe:</p>
<pre class="brush: lua">script.Parent.Touched:connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
humanoid.WalkSpeed = 10
script.Parent.TouchEnded:wait()
humanoid.WalkSpeed = 16
... |
1 | How to have text label update for all Player's Gui?? | 433962773 | theking66hayday | 841 | 2023-02-17 00:34:48 | <p>How can I update every one's player gui instead of only updating for 1 player's gui??</p>
<pre class="brush: lua">plr.PlayerGui.Warnui.TextLabel.Text = "U are cool"
</pre>
| 133081 | 1 | 120174 | 3 | 15438711 | pwx | 1581 | 2023-02-17 00:46:46 | <p>It's ideal that you use FireAllClients() with a RemoteEvent.</p>
<p>Put a RemoteEvent in ReplicatedStorage, be sure to name it whatever you want and edit the script accordingly.</p>
<p><strong>ServerScript</strong> - Be sure to put this in ServerScriptService</p>
<pre class="brush: lua">local replicatedStorage = gam... |
0 | im making a game where if you click three things a door opens and the script wont work. why? | 98600858 | cjkizzy286 | 24 | 2020-05-22 08:55:26 | <p>im making a game where if you click three things a door opens and the script wont work. ive found where the bug is and its that the if script wont work. anyway here is the code:</p>
<p>here is link
https://pastebin.com/gDtz43ew</p>
| 103962 | 1 | 95973 | 0 | 198719522 | MageMasterHD | 256 | 2020-05-22 09:21:06 | <p>This part is your problem:</p>
<pre class='brush: lua'>if book1 == 2 and leg1 == 2 and thing == 2 then
game.Workspace.Part1mo.Position = Vector3.new(120.312, 12.125, -19.625)
wait(5)
game.Workspace.Part1mo.Position = Vector3.new(120.312, 4.625, -19.625)
book1 = 1
leg1 = 1
thing = 1
end
</pre>... |
1 | How to make the game do something when a player leaves the game? | 19497313 | ExcelUp | 24 | 2018-06-21 13:00:38 | <p>I want to have the game do something when the player leaves the game. I've done some research and found PlayerRemoved, but I've never used the function before, and when I attemped to use it, nothing really happened at all when a player left. Could someone please help me out?</p>
<pre class="brush: lua">local event =... | 60837 | 4 | 59177 | 2 | 551879230 | Ribasu | 127 | 2018-06-21 13:08:58 | <p>There is an event called <code>PlayerRemoving</code> which is triggered exactly before the player is about to leave. So you can use it to save a user's state before he leaves as an example. I have improved this code from the wiki on <a target="_blank" href="http://wiki.roblox.com/index.php?title=API:Class/Players/Pl... |
0 | How do I make clickable part? | 50906408 | fattyfateric1 | 0 | 2014-12-09 16:05:58 | <p>I'm making an effect on this part as if it were being shatteed:</p>
<pre class='brush: lua'>function onClicked(Player)
script.Parent.Crack1.Visible=true
wait(0.4)
script.Parent.Crack2.Visible=true
wait(0.4)
script.Parent. Destroy()
wait(0.1)
Button=script.Parent.Parent.Parent.StarterGui.ScreenGui.Button1... | 13132 | ||||||||
0 | My gun script is working when I aim, but when I try to move camera while aiming, it doesent move??? | 1400234436 | KoalaKo_XD | 27 | 2021-06-06 18:44:17 | <p>I made a gun script, and when I right click to aim, it works fine, but it wont let me move my camera while im aiming.</p>
<p>Problem:
https://imgur.com/gallery/7MR5HR4</p>
<p>Script</p>
<pre class="brush: lua">local Gun = script.Parent.Parent.MusketTest
local AimPart = script.Parent.AimPart
local Main = script.Paren... | 124145 | ||||||||
0 | Animation (again) | 11019494 | JJ_B | 250 | 2014-03-04 21:57:21 | <p>I've finally smoothed out all the errors in my script to find that this still doesn't work! Can anyone help me?</p>
<pre class="brush: lua">local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/asset/?id=148381514"
game.Players.PlayerAdded:connect(function(player)
player.Chatte... | 491 | 1 | 815 | 1 | 4785454 | Everesty | 1006 | 2014-03-04 23:06:42 | <p>The <a target="_blank" href="http://wiki.roblox.com/index.php/LoadAnimation">LoadAnimation</a> method takes an <a target="_blank" href="http://wiki.roblox.com/index.php/Animation">Animation</a> object. Try instancing an animation, setting it's properties, then using LoadAnimation on that object.</p>
|
0 | I have a focus script but cant figure a way to make the CFrame work without glitches? | 368080440 | VAnkata20 | 49 | 2022-06-18 18:21:56 | <p>So I have this script that make the player focuses on an npc but for some reason it freak when in its on the client. in the server it works just fine.
What Can in do to fix it?</p>
<p><a target="_blank" href="https://vimeo.com/721773897">Video</a>
https://vimeo.com/721773897</p>
<p>Code:</p>
<pre class='brush: lua'>... | 130392 | 1 | 117738 | 1 | 446008543 | Meeptey2 | 51 | 2022-06-18 20:31:07 | <p>I don't know if this will solve it, but instead of using a while loop, you can use "RunService.RenderStepped" instead.
Your code would look like this with it.</p>
<pre class='brush: lua'>local Camera = workspace.CurrentCamera
local Goal = workspace.Enemies:FindFirstChild(chainedEnemyGlobal)
local RunService = game:G... |
0 | How can I make the user not freeze from Its own timefreeze? | 1961959172 | imnotaguest1121 | 186 | 2022-08-05 18:04:07 | <p>Hehehe I make funny J?o?j?o? ?g?a?m?e? World of trollge game</p>
<p>Anyway, I am making an ability for a morph which lets you time freeze, currently It works (I guess) but the problem Is that the user also gets frozen from Its own timefreeze (I also don't know If the bodyparts get unanchored or not)</p>
<p>Script:</... | 131111 | ||||||||
0 | Shift to sprint problems? (Animations & Cooldown) | 96185281 | Dr_Luxxe | 5 | 2020-12-31 04:07:45 | <p>Hello! I am absolutely terrible with animations, and stuff like that, so I wanted to ask for help!</p>
<p>Here's the problems I am having:
- Cooldown behaves weirdly
- Animations play even when you don't walk.</p>
<p>Localscript:</p>
<pre class='brush: lua'>local userInput = game:GetService('UserInputService')
local... | 117934 | ||||||||
0 | How to make it stop spinning at a certain time? | 186292821 | JadonFrenzy | 15 | 2018-04-19 15:23:16 | <p>Hello. If you have recently seen my other problem you might know I had a problem with having to click something every time for it to move, I have solved the clicking part. But now how do I make it stop at a certain time? here is my script:</p>
<p>script.Parent.ClickDetector.MouseClick:connect(function()</p>
<pre cla... | 57082 | 1 | 55791 | 0 | 4691581 | hellmatic | 1502 | 2018-04-19 15:31:49 | <pre class='brush: lua'>local CanSpin = true
local Seconds = 4
script.Parent.ClickDetector.MouseClick:connect(function()
spawn(function()
while true do
if CanSpin then
game.Workspace.Dav:SetPrimaryPartCFrame(game.Workspace.Dav.MainPart.CFrame * CFrame.fromEulerAnglesXYZ(0.001,0,0))
elsei... |
0 | How would I position the HumanoidRootPart with CFrame? | 70601468 | rdkv | 12 | 2018-08-29 10:34:08 | <p>I've tried every possible way yet come to no avail, i'd appreciate any help.</p>
<p><strong>Line:</strong></p>
<p><code>char.HumanoidRootPart.CFrame = CFrame.new(Vector3 -2,6,2)</code></p>
<p><strong>Full script:</strong></p>
<p><code>local player = game.Players.LocalPlayer
local char = player.Character
char.Humanoi... | 66460 | ||||||||
0 | [!!!!STILL UNANSWERED!!!!]Why does my script think I'm referencing the player instead of the npc? | 327901308 | MOREHOURSOFFUN | 74 | 2021-02-23 19:29:05 | <p>When the gui button is clicked the server is supposed to receive a signal from a remoteEvent, which is working fine, but the accept visitor and refuse visitor functions are not working I keep getting this error: ' PrimaryPart is not a valid member of Player "Players.MOREHOURSOFFUN'</p>
<p>Why is this?</p>
<pre class... | 120576 | ||||||||
0 | I want to make a gun and bypass a tool, but I'm having debounce problems? [Figured it out myself] | 715494 | Orlando777 | 315 | 2014-12-19 00:03:02 | <p>So as I described in the title, the gun is fully functional, but when you double(or more) click and hold it's like it's running multiple threads. I've tried adding debounces but I'm still puzzled. The problem is at the mouse.Button1down function (at the bottom). Let me know you if have any alternate ways of scriptin... | 13396 | ||||||||
0 | PointLight change on a GUI. Help on this?!! | 20747233 | BenHall4433 | 0 | 2015-05-03 17:32:53 | <p>Hi,</p>
<p>I am having a few problems with this script today is that it wont change the colour of the PointLight when pressed on the GUI. I am running this for my bowling alley which enables and disables in glow mode. But can you help me out?</p>
<p>I have tested this in the Test Server (as shown in the output as Pl... | 17244 | ||||||||
0 | How do I make text input from a textbox visible to all players? | 173897241 | salaarkhan1 | 28 | 2022-07-30 23:57:49 | <p>I am working on a story game where you can create a room with a modifiable name. Text input will not show for all players and I have searched this up a lot of times, though nothing helped.
Script:</p>
<pre class='brush: lua'>script.Parent.MouseButton1Click:Connect(function()
local room = script.Parent.Parent.Par... | 131022 | 1 | 118361 | 1 | 559514967 | T3_MasterGamer | 458 | 2022-07-31 03:06:31 | <p>Use RemoteEvents. To make a remote event, go to ReplicatedStorage, click plus and choose "RemoteEvent". After that change the name to "TextBoxText". Then, in your button local script, you must fire the remote event and send the text to the server by:</p>
<pre class='brush: lua'>script.Parent.MouseButton1Click:Connec... |
0 | Game Doesnt Kick Players And Gives Them Badges After All Values In PlayerGui Equal Something? | 1680108820 | JmoneyPlayzOfficial | 49 | 2023-03-07 05:15:23 | <p>Hello there, im making a script thats supposed to check every players specific values in playergui, if all of them are correct / working. it gives all the players a badge and kicks them. but for some reason the script doesn't work, I'm guessing its the script checking all the values but i have no idea</p>
<blockquot... | 133153 | 1 | 120237 | 1 | 559514967 | T3_MasterGamer | 2189 | 2023-03-07 06:12:18 | <p>It's probably because either some of the players hasn't fully loaded yet, there are no players in the server, or both. What you can do is wrap Lines 6-14 in <a target="_blank" href="https://create.roblox.com/docs/reference/engine/globals/LuaGlobals#pcall"><code>pcall()</code></a> to avoid errors.</p>
<p>Also in Line... |
1 | Why does the "=" have a syntax error? Trying to prove that turkey is superior to MONKE | 1488957970 | Radiant_Sparkles | 69 | 2021-01-02 14:37:15 | <pre class='brush: lua'>local turkey = 420
local monkey = 69
function question()
print("Does turkey = monkey")
end
if turkey = monkey then
print(yes)
else
print(no)
end
</pre>
| 118058 | ||||||||
0 | How do i make a touch event ono the drooling zombie? | 212329058 | RICHKINGREMMIXCLUB | 0 | 2022-09-08 04:58:33 | <p>I have no idea how to do this, i put a script in the drooling zombie model and all the parts like the arms and all but it still doesn't work</p>
<p>I tried to make it so that it jumpscares via replicated storage and debounce is a 5 second timer, I'm just not sure why its not working</p>
<p>` local JumpscareEvent = g... | 131548 | ||||||||
0 | How to change values of leaderstats in a public script? | 18790861 | woahsnake | 4 | 2021-05-01 14:09:14 | <p>I am having issues getting access to a players leaderstats folder, I have tried PlayerAdded but that will only run once and I am using while true do loops to update their information, not the best way of doing it and especially not now since I ran into a problem and having to work backwards from my code, I feel like... | 122990 | ||||||||
0 | how to change script from move tool to scale tool? | 1959249435 | moneyislands1 | 51 | 2022-05-10 17:37:59 | <p>i have this script for move tool (for placement system), when model is outside of base, it will be red and i wont be able to place it. i want scale tool for walls, floors. it will contain more parts in model and i have no idea how to even scale one part with scale tool script. can someone help me?</p>
<pre class='br... | 129971 | ||||||||
0 | How to get a Players name by mouse.Target? | 49316000 | IntellectualBeing | 430 | 2014-04-23 01:57:59 | <p>What this script does is when you click on a player in a game it brings up a gui, that gui would be the players profile. Only one problem I don't know how to get the players name from the person they clicked.</p>
<p>I tried this but it did not seem to work.
<code>Title.Name = mouse.Target.Parent.Name .. "'s Profile"... | 3331 | 3 | 4673 | 0 | 2933011 | Nickoakz | 231 | 2014-04-23 02:14:19 | <p>Sometimes your script would not work because first. What if the mouse target was a part inside a hat? We need to make sure we are getting the character.
So this one below should work.
Also, I don't think numbers inside variable names will not work.</p>
<pre class='brush: lua'>wait()
local plr = game.Players.LocalPla... |
1 | "attempt to compare string with number" Error? | 205456885 | SuperBeeperman | 30 | 2018-06-11 04:29:53 | <p>The error appears to be in line 10, any ideas?</p>
<pre class='brush: lua'>local Player = script.Parent.Parent.Parent.Parent.Parent
local oops = script.Parent.Parent.Parent.Oops
local HBidder = workspace.HighestBidder.Value
local HBid = workspace.HighestBid.Value
print(Player)
script.Parent.FocusLost:Connect(functio... | 60101 | 1 | 58480 | 3 | 17030889 | nilVector | 812 | 2018-06-11 04:45:29 | <p>The error describes exactly what you're doing wrong.</p>
<p><code>tonumber(Text)</code> will return a number representation of <code>Text</code>. <code>HBid</code>, I'm assuming, is a <code>string</code>. How can a <code>number</code> be greater than a <code>string</code> (without getting into certain technicalities... |
0 | Why wont this work? | 32136988 | SecretShadowLeague | 0 | 2014-02-19 03:50:39 | <pre class='brush: lua'>while true do
A = game.StarterGui.ScreenGui
A.Llama.Visible = true
wait(3)
A.Llama.Visible = false
A.Rank.Visible = true
wait(3)
A.Rank.Visible = false
A.AntiSpam.Vislble = true
wait(3)
A.AntiSpam.Visible = false
A.AntiKill.Visible = true
wait(3)
A.AntiKill.Visible = false
A.Approval.Visible = t... | 80 | ||||||||
1 | My building block doesnt correcly follow my mouse why? | 609694350 | thedukke1 | 0 | 2021-04-07 08:47:01 | <p>anyone that can help
the model is here
https://www.roblox.com/library/5658609429/building</p>
<p>i would also appreciate if saomeone could put rotation on it to :)</p>
<p>this is a model with the remove tool and the tool that allows you to build when clicking inside the building tool named wood there is a script and... | 122104 | ||||||||
0 | Button Tweening issues with mouse leave and mouse enter, help? | 429720902 | EmeraldRailYT | 8 | 2021-01-08 22:19:49 | <p>When hovering over a button I want it to move up a couple studs or so and move down when I move my mouse away. I have a working version, but I have to keep my mouse hovering over it the whole time its tweening or else it wont go back down when I leave it. I am unsure what I'm doing wrong, I have override set to true... | 118423 | 1 | 108346 | 0 | 454425 | WizyTheNinja | 834 | 2021-01-08 22:43:50 | <p>You are forgetting to properly use TweenPosition. You aren't including all of the )'s</p>
<pre class='brush: lua'>Settings = script.Parent
Settings.MouseEnter:Connect(function()
print("Mouse Entered")
Settings:TweenPosition(UDim2.new(0.143, 0,0.48, 0), "Out", "Quad", 0.2, true)
end)
Settings.MouseLeave:Conne... |
1 | Help making a camerachange tool? | 25240799 | BearKranz | 41 | 2014-05-15 08:34:08 | <p>I have a seat that gives a hoppertool, when you select the hoppertool it lets you control my ship weaponry, what i would like to do is make it when you select the tool, your camerachanges to a brick outside the ship, and when you de select then your camera goes back to player</p>
| 4887 | ||||||||
0 | Characters not loading upon joining? | 264630904 | DriBowser | 55 | 2023-02-05 06:50:27 | <p>Hi, basically in my game I have been encountering this problem where if I join or any other player joins it seems, if there were people already playing the game, their characters dont load. What i mean is that they are invisible, they dont make sounds, you cant see the tool they have equipped or anything. The only w... | 133021 | ||||||||
0 | Screen GUIS position? | 64570201 | TixyScripter | 115 | 2014-07-25 05:52:30 | <p>So I am having a problem here in my game. I have a frame that holds 3 guis. They are all lined up and put into a frame so i could move them together but the position is wrong. On my screen they fit perfectly and on my brothers screen which is smaller they dont even show up. Keep in mind they are on the left all the ... | 8659 | 2 | 11227 | 3 | 38426223 | Tuneable | 100 | 2014-07-25 06:21:35 | <p>The issue here is that you are positioning your guis with pixels. Every computer has a different screen size, so what fits perfectly on your screen looks messed up on his screen.</p>
<p>You can read more about it here: http://wiki.roblox.com/index.php/GUI_Guide</p>
|
1 | Next Button In My GUI Doesn't Work and It Doesn't Give any Errors? | 24711986 | araltan2002 | 47 | 2017-04-27 12:42:27 | <p>I've made pages in my GUI but my next page button isn't working.
I tried a lot of thing but none of them worked. Please help.</p>
| 42380 | 2 | 43990 | 1 | 14277028 | rodrigo455 | 578 | 2017-04-27 15:36:53 | <p>Not sure why your script doesn't work.
Here's what I tried though</p>
<pre class='brush: lua'>local Frame = script.Parent.Parent -- Accessing MainFrame
local Page1 = Frame:WaitForChild("Page1")
local Page2 = Frame:WaitForChild("Page2")
local Page3 = Frame:WaitForChild("Page3") -- Unecessary if not being used
script.... |
0 | Gui Script not properly giving gear to player??? [UNANSWERED] | 8624595 | gigabite176 | 20 | 2014-12-23 19:25:36 | <p>What i am trying to do is make a game where you can choose your class and you recieve those weapons. You start off with no items but when you click the gui it will give you that specified classes weapons. here is the order i want it to be in.</p>
<p>1:Player clicks the gui.
2:destroy the current gear in players back... | 13552 | 1 | 16616 | 1 | 14357591 | Perci1 | 4988 | 2014-12-24 17:06:03 | <p>Why would you create the GUI inside the script? It would be much simpler to just create the GUI in studio then use the script to connect a click handler to it.</p>
<p>Your first problem is lines 17 and 18. The computer will <em>never, ever</em> pass line 18 because <strong><code>p</code> will always equal nil.</stro... |
0 | Any idea how people are exploiting like this? | 1323213 | Mario684 | 4 | 2021-09-27 17:23:27 | <p>Hi,</p>
<p>So I admin for my friends game and he's had extreme exploiters in his game, like every server was like the clip below, we added a group system now temporarily so people could actually play safely, any idea what this could be? Backdoor, etc?</p>
<p>He said his game doesn't use any free models, everything w... | 127718 | 1 | 115798 | 1 | 68125558 | joshthegamer456 | 93 | 2021-09-27 22:44:47 | <p>From my experience trying to do anti-exploit with relatively popular games, these are the issues I've encountered:</p>
<ol>
<li>Plugins</li>
</ol>
<p>I'm unsure if this is still an issue with the plugin revamp, but it killed a game that had hundreds of thousands of robux invested into it back in maybe 2017-18. Make ... |
0 | Why aren't shoulders rotating after changing desired angle? | 51697211 | AronYstad | 101 | 2023-03-17 19:25:41 | <p>Hello. I am trying to fix a script for an old dance tool, but I have no idea what's wrong with it. The script animates the player by changing the desired angles and maximum velocities of the shoulders and hips. When I tried to use it, it did change the values, but nothing happened. Does anyone know why nothing is ha... | 133205 | ||||||||
0 | Roblox Catalog API; Do it carry all of roblox catalog items? | 1129417597 | B_rnz | 171 | 2018-09-30 23:59:01 | <p>So, I was using this <strong>Roblox Catalog API</strong> that I had gotten from the roblox wiki (<a target="_blank" href="https://www.roblox.com/catalog/json">www.roblox.com/catalog/json</a>) but I have am not sure as to..</p>
<p><strong>1. Having all of the items in the roblox catalog?</strong></p>
<p><strong>2. I ... | 68231 | ||||||||
1 | How do i print the whole table? | 460046422 | Kaif_Mohamed | 5 | 2022-05-09 15:22:52 | <p>How do I print a whole table without making a mess?
like this:</p>
<pre class='brush: lua'>local exampleTable = {"Hello", "Example", 1, 5}
print(exampleTable[1])
print(exampleTable[2])
print(exampleTable[3])
print(exampleTable[4])
</pre>
<p>this is the script:</p>
<pre class='brush: lua'>local Decisions = {
"Le... | 129968 | ||||||||
0 | Sound | 31619538 | Youllbekilled | 0 | 2014-02-17 06:45:01 | <p>I am making a nature game, and i want to out a river and other things, but idk how to make it sound realistic, please help me. Thank you</p>
| 27 | ||||||||
0 | Workspace.Script:2: '<name>' expected near '('? Why is this happening? | 36872500 | Valiux | 27 | 2016-07-10 15:02:20 | <p>So I'm using the trelloApi that nstrike made and yeah there's an error at <name>.</p>
<pre class='brush: lua'>ap = require(game.Workspace.TrelloAPI)
boardID = ap:(GetBoardID)("User Database")
ListID = ap:GetListID([All Users in our DB],[boardID])
------
game.Players.PlayerAdded(function(plr)
CardId = ap:AddCa... | 32915 | ||||||||
0 | How to make block reset blur affect after touching again? | 1546980603 | Jakob_Cashy | 79 | 2021-07-05 22:42:17 | <p>This script inside a block makes things go blurry when stepped on, but idk how to turn it off after stepping on again!</p>
<pre class='brush: lua'>local part = script.Parent
local function onPartTouched(otherPart)
local partParent = otherPart.Parent
local humanoid = partParent:FindFirstChildWhichIsA("Humanoi... | 125094 | 2 | 113932 | 1 | 1098704750 | Trampyling | 36 | 2021-07-06 21:16:43 | <p>it will detect when it is blurred then if it is it will make it unblur</p>
<pre class='brush: lua'>local part = script.Parent
part.Touched:Connect(function(hit)
local partParent = hit.Parent
local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
if humanoid then
if game.Lighting.Blur.Size = 5... |
0 | A block changes color when touched/Hit? | 159871755 | fortesss7 | 40 | 2019-07-28 21:05:21 | <pre class='brush: lua'>Local player = Game.Players.player
Local model = game.Workspace.Block
Local function steppedon ()
Player.humanoid = humanoid.player
Block.Brickcolor = Brickcolor.Green
Block.Material = Enum.Material.Grass
</pre>
<p>Any ideas?</p>
| 84613 | 2 | 78526 | 0 | 125227797 | Fad99 | 286 | 2019-07-28 21:13:02 | <pre class='brush: lua'>Local model = game.Workspace.Block
Block.Touched:Connect(function(p)
if Game:GetService:("Players"):GetPlayerFromCharacter(p.Parent) then
Block.Brickcolor = Brickcolor.Green
Block.Material = Enum.Material.Grass
end
end)
</pre>
<p>What happens is when something touches the... |
0 | I cant use idle animations in tools? | 238214569 | Locpsoyyo | 2 | 2021-02-17 18:44:23 | <p>I´ve been trying to use idle animations but always the code is wrong and idk why</p>
| 120292 | ||||||||
0 | Id grabber for catalog help? | 1889913791 | Bakery_quxxn | 0 | 2021-01-12 02:58:30 | <p>I am trying to create a gui and if you type in the text box the clothing appear how should I attempt to do this.</p>
| 118577 | ||||||||
0 | Region3 not generating properly? | 835155757 | BRO_ITmeYO | 106 | 2020-07-14 16:11:37 | <p>Hi. The title is pretty self explanatory.
Here's my code:</p>
<pre class='brush: lua'>local burnRegion = Region3.new(workspace.Point1.Position, workspace.Point2.Position)
local visual = Instance.new("Part")
visual.Parent = workspace
visual.Anchored = true
visual.Size = burnRegion.Size
visual.CFrame = burnRegion.CFra... | 109044 | ||||||||
0 | question about reflectance with a script? | 169003310 | TrippeDanieI | 9 | 2020-11-22 02:03:26 | <p>if script.Parent.Reflectance == 0.65 then
print("Reflectance")
end</p>
<p>if i do that it wont detect anything, but only can detect if reflectance is set to 0 or 1,i need this for part of my gun system</p>
| 116136 | 1 | 106584 | 0 | 9542689 | Vathriel | 477 | 2020-11-22 03:38:19 | <p>You're encountering a floating point error.</p>
<p>I'm not going to do the math behind it right now but you can essentially think of this instead as a margin of error problem.</p>
<p>Try this:</p>
<pre class='brush: lua'>if math.abs(game.Workspace.Baseplate.Reflectance-0.65) < 0.01 then print("Reflectance") end
<... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.