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 do I reference a player backpack? | 413309360 | fishboy141516 | 7 | 2022-05-20 17:12:20 | <p>So currently, I am making a game where when the round starts a random map gets chosen and they fight with classic swords, but, call me dumb, I don't know how to reference a player backpack. Can anyone help?</p>
<p>What I mean:</p>
<p>plr.Team = game.Teams.Playing
script.ClassicSword:Clone()
script.ClassicSword.Paren... | 130057 | ||||||||
0 | How to make smooth Color3 transitioning? | 6081066 | Konethorix | 197 | 2018-03-25 09:35:15 | <p>Like for example: Making a <a target="_blank" href="https://cdn.discordapp.com/attachments/374434582562471938/427399680717225994/color_trans.gif">rainbow GUI frame</a></p>
<p>Or making a frame goes from black to white (or any colors possible) smoothly</p>
| 55609 | ||||||||
0 | Something did this and unexpectedly removed this? | 367025 | LordProxius | 17 | 2014-06-11 06:09:29 | <p>"Something unexpectedly tried to set the parent of ChunkB1 to NULL while trying to set the parent of ChunkB1. Current parent is Camera."</p>
<pre class="brush: lua">--PROXTECH GFX
wait()
--CAN EDIT(Not suggested)
RangeLow = 300 --Ammount of studs a distance can be maximum to load a chunk on Low Render(0)
RangeMedium... | 6499 | ||||||||
0 | How do i make A Varaible that Gets The player that touched the part and uses it for Respawning? | 50955067 | funzrey | 58 | 2014-05-01 00:17:09 | <p>i've tried this</p>
<pre class='brush: lua'>function Hello()
plr=Touched:Connect(Hello)
plr.Torso:Destroy()
end
script.Parent.Touched:connect(Hello)
</pre>
<p>Ok, Well When i Debugged it And hit the brick,, it did all of the stuff i wanted it to do EXCEPT kill the player, cause it was suppose... | 4030 | 1 | 5543 | 0 | 60294522 | Link43758 | 175 | 2014-05-01 00:18:48 | <p>script.Parent.Touched:connect(function(plr) if plr.Parent:findFirstChild("Humanoid") then plr.Parent.Humanoid.Health = 0 end end)</p>
|
0 | GUI's and Parts | 29806839 | ConnorVIII | 448 | 2014-03-12 20:11:33 | <p>With GUI's you can use TweenSize and TweenPosition to move or change a gui smoothly.
I wanted to find out if there is such a way to do the same smoooth transition on a part like the gui. Can you use the TweenSize on a part too??</p>
| 650 | ||||||||
0 | Why wont my animation play?? I tried everything but it still doesn't work. | 44249362 | justin12343434 | 4 | 2018-04-17 10:17:33 | <p>I tried to make an Animation script that will make you emote when you press E. But the
problem is it wont play and it doesn't show any error on the output.</p>
<pre class='brush: lua'>wait(1)
userinput = game:GetService("UserInputService")
plr = game.Players.LocalPlayer.Character
anim = plr.Humanoid:LoadAnimation(sc... | 56987 | 3 | 55699 | 0 | 4691581 | hellmatic | 1502 | 2018-04-17 17:28:54 | <pre class='brush: lua'>wait(1)
userinput = game:GetService("UserInputService")
plr = game.Players.LocalPlayer.Character
animation = Instance.new("Animation")
animTrack = nil
anim = plr.Humanoid:LoadAnimation(script.anim)
userinput.InputBegan:connect(function(input)
if input.KeyCode == Enum.KeyCode.E then
... |
0 | How to make a auto assign script which assigns to losing team? | 8895155 | truefire2 | 75 | 2014-02-25 18:37:04 | <p>Hi. I'm attempting to create a script that auto assigns a new player to join the losing team. However, I don't fully know how to do this. I've done calculating the KDR of one player, but how to I work out the KDR of the WHOLE team instead of 1 player?</p>
<p>Here is what I done so far:</p>
<pre class="brush: lua">fu... | 295 | 1 | 541 | 1 | 64408300 | RaverKiller | 668 | 2014-02-25 18:51:08 | <p>This has a few comments explaining a few flaws that were in your script, as-well as additions to the code to make it more efficient and variables making a couple of services easier to access.</p>
<pre class="brush: lua">local Plrs = game:GetService("Players") -- Pre-defined for ease of access.
local Ws = game:GetSer... |
0 | expected identifier when parsing expression, got 'then", how do i fix this? | 531567825 | pedrolechi | 0 | 2022-05-12 19:04:41 | <p><code>local maingui = script.Parent.Parent.main
local bvalue = script.active
local pos1 = "{0.014, 0},{0.03, 0}"
local pos2 = "{15, 15},{15, 15}"
script.Parent.MouseButton1Click:Connect(function()
if bvalue.Value = true then
maingui.Position = UDim2.fromOffset("pos1")
bvalue.Value = false
else
maingui.Position = UDi... | 129980 | ||||||||
0 | Can you help me with using spaces in scripts? | 22212617 | HECKFURNIOUS | 85 | 2014-04-16 13:07:46 | <p>I am making a (non-gamepass) VIP door that relies on looking at your shirt's graphic. I followed a WikiHow script for making this possible. I put two stars beside the area that I need help with. My Current script is:</p>
<pre class="brush: lua">print ("VIP T-Shirt Door Script Loaded")
-- list of account names allowe... | 2142 | 2 | 2851 | 2 | 3110492 | Bebee2 | 195 | 2014-04-16 13:11:15 | <p>A neat thing in Lua is that you can index objects like this:</p>
<pre class='brush: lua'>if human.Parent['Shirt Graphic'].Graphic == texture then
</pre>
|
3 | How do I use GetFriendsAsync()? | 51714312 | Rawblocky | 217 | 2017-05-12 23:26:29 | <p>I wanna get access to a list of a player's friends and the amount they have.
<a href="http://wiki.roblox.com/index.php?title=API:Class/Players/GetFriendsAsync">http://wiki.roblox.com/index.php?title=API:Class/Players/GetFriendsAsync</a> Can someone demonstrate how to use it?</p>
| 42858 | 1 | 44380 | 4 | 34209956 | M39a9am3R | 3210 | 2017-05-13 02:53:52 | <p><code>GetFriendsAsync()</code> gathers "pages" of friends a user has. When you call <code>:GetCurrentPage()</code> on the page, it will return a table of tables of 50 friends.</p>
<pre class="brush: lua">Book = {
{table, table, table, table, ...};
{table, table, table, table, ...};
{table, table, table, ... |
0 | Invalid Player To Teleport. Why? | 465361335 | DeadStroke509 | 3 | 2020-04-24 00:20:27 | <p>Here is more details.</p>
<pre class='brush: lua'><br />game.ReplicatedStorage.Server1.OnServerEvent:Connect(function()
local player = game:GetService("Players").LocalPlayer
game:GetService("TeleportService"):Teleport(4931146666,player)
end)
</pre>
<p>this is a script normal script inside serverscriptservice... | 100487 | ||||||||
0 | Fix? - Cannot store Instance in data store. Data stores can only accept valid UTF-8 characters | 1744613578 | YTBrainBroYT | 29 | 2021-10-13 14:44:26 | <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()
... | 127853 | ||||||||
0 | Is this possible in theory? | 2678811 | Tiranin | 45 | 2014-04-30 22:15:59 | <p>Hello, I just came to a random though and I have no time for Studio experiments.</p>
<p>I wanted to ask if it's possible to do this (example):</p>
<pre class='brush: lua'>if x, y, z == 2, 5, 3 then
</pre>
<p>Came to an idea when I remembered that you can do the same thing with variables (declerating them, not compar... | 4016 | ||||||||
0 | Have 2 parts joined with a motor6d have the 2nd one face a 3rd part despite the CF of the 1st? | 490346166 | A_Mp5 | 221 | 2022-05-09 02:42:38 | <p>So basically, I will make a "head-turning system" where the character's head faces the mouse position in 3D space. I just have one problem, I can't seem to get my head around something. It works, but if the torso moves, the head doesn't look in the correct direction. I just need to get the math to solve this, thanks... | 129965 | ||||||||
1 | How do you make NPC dialog from ScreenGuis? | 38036947 | marioblast1244 | 113 | 2017-01-17 23:53:35 | <p>I want it so when you click on the NPC that the dialog appears. It shows that I can click on it but the dialog isn't popping up. This is the script that I am using.</p>
<pre class='brush: lua'>NPC = script.Parent
Screen = game.StarterGui.FirstTextGui
Frame = Screen.FirstTextBox
Text = Frame.FirstText
Button = Text.N... | 39133 | 1 | 41427 | 0 | 60572336 | rareheaddress | 74 | 2017-01-18 01:00:41 | <p>this is the first question I've ever answered I've tested it, it works :)
using the <code>StarterGui</code> is not a good way to store your information or gui idk
you should maybe store it somewhere like inside of the <code>ReplicatedStorage</code> or simply just inside the script</p>
<p>quick thing yu don't need al... |
1 | Why Isn't notification not sending a message? | 1961959172 | imnotaguest1121 | 362 | 2021-12-19 03:38:13 | <p>So I have gotten Into a problem where I am trying to have a notification pop up when It touched a part however the problem Is that It doesn't show let me break It down:</p>
<p>This Is the part: (Note: The part Is Inside of a model)</p>
<pre class="brush: lua">local part = script.Parent
local function findBot()
g... | 128315 | 1 | 116236 | 0 | 1792778813 | Xapelize | 2658 | 2021-12-19 09:09:07 | <p>You should change PlayerGui not the StarterGui, for example:</p>
<pre class="brush: lua">game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui").findBot.Disabled = true
</pre>
<p>not</p>
<pre class="brush: lua">game.StarterGui.findBot.Disabled = true
</pre>
<p>Full script:</p>
<pre class="brush: lua">local ... |
0 | Incomplete statement: expected assignment or a function call? | 268163689 | FootFungusWeirdo | 198 | 2020-04-15 18:33:37 | <p>so i am making a prototype for titan shifting (you will know what i am doing if you watched the anime attack on titan) and i made it work but i want the bigger size to be better with smaller script.
so i am adding 0.1 size to the characters scale</p>
<pre class='brush: lua'>game.ReplicatedStorage.titanshifted.OnServ... | 99394 | 1 | 91828 | 1 | 86083702 | jediplocoon | 877 | 2020-04-15 18:38:50 | <p>I believe you have to define the value before changing it, so it might look like this</p>
<pre class='brush: lua'>game.ReplicatedStorage.titanshifted.OnServerEvent:Connect(function(player)
local bds = game.Workspace:FindFirstChild(player.name):WaitForChild("Humanoid").BodyDepthScale
local bhs = game.Workspace:Fi... |
0 | What is the differences between the Touch event and Region3? | 58714243 | QWJKZXF | 85 | 2020-11-10 19:02:21 | <p>It seems like for both the touch and Region3, their purpose is to detect stuff. The question is, what are the major differences between the Touched event and Region3? And what are some practical uses for region3 itself, since it seems like I can just create a cube for my region and add in a touched event.</p>
| 115602 | ||||||||
0 | How can I make it so this spawn script spawns players in the center of the spawn point? | 15886356 | 262187 | 45 | 2015-03-29 03:52:17 | <p>I'm using a free model called "Infinite Obby" which basicly is a script that add's spawn-points with stages. The problem is that when someone spawns it does not spawn them in the center of the spawn point which makes it look bad (In my opinion). I need hep making it so players will spawn in the center of a spawn poi... | 16123 | 1 | 19347 | 1 | 6938329 | noliCAIKS | 210 | 2015-03-29 15:04:46 | <p>On this line:</p>
<pre class='brush: lua'>local chosenCFrame = cp.CFrame * CFrame.new(math.random(-cp.Size.X/2,cp.Size.X/2), 2.5, math.random(-cp.Size.Z/2,cp.Size.Z/2))
</pre>
<p>Isn't it the math.random stuff that causes it not to spawn Directly on top of it? Why would you even bother with that if you just want it ... |
0 | how to add a multiplier to Humanoid:TakeDamage? | 354043187 | steel_apples | 56 | 2021-09-14 02:56:18 | <p>hello again scripting helpers, i have no clue how to make add a multiplier to humanoid:takedamage.</p>
<p>btw the multiplier is a NumberValue thats in the player model</p>
<p>the line i wanna add the multiplier to</p>
<pre class='brush: lua'> humanoid:TakeDamage(46)
</pre>
<p>hole script</p>
<pre class='brush... | 127428 | ||||||||
0 | How to check what groups a player is in? | 476871489 | DejaSketch | 82 | 2020-04-26 03:30:38 | <p>In my game, I want a player to only be able to chose a certain role if they are in a specific group. How can I do this?</p>
| 100760 | 3 | 93032 | 1 | 18664243 | lazycoolboy500 | 537 | 2020-04-26 03:49:52 | <p>It's easy, just get the player from game.Players (or from "game.Players.PlayerAdded") and then check using "PartOfGroup = Player:IsInGroup(GroupID)". The ":IsInGroup()" checks if a player is in a group then returns a true or false value (which is stored in the "PartOfGroup" variable).</p>
<p>If you want the document... |
1 | Is there a way to check if a decal is loaded? | 9437030 | randomsmileyface | 375 | 2015-10-26 22:24:01 | <p>Lets say for example you use a lot of image decals.
Usually they can take a long time to load, especially on first startup of a game.</p>
<p>This will cause a decal to give a grey screen until it is properly accessed by the server.
Is there a way you can put a text decal where the image decal should be until it load... | 23868 | 1 | 27524 | 2 | 65644165 | ImfaoXD | 158 | 2015-10-27 01:12:10 | <p>You can use this to load almost everything that have IDs, except model.</p>
<pre class='brush: lua'>local ContentProvider = Game:GetService("ContentProvider")
local function LoadAssets(AssetList)
-- Takes an asset list and preloads it. Will not wait for them to load.
for _, AssetId in pairs(AssetList) do
... |
0 | How Do I Use Imported Animations in Roblox? | 73664468 | STRAPPIES | 0 | 2019-06-05 11:08:48 | <p>Recently, I have been trying to import animations from Mixamo and use them in Roblox Studio to put them in my game, but I am having trouble doing that.</p>
<p>Everything imports correctly, and the animation even plays with the animation editor, but when I put the "Animate" LocalPlayer script with the IDs of the anim... | 81230 | ||||||||
3 | How to make all players have a certain look? | 14451219 | Cataclyzmic | 93 | 2014-03-01 20:09:24 | <p>What would i do, to make it where when all players have a certain look.</p>
<p>Like, where all people are just ROBLOXian 1.0's with bodycolors, no personalization to them, so there is no difference.</p>
<p>An example would be in murder mystery, all the players look the same in the lobby.</p>
<p>How would i do that?<... | 404 | ||||||||
1 | I made a teleport script and it doesn't work but there are no errors? | 333549003 | aydenwilson819 | 5 | 2021-09-14 23:57:38 | <p>I made a simple script that teleports you to the spawnlocation when you touch a part, but for some reason the script doesn't work and there are no errors.</p>
<pre class='brush: lua'>local Teleport = game.Workspace.SpawnLocation
script.Parent.Touched:Connect(function(plr)
plr.Character.HumanoidRootPart.CFram... | 127447 | ||||||||
0 | How would i start making a RobloxPhone app? | 5438409 | Rythian2277 | 65 | 2014-07-25 16:45:46 | <p>Ive asked a couple of people how to start making a RobloxPhone app and all of them said to come here for help so i am.
I intend to make an app which submits a khols admin command message whenever you press enter while on the app after you have entered a message. Khols admin commands v2 messages show up as a player G... | 8667 | 1 | 12125 | 1 | 11138259 | cheatmaster18 | 155 | 2014-08-10 09:27:41 | <p>You can start here <a target="_blank" href="http://http://www.roblox.com/item.aspx?setItemId=14718903&avID=369169456">http://www.roblox.com/item.aspx?setItemId=14718903&amp;avID=369169456</a> place it in ServerStorage.</p>
|
0 | How to access CoreGui from a local script? | 272859903 | Miniller | 380 | 2019-09-17 07:16:40 | <p>So I'm trying to create an anti-cheat script I saw in a game. It would detect if there is a new undetected GUI for a player (e.g a remotespy GUI) so it will ban it.
However, whenever I write game.CoreGui, it will just say The current identity (2) cannot Class security check (lacking permission 1).
The localscript is... | 87581 | ||||||||
0 | Character animation stops when grabbing another character? | 310097042 | keremMCT | 0 | 2022-08-05 10:35:23 | <p>Hello, I am currently trying to make a SCP-173 where it grabs the player, but due to an unknown reason the SCP-173's animations stop entirely with only the grab animation playing.
Sometimes it works, with the animations playing all of a sudden. I put the grabbed characters parts on massless, but that doesnt seem to ... | 131106 | ||||||||
0 | My countdown does not work correctly, can you help me? | 34068239 | NiniBlackJackQc | 1562 | 2017-07-12 08:44:48 | <p>Hello ScriptingHelpers! My countdown does not work correctly, The only thing he sent me is '0:03'... So if you think you can fix it or put me in the right direction I will be very grateful to you!</p>
<p>ModuleScript:</p>
<pre class='brush: lua'>local GameModule = {}
function GameModule:timerConverter(i)
local t... | 45166 | 1 | 46135 | 1 | 11808841 | blowup999 | 659 | 2017-07-12 11:27:05 | <p>In your function timerConverter you convert the seconds passed into a string. So when you do #t you're just getting the length of the string. Since you're getting the length of the string and it's from 60 down to 1 the string should always return #t == 2 or #t == 1. Because of this it will always run the elseif #t &... |
0 | Sup, I have a problem... Mind helping me out? | 564047533 | GameGuy300K | 4 | 2023-01-25 20:50:57 | <p>I wanted to make that when an object aka: Ball touches an specific part, then it will play the sound. But not when the player touches the Part but only the part.</p>
<pre class='brush: lua'>local part = script.Parent
part.Touched:Connect(function(Hit)
if Hit.Parent:FindFirstChild("Humanoid") ~= nil then
... | 132944 | 1 | 120060 | 0 | 1674805834 | Black_Magic2533 | 104 | 2023-01-25 21:22:11 | <p>If you want it to be a specific object you could try</p>
<pre class='brush: lua'>script.Parent.Touched:Connect(function(part)
if part.Name = "SpecificPartIWant" then
local sound = script.Parent.Sound
if not sound.IsPlaying then
sound:Play()
end
end
end)
</pre>
|
0 | How to remove a collision for torso and head? | 672953841 | xIceOnexx | 0 | 2020-09-16 13:47:48 | <p>How to remove a collision for my character's torso and head?</p>
| 113225 | ||||||||
0 | Why won't my teleport GUI work properly? | 571963777 | JipSea | 23 | 2020-07-15 01:17:12 | <p>I have a game where you can click different checkpoints in a GUI to teleport throughout the map, However; it keeps teleporting players on top of roofs, etc.</p>
<p>I have read about CFRAME's but cannot get it to work properly.</p>
<p>Please help!</p>
<pre class='brush: lua'>local self = script.Parent;
local Play... | 109087 | ||||||||
0 | Why is starterpack giving tools to the player's character instead of the player's backpack? | 1431025303 | omniutopia | 0 | 2021-01-12 01:02:55 | <p>I put two tools inside starterpack. When I just put one of them into starterpack, the player receives the tool in their backpack and everything works, but when I put the second one in, the tool instead of going to the player's backpack goes to their character for some reason. I have no idea why this has happening an... | 118571 | ||||||||
0 | How Do I Script A Round System, Using a Gui To Tell What Round Your on Which Is Infinite? | 871079581 | Confidencebreath | 0 | 2021-01-13 00:52:45 | <p>Whenever The Last Zombie Dies a Sound Plays And A New Round Begins and then more hordes of zombies come each round but also have more health If this is not understandable tell me so then i can elaborate more on what am i talking about</p>
| 118616 | ||||||||
0 | The Transparency value won't change? | 1599032640 | DeuceyTheHonk | 2 | 2020-07-23 22:13:33 | <p>The transparency part of this script is what isn't working. Does anyone know what is wrong with the gear script?</p>
<pre class='brush: lua'>local Mouse = game.Players.LocalPlayer:GetMouse()
local tool = script.Parent
local Equipped = false
tool.Equipped:Connect(function()
Equipped = true
end)
tool.Unequipped:co... | 109803 | ||||||||
0 | [Solved] How do I calculate a point with a given distance and direction? | 67097655 | damagex443 | 325 | 2014-09-17 16:58:51 | <p>So I have a script that, when I click, a part moves from it's position to the mouse.Hit.p position, but I also want it to be limited to a maximum distance, how would I recalculate the target position to a new point with the maximum distance in the same direction.</p>
<p>I recreated my situation below, copy and paste... | 10941 | ||||||||
4 | How do I hide/remove the new roblox health bar? | 7177436 | Voltoxus | 248 | 2014-04-23 21:18:32 | <p>The new update moved the health bar to the coregui I assume how do I disable the leaderboard, Healthbar, and Backpack bar?</p>
| 3378 | 1 | 4733 | 11 | 13416513 | Merely | 2122 | 2014-04-23 21:22:00 | <pre class="brush: lua">game.StarterGui:SetCoreGuiEnabled("Health",false)
</pre>
<p>EDIT: Note that it has to be done from a local script.</p>
|
0 | if a player buys a Gear within my map, will I still earn 10% of that sale? | 416059776 | lytew | 99 | 2020-04-25 18:45:00 | <p>on the issue of Gays, that you earn 10% of the value of an item sold, I have a doubt: If a player buys this same item, only within the map through the "MarkerplaceService: PromptPurchase"
, will I also earn that same 10% of that sale?</p>
| 100705 | 3 | 92980 | 1 | 244452876 | JesseSong | 3304 | 2020-04-25 19:53:07 | <p>No. You don't get 10% because according to the Roblox forums Roblox released a new marketers that you can get. If you have premium layouts you will get 10% or purchased apps. But if you don't Roblox will take 70% of your robux meaning that you will only get 30%.</p>
|
0 | How do code lava so when someone touches it, they fall? | 1034947571 | badimo3456p | 114 | 2020-06-10 14:32:04 | <p>How do you make a trap code, because I only know how to make them die, will this help u answer :</p>
<pre class="brush: lua">script.Parent.Touched:Connect(function(hit)
local character = hit.Parent
local human = character:FindFirstChild("Humanoid")
local player = game.Players:GetPlayerFromCharacter(character)
if pl... | 105992 | 2 | 97632 | 2 | 169428835 | Cynical_Innovation | 595 | 2020-06-10 14:38:58 | <p>Humanoids have a sit property, which you can use to make the "Slip"</p>
<pre class='brush: lua'>script.Parent.Touched:Connect(function(hit)
local character = hit.Parent
local human = character:FindFirstChild("Humanoid")
local player = game.Players:GetPlayerFromCharacter(character)
if player and human.Health > 0 ... |
0 | How can I calculate the middle of two CFrames?? | 379782887 | Shounak123 | 427 | 2022-05-01 17:05:10 | <p>There's <code>CFrame 1</code> and <code>CFrame 2</code> and you want to find the exact center of these two CFrames to place a part there. But the catch is these two CFrames are randomized so you have to use a script to calculate the middle each time you wanna put a part.</p>
<p>Any Help would be appreciated</p>
| 129879 | 1 | 117346 | 1 | 1715522570 | BeautifulAuraLover | 371 | 2022-05-01 17:49:19 | <p>Hello, I can help you, but only if you dont mind the rotation, because I never tested that and I am not sure how it would work. So, if I understand, there are 2 CFrames and you want something like middle between of them. I draw the situation on the paper, and I would calculate it like that:</p>
<pre class='brush: lu... |
0 | How do I make a map changer? | 32735447 | JjYmcmb | 0 | 2014-04-16 13:44:23 | <p>Please could you help me with this because i want to ake a fighting game and i need to change map every 20 mins</p>
| 2149 | ||||||||
0 | FE Gun kit stops working after reset or death. How to fix? | 381779672 | nooby14327 | 2 | 2022-11-15 19:47:14 | <p>title is self explanatory. gui and gun itself stops working.</p>
| 132288 | ||||||||
0 | How to Fix It? It Dosen't Change Black | 22531076 | Robertandy11 | 103 | 2014-07-09 09:43:31 | <pre class='brush: lua'>Part = script.Parent
function Touched()
Part.BrickColor = BrickColor.new("Really black")
end
</pre>
| 7844 | 4 | 10162 | 1 | 20874214 | ROBLOXING213 | 130 | 2014-07-09 10:03:55 | <pre class='brush: lua'>Part = script.Parent
function Touched()
Part.BrickColor = BrickColor.new("Really black")
end
Part.Touched:connect(Touched)
</pre>
<p>You forgot to put the object that connects to the function therefore making an error.</p>
<p>You seem to be new to functions, i suggest checking out http://wik... |
0 | a blue line went on the line i was editing, how do i get rid of it? [SOLVED] | 1563294759 | CaIcuIati0n | 246 | 2020-07-22 14:57:31 | <p>When i was writing a script, a blue line appeared on the line i was editing, how do i get rid of it?</p>
<p>It's really annoying, I've been trying to get this away for hours now. If i by accident pressed a button that triggered that blue line please answer and say how to get rid of it :)</p>
<p>thanks for reading,</... | 109687 | 2 | 100824 | 1 | 714312166 | PrismaticFruits | 842 | 2020-07-22 15:12:05 | <p>It is a new feature in Roblox Studio. To get rid of it go to the studio settings, and find "Highlight Current Line" in the Studio category, and disable the option.</p>
|
1 | How do I load a Player's Appearance into an NPC? | 1126954614 | Lord_WitherAlt | 206 | 2020-03-17 19:34:22 | <p>I have a custom NPC in my game and i want a way to load a Player's Appearance onto that NPC, I want it so that the NPC will have that appearance even if the Player changes his Avatar
Is there anyway i can code this to happen</p>
| 96293 | 1 | 88992 | 2 | 402731422 | ThisIsAnAccount255 | 143 | 2020-03-17 20:17:48 | <p>You could use humanoid descriptions to achieve this (I assume your npc has a humanoid in it). You can run <code>game:GetService("Players"):GetHumanoidDescriptionFromUserId(userid)</code> to get a humanoid description of the player. Then set the appearance of the NPC with <code>humanoid:ApplyDescription(description)<... |
0 | Frame is not a valid member of ScreenGui? [SOLVED] | 1122312651 | totosimamora608 | 61 | 2021-08-12 11:31:56 | <p>So i want to make a script that detect if someone says something on chat but i found
Frame is not a valid member of ScreenGui on Output</p>
<p><strong>this is my script:</strong></p>
<pre class="brush: lua">local passWord = "no" -- Set password
local LocalPlayer = game:GetService("Players").LocalPlayer
LocalPlayer.C... | 126391 | 1 | 114900 | 1 | 1524991831 | t58l | 20 | 2021-08-12 18:51:19 | <p>-- Make sure Frame is a child of screen gui.</p>
<pre class="brush: lua">local passWord = "no" -- Set password
local LocalPlayer = game:GetService("Players").LocalPlayer
LocalPlayer.Chatted:Connect(function(msg, player)
if msg == passWord then
game.Players.LocalPlayer.PlayerGui.WOW.Frame.Visible = true -... |
1 | How do I set Primary Part Orientation? | 169428835 | Cynical_Innovation | 595 | 2020-02-24 02:59:49 | <p>So whenever I teleport the model, It turns to the right. I don't want that happening. So how do I Set a Primary Part Orientation? Here's the code:</p>
<pre class='brush: lua'>--Variables
local Echo = script.Parent
--Positions
wait(10)
script.Parent:SetPrimaryPartCFrame()(Vector3.new(1.67, 3.054, 44.89))
Echo.Shutter... | 95107 | 1 | 87858 | 1 | 322220443 | GeneratedScript | 740 | 2020-02-24 04:10:42 | <p>There are a few things wrong. First, <code>SetPrimaryPartCFrame()</code> doesn't work like that. It works like this: <code>model:SetPrimaryPartCFrame(CFrame.new())</code>. It has to go inside the parentheses. Second, <code>CFrame.new()</code> accepts 2 main Vector3s: Position and LookVector.</p>
<p>An example: Lets ... |
0 | i'm trying to get half of the players in the server but it wont work? | 88130316 | Stea_my | 33 | 2021-06-09 23:58:55 | <p>i'm trying to grab half of the players and assign those players to the guards team, but it doesnt work for some reason, it showed on my screen that it was working, but on my friend's screen his team was still neutral (this is in a serverscript). any fixes? heres my code:</p>
<pre class='brush: lua'>while wait() do
... | 124238 | ||||||||
0 | Is this right way to make player teleport? | 124655577 | Sabailuridze | 111 | 2022-08-02 06:47:50 | <pre class='brush: lua'>script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent:MoveTo(script.Parent.Parent.Part.Position)
end
end)
</pre>
<p>I have seen people use HumanoidRootPart and CFrame for teleport but is there anything wrong with making player telepo... | 131055 | ||||||||
0 | How to blocks the error plugins? | 1792778813 | Xapelize | 2326 | 2019-10-23 11:09:21 | <h1>Please note this is a old post, so the time when I posted this I was a young kid, please don't complain</h1>
<p>Some plugins when blocked, it wasn't just closed. It just stays there. I unactive all the plugins, and try to delete it, reopen the Roblox studio, and redownload and reopen the Roblox studio... I opened a... | 89129 | ||||||||
0 | How do I make a player swim while touching a part? | 96317377 | CaptainAlien132 | 225 | 2018-11-14 04:10:20 | <p>I'm trying to make it so when you touch a certain part you'll start swimming, but when you stop you'll go back to normal. I put the script in the workspace since it's in a local script.</p>
<pre class='brush: lua'>function onTouch(hit)
game.StarterGui.Water.Water.Visible = true
local humanoid = part.Parent:findF... | 70552 | ||||||||
0 | How to TextBounds without using the property? | 31265920 | Azarth | 3141 | 2014-03-28 04:54:47 | <p>I'm scripting a global leaderboard with data store, so I can't use a localscript, which means I can't use the TextBounds property. What else can I do to match the length of the GUI to the end of the labels last letter?</p>
| 938 | ||||||||
0 | Question with loadstring(String) | 25691148 | FromLegoUniverse | 264 | 2014-02-20 02:06:01 | <p>I was trying to do tests on creating equations in string forms and using them to calculate numbers. It is supposed to print "10", but it is printing "nil".</p>
<p>local E = "X+Y"
local X = 9
local Y = 1
local A = 0</p>
<p>A = loadstring(E)
print(A)</p>
<p>Do I have something not working/missing to solve the equation... | 149 | 1 | 285 | 3 | 947798 | MrNicNac | 855 | 2014-02-20 02:31:26 | <p>Your code needs to look like this:</p>
<pre class='brush: lua'>local E = "X+Y"
X = 9
Y = 1
A = loadstring("return " .. E)() print(A)
</pre>
<p>First off, you need to call the function returned by loadstring with () at the end of loadstring(String). Second, you need to return <em>E</em> as I have shown.</p>
<p>Also, ... |
0 | I'm confused on how to add something to a players starter pack using script? | 511436080 | Alex_Potter12 | 2 | 2019-02-07 15:06:18 | <p>This is my code.....</p>
<pre class="brush: lua">game.Players.PlayerAdded:connect(function(player)
local folder = Instance.new("Folder",player)
folder.Name = "leaderstats"
local currency1 = Instance.new("IntValue",folder)
currency1.Name = "Kills"
player.CharacterAdded:connect(function(character)
... | 75833 | 1 | 71250 | 0 | 272859903 | Miniller | 562 | 2019-02-07 15:53:13 | <p>There is an example script on how to add a tool to a player's backpack.</p>
<pre class="brush: lua">game.Players.PlayerAdded:Connect(function(plr)
plr:WaitForChild("Backpack")
local cl = game.ReplicatedStorage.Tool:Clone()
cl.Name = "Tool"
cl.Parent = plr.Backpack -- this is the point of the script
e... |
0 | How do i turn an obect a different color when you click it? | 190213294 | 65E0 | 9 | 2021-06-13 15:10:28 | <p>I made a button that Deleted the baseplate and turned black at the same time</p>
<p>This is the code i used:</p>
<p>function onClicked()
local counter = 0
while(counter <531) do
game.Workspace.Baseplate:Destroy()
game.Workspace.Baseplate:Destroy()
game.Workspace.Baseplate:Destroy()
game.Workspace.Baseplate:Destro... | 124351 | 1 | 113353 | 0 | 1533246993 | CountOnMeBro | 51 | 2021-06-13 16:54:20 | <pre class='brush: lua'>script.Parent.Color = Color3.new(0, 0, 0)
</pre>
<p>Color3 describes a color using RGB.</p>
|
1 | What does the function (ontouch) do? | 20937487 | AudreyJeanx | 55 | 2014-05-03 03:40:43 | <p>I'm learning how to script with Wiki, and it says stuff about this function. I'm very confused of what it means... Please help?</p>
| 4179 | ||||||||
0 | How do I make a GUI appear when a player joins? | 103919802 | TheBuliderMC | 80 | 2020-10-07 22:44:49 | <p>How do I make a GUI appear when a player joins? This is stupid complicated for me sadly.</p>
<p>Remote event that fires when a player joins (script)</p>
<pre class='brush: lua'>local event = game.ReplicatedStorage
local Players = game:GetService("Players")
game.Players.PlayerAdded:Connect(function(player)
event.... | 114126 | ||||||||
1 | Is it a good idea to save player's data after every 60 seconds? | 443643048 | Soban06 | 293 | 2020-11-23 17:36:26 | <p>Now I know that you can save values via DataStores whenever the player leaves the game.
I have also seen some people on the devforum or on scriptinghelpers making an auto save system which saves the players data every 60 seconds or so.</p>
<p><strong><em>Now my question:</em></strong></p>
<p>Let's suppose you implem... | 116214 | ||||||||
0 | How would I script a regen button? | 6762467 | Wolf8D | 25 | 2014-02-19 23:22:07 | <p>I want to be able to make a regen button that does not remove the model when regenerating a second time. This is a problem because whenever I use a vehicle with a regen and someone touches the regen, the vehicle that I was currently in disappears. What I mean is to duplicate a model without taking away another.</p>
... | 139 | 3 | 270 | 1 | 1546726 | nate890 | 495 | 2014-02-19 23:50:07 | <p>Use this regenerate script:</p>
<pre class='brush: lua'>local myModel = workspace.Vehicle
local button = script.Parent
local deb = false
myModel.Parent = nil --Hide your model, it still exists
button.Touched:connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if not deb and p... |
0 | MessageOut Event | 25622294 | Muoshuu | 583 | 2014-02-18 16:09:17 | <p>Is there a way to find out which script errored?</p>
| 62 | 3 | 124 | 3 | 13416513 | Merely | 2117 | 2014-02-18 17:55:43 | <p>Instead of using the LogService for getting script errors, I recommend using ScriptContext's error event. It gives you a reference to the script object that errored, as well as the stack trace and the error message.</p>
<pre class='brush: lua'>game:GetService("ScriptContext").Error:connect(function(message, trace, s... |
0 | Will translating a model into another model activate a .Touched line of code? | 49776603 | TomsGames | 225 | 2014-02-19 13:33:37 | <p>script.Parent.Touched:connect(functiona)</p>
<p>If I move the parent of that script into another brick will that activate functiona? If not, how can I do that?</p>
| 84 | ||||||||
0 | Why Wont It Change Colors When Touched? | 1601193280 | JordanTheDev_Team | 31 | 2020-10-17 19:45:39 | <pre class='brush: lua'>local function onTouch(hit)
game.Workspace.Part.BrickColor = BrickColor.new("Mid gray")
end
</pre>
<p>No errors?</p>
| 114491 | ||||||||
0 | Unable to cast value to Object? | 4530254 | TheArmoredReaper | 173 | 2015-02-03 13:42:24 | <p>I made an Income script, but I'm getting this error : "Unable to cast value to Object". Here's the entire script for you to see</p>
<pre class="brush: lua">Income = script.Parent.Configuration.Income
CashAmount = Income.Cash.Amount
ResearchAmount = Income.Research.Amount
Time = Income.Time
Owner = Income.Parent.Tyco... | 14717 | ||||||||
2 | Wont refresh when the player resets? | 41274644 | AdvancedCode | 136 | 2017-06-15 03:07:56 | <pre class="brush: lua">local Hat = game.ReplicatedStorage:WaitForChild("Hat_1")
local Player = game.Players.LocalPlayer
local Char = Player.Character
local Humanoid = Char:WaitForChild("Humanoid")
function GetPlayers()
for _,v in pairs(game.Players:GetChildren()) do
if v.Name == "Player1" then
Humanoid:Ad... | 44037 | ||||||||
0 | Idle animation for my tool is overriding my attack animation, help? | 104269101 | kingsworld9 | 4 | 2021-04-05 19:39:34 | <p>(Read to bottom)</p>
<p>When I equip my hammer tool, it plays an idle animation because of the following Local Script:</p>
<pre class='brush: lua'>local tool = script.Parent
local Anim = Instance.new("Animation")
Anim.AnimationId = "rbxassetid://6636798666"
local track
tool.Equipped:Connect(function()
track = sc... | 122047 | ||||||||
0 | Attempt to perform arithmetic on nil value? | 18231311 | OnlineOne | 0 | 2018-03-27 14:32:18 | <p>function RoundHours(playerKey)
local unrHours = MinutesBank:GetAsync(playerKey) / 60;
local rndHours = nil;</p>
<pre class="brush: lua">if(string.match(tostring(unrHours), "."))then--If it's an uneven division
local _, lop = string.find(tostring(unrHours), ".");
local strLen = string.len(tostring(unrHours));... | 55727 | ||||||||
0 | how to change humanoid speed when they join a game? | 1109192997 | Afterineta | 2 | 2022-09-19 02:51:17 | <p>I want to make it so that when the player joins with the automatic walkspeed of "16" ,the walkspeed turns into 20 when they join the game instead of 16. I have searched this problem up with no answer and i am really lost lol. So i was wondering how would I do this?</p>
| 131669 | 1 | 118915 | 0 | 491970127 | NotFrindow | 346 | 2022-09-19 06:22:37 | <p>You could go to <code>StarterPlayer</code> in the explorer and set the <code>CharacterWalkSpeed</code> property to whatever you want the walk speed to be.</p>
|
0 | Humanoid is not a valid member of Model? anyone know how to fix this? | 995903142 | BonkedWasTaken | 0 | 2022-08-02 22:20:36 | <pre class='brush: lua'>I'm scripting from a youtube tutorial and I'm making a tower defense game and for some reason I have a error "Humanoid is not a valid member of model Workspace.Towers.Slinger? (also the error is on line 63)
(towers is my folder where I put my towers in and slinger is the towers name) does anyone... | 131074 | ||||||||
0 | [Obfuscation] How do I Deobfuscate the Obfuscated code correctly? | 66615228 | Emg14 | 10 | 2015-01-22 14:22:58 | <pre class='brush: lua'>local function Obfuscate(code)
local oCode = ''
for i = 1,code:len() do
oCode = oCode .. string.byte(string.sub(code,i,i)) .. ','
end
oCode = string.sub(oCode,1,oCode:len() - 1)
return oCode
end
local function Deobfuscate(code)
local dCode = ''
for i = 1,code:... | 14405 | 1 | 17463 | 1 | 386992 | BlueTaslem | 18071 | 2015-01-22 18:16:40 | <p><code>Obfuscate</code> doesn't result in a string of alternating commas and digits like you seem to be assuming it does.</p>
<p>It doesn't form any nice pattern, and since Lua doesn't provide a <code>split</code> method, you won't want to implement it the way you are.</p>
<hr />
<p>One option is to use the <code>:gm... |
0 | Is it possible to make a part an animation? | 64788197 | MysticalMod | 0 | 2014-04-16 12:44:08 | <p>For example, I want an rocking chair, with an woman rocking on it tooo...Is it possible?</p>
| 2137 | ||||||||
0 | How would I make my script have a debounce? | 1645065296 | cool1234great | 3 | 2022-05-08 12:28:02 | <p>My script makes a NPC say something when a proximity prompt is run, but I want a debounce.
I am not too familiar with debounces, but I feel like I could use some help.</p>
<p>I know I could use <strong>HoldDuration</strong>, but that could break upcoming scripts that may be added.</p>
<p>This is my current script:</... | 129957 | ||||||||
0 | Why isn't the character's head disappearing? | 37794064 | Discern | 1007 | 2014-11-27 23:13:52 | <p>The player's head is supposed to disappear every time they spawn. I am getting an output. Here is my <em>LocalScript</em> inside <em>StarterGui</em>.</p>
<pre class='brush: lua'>local player = game.Players.LocalPlayer
repeat wait() until player.Character
local character = player.Character
local head = character:Wait... | 12806 | ||||||||
0 | Making a car damaging system with FE Gun Kit But i have trouble damaging the car??? | 1400234436 | KoalaKo_XD | 15 | 2022-07-31 16:19:39 | <p>So I'm making a car damaging system. I have the function for turning the car into a pile of scrap once it reaches 0 health, but I have trouble for making the car take damage once a player shoots at it with a gun from FE Gun Kit. Here is my code so far:</p>
<pre class='brush: lua'>while true do
wait(0.5)
for ... | 131029 | ||||||||
1 | Why does this Local Script not change an Image after a certain amount of time once it is clicked? | 1546980603 | Jakob_Cashy | 67 | 2020-05-18 05:02:17 | <p>https://www.youtube.com/watch?v=9B5cE0NavkY&feature=youtu.be</p>
<p>Up there is a video of what is happenining</p>
<p>Down below is the Local Script that I thought would work.</p>
<pre class='brush: lua'>local Button = script.Parent
local ImageActivated = "rbxassetid://5049442176"
local ImageNormal = "rbxassetid... | 103517 | 1 | 95561 | 0 | 29509735 | legoguy939 | 403 | 2020-05-18 06:40:17 | <p>**I mean you literally answered your question yourself.</p>
<p>"ImageActivated hasnt been approved from ROBLOX yet because I had just made the decal that is why it is black i think"</p>
<p>I tested it for you. It works, just not yet with those decals.</p>
<p>The code is great. Good job!**</p>
<p>Edit: I'm wrong.</p>... |
0 | How do I increase/decrease the size of R6 characters through a script? | 436466229 | trecept | 367 | 2018-12-26 10:14:20 | <p>I want to be able to increase/decrease the size of R6 characters through a script, but I have no idea how to do this and have been trying to search a way how. When I try to resize a limb it falls off or the character resets, and I don't know how I would reapply joints if I had to. How could I do this?</p>
| 72992 | 1 | 68953 | 2 | 552450977 | ksony | 54 | 2018-12-26 11:54:59 | <p>I found this code, it may kill the player but it almost always works (depending on what I read, I did not try it), it also has a gui, if you do not want the gui, delete it</p>
<p>which it says that it is not from him, it is from a video</p>
|
0 | How do i enable a LocalScript inside of PlayerGui via another LocalScript? | 660419658 | zenfurious6 | 7 | 2021-12-11 10:29:18 | <p>So what i am trying to do is:
When you click an egg, it activates a <code>Script</code> (working), then at the end of that script, it activates a <code>LocalScript</code> (this code works too) but the problem is that, it gets activated but doesn't activate the one inside of <code>PlayerGui</code></p>
<p>Here is the ... | 128194 | ||||||||
0 | How to determine if a model is within a cylinder? | 29783818 | RobustPhysics | 25 | 2014-03-11 02:08:10 | <p>For my Bleach RPG, I am creating a Cero beam attack that will launch out and damage enemies. It's pretty much a basic cylinder mesh that launches forward (like a Kamehameha from Dragon Ball), and will damage whatever enemy character is within the beam. I managed to get it to work, but I feel that there is a better w... | 626 | ||||||||
0 | [SOLVED] Why does this script that gets a random member in an array not work? | 493071799 | DesertusX | 430 | 2020-04-26 09:45:22 | <p>So, I made a script that gets a random member from an array. Its parent is a StringValue in workspace. I <strong>don't</strong> get any errors in the output. Can anyone help? Thanks for helping.</p>
<pre class='brush: lua'>moves = {"move1"; "move2"; "move3"; "move4"; "move5"; "move6"}
function r(m)
return math.r... | 100788 | ||||||||
0 | I am having a problem with teleporting a tool with coordinates? | 124000282 | awesomespeed101 | 6 | 2021-01-18 22:04:50 | <p>I'm trying to make it so when you touch this button, the tool clones itself and teleports to these coordinates (-98.839, -111.395, -59.275) but I can't figure it out.
My script:</p>
<pre class='brush: lua'><br />game.Workspace.spawnbutton.Transparency = 0
local clone = game.Workspace.RoomKey:Clone()
local KEYDOOR = ... | 118875 | 1 | 108674 | 0 | 76734233 | generalYURASKO | 99 | 2021-01-18 22:56:41 | <p>Your defining CFrame incorrectly. CFrame contains both position and orientation.
ex.</p>
<pre class='brush: lua'>local CFrame = CFrame.new(position, orientation)
</pre>
<p>In addition when defining information like position you need to do so as a Vector3, which are their own data type.
ex.</p>
<pre class='brush: lua... |
0 | Is there a difference between game.Workspace and Workspace.(name of child)? | 367143712 | AltNature | 169 | 2018-07-15 23:46:27 | <p>I was wondering whether or not I could shorten my script a little using this but I'm unsure if there was a difference.</p>
| 62842 | ||||||||
0 | Issue with nuke kill script when the nuke explodes. Any solutions? | 1506403211 | xp5u | 25 | 2021-06-05 06:10:29 | <pre class='brush: lua'><br />h = Instance.new("Hint", game.ReplicatedStorage)
script.Parent.Script.Disabled = true
script.Parent.Parent.Alert:Play()
wait(3)
script.Parent.Parent.Evac:Play()
h.Text = "Self-Destruct been has activated."
wait(1)
h.Text = "You Have 30 Seconds!"
script.Parent.Parent.Alarm:Play()
script.Par... | 124093 | ||||||||
0 | How do you temporarily stop regen Health when damaged? | 179299 | Torekalanae | 2 | 2022-06-18 08:58:14 | <p>all answers are appreciated</p>
| 130387 | 1 | 117735 | 0 | 368080440 | VAnkata20 | 49 | 2022-06-18 10:26:27 | <p>I looked at your question and got interested myself and I made the code for that. here it is</p>
<pre class='brush: lua'>local Character = script.Parent
local Humanoid = Character:WaitForChild("Humanoid")
local CurrentHealth = Humanoid.Health
local HealthScript = Character:FindFirstChild("Health")
Humanoid.HealthCha... |
0 | How to you make a animation play on a dummy when you touch a part? | 1335034610 | ExCaliberDen | 3 | 2020-06-04 04:46:33 | <p>I can't find information anywhere about this so I wanted to ask you guys to see if you know how to do it.</p>
| 105288 | ||||||||
0 | Need help with this GetChildren Function? | 25240799 | BearKranz | 41 | 2017-01-17 05:49:48 | <p>I have a function trying to turn people invisible but it refuses to work or give me an error message, how would i fix it?</p>
| 39109 | 1 | 41404 | 0 | 386992 | BlueTaslem | 18071 | 2017-01-17 06:00:46 | <p>First, style.</p>
<ul>
<li>You should mostlikely use <code>:IsA("Part")</code> instead of <code>.ClassName == "Part"</code>. </li>
<li><strong>tab your code correctly</strong>.</li>
<li>Use <code>elseif</code> for consecutive <code>if</code>s where only one of them can happen. It's shorter and easier on the eyes</li... |
0 | Roblox Group API Query Help? | 447314079 | thanknoah | 0 | 2021-05-02 06:40:55 | <p>Hi, so I am trying to use Roblox's API to find groups which are not locked. I've looked all over the documentation and I did find potential solutions, /v1/groups/search. However it did not have these specific parameters publicEntryAllowed=true&owner=null&isLocked=false. Anyone know what I should use?</p>
<p>... | 123021 | ||||||||
1 | attempt to index nil with 'LoadAnimation' ? | 203253723 | xxXDuckzzXxx | 15 | 2022-11-19 15:25:04 | <p>So I'm scripting a tool and the load animation is not working</p>
<p>Originally I had the animations loaded inside the functions it would work when you equipped the tool and break when you unequipped the tool.</p>
<p>now it just doesn't work at all</p>
<p>anyone able to help out?</p>
<pre class='brush: lua'>local To... | 132316 | ||||||||
0 | My only team leaderstats script dont work idk why can you ehlp me? | 777101137 | frjhue | 2 | 2022-06-18 10:01:14 | <p>this script isnt working idk why if someone can tell me where to put something. It has to work for only one team or is there easy was like do custom leaderstats or do it something else?</p>
<p>local DataStoreService = game:GetService("DataStoreService")
local DataStore = DataStoreService:GetDataStore("ForceStats") -... | 130389 | ||||||||
1 | Formula for block-snapping in building systems? | 386632990 | gmatchOnRoblox | 98 | 2018-02-11 09:24:48 | <p>Hello! I've been working on a simple building-system. I have a problem where when I move my cursor to the left (or right depending on which way I'm facing) it snaps halfway through the block instead of the mouse actually being outside of the part.</p>
<p>TLDR:</p>
<p>Join this game, Press Z, and move your mouse half... | 53535 | ||||||||
0 | why does it say nil but doesnt take me to the problem when i click on it? | 1908439866 | momgggbghghghghg | 50 | 2021-06-07 18:44:54 | <p>game.ReplicatedStorage.RemoteEvent.OnClientEvent:Connect(function()
local function teamFromColor(color)
for _,t in pairs(game:GetService("Teams"):GetChildren()) do
if t.TeamColor==color then return t end
end
return nil
end</p>
<p>local function onSpawned(plr)
local tools = teamFromColor(plr.TeamColor):GetChildren()
... | 124174 | ||||||||
0 | Group Rank Label Doesnt Work? | 256891495 | stevenfury91 | 6 | 2020-10-18 05:59:23 | <p>This is in serverstorage a billboard gui</p>
<pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(Player)
if Player:GetRankInGroup(7870490) == 255 then
script.Parent.Text = "Red Dino"
elseif Player:GetRankInGroup(7870490) == 254 then
script.Parent.Text = "Dino Dev"
elseif Pla... | 114507 | 1 | 105186 | 0 | 182139900 | WideSteal321 | 924 | 2020-10-18 06:30:20 | <p>It is a very common problem but, no scripts can run inside of <code>ServerStorage</code>. This script should go in <code>ServerScriptService</code>, which is similar to <code>ServerStorage</code> but holds scripts.</p>
<p>For more information on <code>ServerScriptService</code> and <code>ServerStorage</code> can be ... |
0 | How would I make a paint tool useful on only one base? | 15420483 | VentusWind78 | 25 | 2014-04-26 04:02:48 | <p>So I'm trying to edit a paint tool so it only works on the base that the player has selected to use. How Would I do this? Here's the script:</p>
<pre class='brush: lua'>local Tool = script.Parent
enabled = true
local origTexture = Tool.TextureId
game:GetService("ContentProvider"):Preload("rbxasset://icons/color_... | 3561 | ||||||||
1 | How to start scripting? | 40440958 | hellsoul101 | 7 | 2016-03-28 19:55:29 | <p>I want to be able to script big games like combat games etc, so I know I have to start somewhere so i went to roblox wiki and I tried some of the tutorials but all the scripts that i try to do are usually failing and sometimes it brings in new words and things that i don't know what they are. So is there any site/vi... | 28975 | 4 | 32412 | 16 | 65765854 | eLunate | 5136 | 2016-03-28 20:21:42 | <p><strong>Learn</strong><br />
<em>Seriously.</em></p>
<p>Now, I'm going to get a lot of hate for this but hear me out. What you are probably doing, and a lot of people are guilty of this so don't worry, is that you are simply <em>looking</em>. Learning is something you have to really want to do, and you have to do it... |
0 | How To Charge With FilteringEnabled? | 105249554 | Ruves | 21 | 2020-02-20 00:02:46 | <p>I'm trying to make it so while the mouse is down my ability starts charging and then when released will activate, my problem is how would I execute this with FilteringEnabled? I've been able to do it without but how would I pass through the charging value to expand the size of a part gradually as the mouse is held?<... | 94860 | 3 | 87622 | 2 | 322220443 | GeneratedScript | 740 | 2020-02-20 00:08:47 | <p>When you click MouseButton1, fire a Remote Event/Function. You could either pass it with an argument to see if they are holding down or let go (true or false). On InputEnded, fire either the same Remote (with false or whatever you set as parameter) or a different one. Then you can use a NumberValue as an iterator fo... |
0 | I'm trying to replicate a part from the client to the server how would I do that? | 114964274 | Rogue_Ram | 40 | 2021-02-11 16:36:51 | <p>So the part gets created on the client after that I fire a remote event with the Cframe and size but the part ends up super small and not the right cframe here's the script on the client</p>
<pre class='brush: lua'>local UIS = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local... | 119971 | ||||||||
0 | How do I make it so the bullet actually comes from the barrel? | 1752724383 | Xyternal | 247 | 2022-09-17 21:40:34 | <p>In my gun, if I stand in one spot and shoot, the bullet will come out from the barrel. If I start jumping around like an idiot with the gun, or going in circles super fast, the bullet comes out from where it was 1 second ago. How to fix? My codes.</p>
<p>Bullet:</p>
<pre class='brush: lua'>function getRemote(remote)... | 131656 | ||||||||
0 | How so I call for an audio to play all the way through? | 328413134 | LiLFriks | 35 | 2020-08-01 00:48:38 | <p>Hello! I have a music playlist local script inside StarterGUI. Everything works perfectly fine, but I was wondering how to make the songs play all the way through instead of having to add a wait(130). I've noticed that some of the songs cut off either too early or too late with this wait, so I really wanted to just ... | 110430 | 1 | 101444 | 0 | 131470756 | Pupppy44 | 458 | 2020-08-01 00:51:02 | <p>You can use the Ended function.</p>
<pre class='brush: lua'>sound:Play()
sound.Ended:Wait()
sound:Destroy()
</pre>
<p>From the Wiki. Check it here: https://developer.roblox.com/en-us/api-reference/event/Sound/Ended</p>
|
0 | Upon joining my game, your character will appear sideways visually. How do I fix this? | 37745860 | BunjiBloxxer | 51 | 2022-06-20 18:23:38 | <p>You can still move around normally, but the character is at a 90° angle. It fixes once you die. Here is the script I believe is the problem. My game is an obby, and this script helps run the checkpoint system:</p>
<pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(plr)
local stage = plr:WaitForChi... | 130425 | 1 | 117764 | 0 | 1392128777 | fiddyfiddler | 18 | 2022-06-20 19:34:00 | <p>I see the problem. It is a bit difficult to understand, but I will show you what is wrong. Starting on Line 7, it says CFrame.new(checkpoint.Position + Vector3.new(0,5,0)Also, don't put anything inside of here like you did.)</p>
<p>Problem 1)</p>
<p>On line 7 you did + Vector3.new. This is wrong, you need to do this... |
0 | "Touched is not a valid member of Model "Workspace. ""? | 147305218 | PeterParker17386 | 14 | 2022-11-12 19:35:56 | <p>When i add my badge script is says "Touched is not a valid member of Model "Workspace. ""
this is my script:</p>
<pre class='brush: lua'>local BadgeService = game:GetService("BadgeService")
local Players = game:GetService("Players")
local Part = script.Parent
local IDToAward = 2129399776
local debounce = true
Part.T... | 132252 | ||||||||
0 | Wait() doesn't works or works but not properly in RunServices? | 1451175629 | SuAkihiro | 72 | 2020-09-13 06:51:20 | <pre class='brush: lua'>RS.RenderStepped:Connect(function()
if KeyHeld == true then
if sec < 10 then
sec = sec + 1
print(sec)
wait(0.5)
end
else
sec = 0
end
end)
</pre>
<p>basiaclly I'm trying to make some kind of held down key triggers where it... | 113108 | ||||||||
2 | How to make a ball roll in the direction one is facing? | 44083134 | Fifkee | 2017 | 2018-04-14 10:48:59 | <p>I have NO idea how to do this. None at all.</p>
<p>What I attempted was to use a bodyvelocity and get the direction it was moving, but as you can probably tell.. no workie. I also tried using a bodyforce to make it roll around.</p>
<p>See, I could use a bodyposition, but I want the ball to keep all it's gravitationa... | 56779 | 1 | 55504 | 1 | 896716 | NotInventedHere | 158 | 2018-04-14 14:27:51 | <p>Use the lookVector of the character's HumanoidRootPart, then multiply that by whatever speed you want to give it.</p>
<pre class='brush: lua'>local angle = character.HumanoidRootPart.CFrame.lookVector
</pre>
<p>If you want it to keep its gravitational capacities, just change the Velocity of the part. I don't think a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.