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 | converting data persistence to Data stores? | 16332998 | Bubbles5610 | 217 | 2016-02-18 19:15:19 | <p>question says it all, i have a big game with many players that dont want to lose their data persistence, and for them to lose it would mean losing the players, and losing front page. Ive only found out recently i need data stores to transfer data across multiple places in a universe (i think). so i was wondering if ... | 27579 | ||||||||
0 | ScreenGui not showing up with FilteringEnabled? | 150005945 | snarns | 25 | 2017-04-09 18:18:02 | <p>If you click a part, a ScreenGui should show up only for the client. It's supposed to be a dialog box like in an rpg. However, this works in Studio, but not when published. What can I do to fix this?</p>
<pre class='brush: lua'>local ClickerModule = require(343254562)
local clickEvent = ClickerModule.RemoteEvent
loc... | 41805 | ||||||||
0 | what are parameters and arguments? | 206639588 | fifayy | 16 | 2020-04-22 21:37:26 | <p>Can someone explain what parameters and arguments are in functions?</p>
| 100333 | 3 | 92700 | 0 | 244452876 | JesseSong | 3371 | 2020-04-22 21:53:11 | <p>Basically, a parameter is the variable that has been referenced by a function and an argument is iterators such as values that are passed in to an argument.
If you still don't understand please click <a target="_blank" href="https://m.youtube.com/watch?v=bkp3OBs0oV0">here</a></p>
<blockquote>
<p>Note I suggest you t... |
0 | Why is my remote event being detected multiple times? | 553943693 | Qwertoony | 70 | 2021-07-05 20:41:46 | <pre class='brush: lua'>local explosion = nil
local tool = script.Parent
local DuplicatePrevention = {}
local player = tool.Parent.Parent
script.Parent.Activated:Connect(function(Activated)
game.ReplicatedStorage.RemoteEvent:FireClient(player)
print("Fired Client")
Activated = nil
game.ReplicatedStorage... | 125090 | 1 | 113908 | 0 | 1098704750 | Trampyling | 36 | 2021-07-05 20:45:34 | <p>use deactivate function when it becomes activated!</p>
|
0 | Making Sure Player has Clothes? | 358294883 | LegoUnicornRoblox | 37 | 2019-08-19 23:44:44 | <pre class='brush: lua'>--------------------------------------------------------------------
Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=(ID)"
-----------------------------------------------------------------------------
Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=(ID)" if Char... | 86193 | 1 | 79945 | 1 | 20111088 | royaltoe | 5144 | 2019-08-20 00:01:31 | <p>Line 11 tries to set the shirt graphic's graphics and will error if there is no shirt graphic since you can't set the graphics value of nothing.</p>
<pre class='brush: lua'>Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=(ID)"
Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=(ID)" if... |
0 | How do I load a roblox charactewr within a script? | 2061491098 | ANullMan | 0 | 2021-02-22 21:02:42 | <p>I know how to use <code>game.Players:GetHumanoidDescriptionFromUserId()</code> but the accessories all appear at the head and not in the correct places</p>
| 120529 | ||||||||
0 | How do I make it so when the zombie has no target close enough it goes to a certain part? | 1723050796 | RenDevelopment | 15 | 2020-06-29 19:54:10 | <p>I know nothing about stuff
f like this, so help would be appreciated :)</p>
<p>I am making a zombie that goes to a certain part when it has no target</p>
<p>Part of the script:</p>
<pre class='brush: lua'>function walkRandomly()
local xRand = math.random(-50,50)
local zRand = math.random(-50,50)
local go... | 107775 | ||||||||
2 | It doesnt work can you help me? | 28197816 | neoG457 | 315 | 2014-06-03 21:28:35 | <blockquote>
<p>Humanoid.Anchored = true</p>
</blockquote>
<p>Im not sure if this is the right code to freeze the player.</p>
| 6124 | ||||||||
0 | Why Won't The Bus Animation Play In A LocalScript? | 1061148582 | YoMrPanda | 4 | 2023-01-18 17:26:24 | <p>Hello! So today I was making an animation for a bus, and I wanted to put the animation of the bus when a player joins the game, and make the local player the only one that can see the bus animation. I inserted an "AnimationController" in the bus, and then I inserted an Animation object named "BusGoesOff" and an "Ani... | 132888 | ||||||||
2 | How can i make a person stay seated? | 7045759 | robloxiveboy | 25 | 2015-04-11 01:44:34 | <p>I'm trying to make seats on a go kart to prevent people from getting off or jumping off the seat. What lines of a code can i add to a gokart seat to prevent someone from jumping off the seat or coming off until they are tped to lobby after they finish?</p>
| 16580 | 1 | 19933 | 10 | 19566737 | Unclear | 1776 | 2015-04-11 02:08:15 | <p>To be honest, there is no easy way to go about this if you are limiting your view to just Seats.</p>
<p>That's why we are going to <em>cheat</em>.</p>
<p>Have you ever considered maybe just replicating Seat behavior with a regular part that acts as your seat? We can do this with a Part, a Weld, and a reference to th... |
1 | Issues with HttpService/Trello Script? | 23578156 | iRealizm | 25 | 2015-02-04 01:40:21 | <p>No idea what is wrong with this code, basically, it is supposed to fire the code to Trello and create a card in Trello, yet this is obviously not happening. If it were I would not be asking. Anyway, below is the code, the answer to my problems may be simple syntax, but I'm guessing not.</p>
<pre class="brush: lua">f... | 14731 | ||||||||
0 | How to make a raycast work in Scripts? Client/Server | 1288500822 | Finty_james | 53 | 2021-04-08 14:09:50 | <p>I wanted to make a gun, I used remote events to link them, I did raycasting, but for some reason The raycast didn't work. Am I using raycasting wrong? I also used the deprecated way, but nothing worked. I think I did something wrong, can someone help me?</p>
| 122145 | ||||||||
1 | Weird client-server thingy behaviour ? | 111523961 | Azure_Kite | 870 | 2018-05-29 15:18:41 | <p><a target="_blank" href="https://www.youtube.com/watch?v=KSIY9d1YjzE">Look at this </a></p>
<p>Isn't changes from the client going to be rejected by the server?</p>
<p>So why is the position updated while its unanchored? it didn't change the size though</p>
<p>Does this have anything to do with Part's NetworkOwner?<... | 59230 | 2 | 84801 | 1 | 320691098 | Gojinhan | 353 | 2019-12-19 16:15:47 | <p>Set the part's NetWorkOwnership to nil. This is a problem with pathfinding NPC's too because if u enter a radius they start to bug and move slower and update slower.</p>
<p>Here's a sample code, sometimes it might change back.</p>
<pre class='brush: lua'>part = script.Parent
part:SetNetworkOwner(nil)
</pre>
|
0 | [Solved] How can i make this variable be changed for the entire script? | 204455241 | David0fficial_BR | 173 | 2019-07-03 18:16:55 | <p>Tittle says it all. Here's the script:</p>
<p><strong>Script:</strong></p>
<pre class='brush: lua'>game.ReplicatedStorage.HLC_CTRLS.W_Began.OnServerInvoke = function(player)
W_KeyDown = true
print("Remote function was invoked")
end
if(W_KeyDown)then
print("Variable was changed.")
end
</pre>
<p>The first ... | 82910 | ||||||||
0 | How to add a float effect to GUI? | 714312166 | PrismaticFruits | 842 | 2020-07-21 16:50:12 | <p>I am aware you cannot request for scripts on this site but trust me, I have searched long and wide on <a target="_blank" href="https://www.google.com">Google</a>, <a target="_blank" href="http://devforum.roblox.com">DevForum</a> and <a target="_blank" href="https://scriptinghelpers.org">ScriptingHelpers</a> and the ... | 109621 | 3 | 100765 | 1 | 1777456227 | Nickuhhhhhhhhhhhhhhh | 834 | 2020-07-21 18:48:48 | <p>Although they provided a solution, a better way would be to use <a target="_blank" href="https://developer.roblox.com/en-us/api-reference/class/TweenService">TweenService</a> so you could change both the size and color at the same time.</p>
<pre class="brush: lua">TweenService:Create(Frame, TweenInfo.new(1, Enum.Eas... |
0 | (SOLVED)VIP door help? | 43561529 | BritishGotSwag | 30 | 2014-05-09 21:56:06 | <pre class='brush: lua'>local Door = script.Parent --Declares the part as a door
function onTouch(Brick) --Sets the start of function and when triggered it gives "Brick" the object was hit
local Player = Brick.Parent:findFirstChild("Humanoid") --Finds Humanoid in brick
if(Player ~= nil) then --Sees if it's an a... | 4601 | ||||||||
0 | StarterCharacter for a specific user? | 339048720 | 5tchimski | 0 | 2021-09-29 23:32:29 | <p>So I have a question, I am trying to make a StarterCharacter that only I can have in my game that I'm working on, I have gotten it to work using this code below, but the problem is that when anyone in my game resets, they will respawn as my character model as well, is there anyway around this? and if so can they hel... | 127746 | ||||||||
0 | Image endpoints not showing up? | 58464519 | BeatableChicken | 2 | 2017-01-11 03:20:42 | <p>Here it says that you just put that link and character id in the image label/button
http://devforum.roblox.com/t/new-image-endpoints-that-can-be-used-in-game/28182
it works with webgl3d's character but not mine. i tried a few other and its 50/50 only 50% of people show up</p>
| 38929 | ||||||||
0 | GUI udim2 position/size isn't working. (Tried countless times) new change with the udim2? | 144032893 | Grainless_Bread | 132 | 2018-11-22 18:07:40 | <p>I've tried countless times on making the GUI go to a different position. I've checked Roblox tutorials and seen that my script is correct. Please help out... it's been 3 hours.</p>
<p>SCRIPT</p>
<pre class='brush: lua'>script.Parent.Position = UDim2.new(0, 200, 0, 100)
</pre>
<p>Pictures:</p>
<p>https://gyazo.com/2a... | 70989 | 1 | 67476 | 0 | 18664243 | lazycoolboy500 | 582 | 2018-11-22 21:06:22 | <p>To start off, you shouldn't be using a Script, use a LocalScript instead. ~Thanks Kiriot22</p>
<p>Everything else seems fine. Just make sure that when you are using GUIs, you aren't using a Script.</p>
<p>If you have any questions or issues please contact me (or Kiriot22 - he seems to know what he's doing). ;)</p>
|
0 | How can I convert this from a LocalScript to a normal Script? | 15619704 | NinjoOnline | 1147 | 2014-04-26 06:08:51 | <pre class='brush: lua'> game.Players.LocalPlayer.TeamColor == BrickColor.new("Nougat")
</pre>
<p>How can I make this so it will work in just a normal script, and not need a LocalScript?</p>
| 3566 | 1 | 4967 | 0 | 1707962 | yurhomi10 | 193 | 2014-04-26 06:54:24 | <p>Finding the player could be a little weird in this situation, however you can find the player by maybe associating it with the playeradded event. It is difficult because LocalPlayer can only be used in Local Scripts. Also, make sure when you use the ' == ', its when you want to compare two things. In this case, we w... |
0 | How do I make it so when the countdown gets to 0, something happens like the screen shaking? | 581056047 | SkybaseOwner | 0 | 2022-07-30 13:13:42 | <p>I'm making an event game and I'm doing mini events, like a statue rising up after the countdown ends</p>
| 131010 | ||||||||
0 | How do you make your cursor dissapear? | 5166503 | CrazyBananaMonkey | 15 | 2014-04-13 23:15:58 | <p>I'm making an FPS (so original, right?) and want the mouse cursor to disappear as soon as you join the game. Considering that PlayerMouse isn't an option, and I don't want to use HopperBins (manually selecting? eww), my only choice is a tool. I can get it to select and change the icon fine, but the problem is if I d... | 1292 | ||||||||
1 | Why is "n" not adding it's self when i call it in a function? | 139520354 | HeroFigo | 81 | 2021-02-07 18:29:37 | <pre class="brush: lua">backup = script.Parent:Clone()
backup.Parent = nil
huma = script.Parent.Humanoid
n = 0.5
huma.Died:Connect(function()
n += n
print(n)
local lolipop = n
wait(5)
while lolipop > 0 do
backup.Parent = game.Workspace
lolipop = lolipop - 1
print(lolipop)
... | 119780 | ||||||||
0 | Why can't I destory the pet? | 595106923 | VipDanT | 0 | 2022-06-18 22:03:33 | <p>I'm working on a simulator
<em>Link btw: https://web.roblox.com/games/9952086550/Donut-Eating-Simulator</em>
And this destroy pet doesn't work. Can someone please explain this?
Here's the code:
game.ReplicatedStorage.Remotes.UnequipPet.OnServerEvent:Connect(function(player, pet)
if player.Character.Humanoid.Health ~... | 130397 | ||||||||
0 | How to play animation on click with tool? | 469389436 | jbm_pl | 4 | 2020-06-12 15:20:09 | <p>I need help because im trying to create Weight Lifting Simulator game
And my code is</p>
<pre class='brush: lua'>local UserInputService = game:GetService("UserInputService")
local Tool = script.Parent
local Animation = script.Parent.OnClick
UserInputService.InputBegan:Connect(function(InputObject)
if InputObject... | 106202 | 2 | 97791 | 0 | 1563294759 | CaIcuIati0n | 246 | 2020-06-12 16:46:43 | <h1>WHAT IS A TOOL?</h1>
<p>Tools are objects that a Humanoid object can equip. For players, they are stored in a Backpack object parented to a Player object.</p>
<p>In-game, players may have multiple tools which appear as icons at the bottom of the screen.</p>
<p>Equipping a tool moves it from the Backpack and into a ... |
1 | How do I make this script just teleport the player, not all players? | 102254161 | squidiskool | 185 | 2020-05-08 18:44:39 | <p>How do I make this script just teleport the player and not all the players? I need help. I know this is not a request site but this is the only place where I can ask.
This is a normal Script</p>
<pre class='brush: lua'>local BuggyLoc = CFrame.new(-106.428, 121.84, -194.854)
script.Parent.MouseButton1Click:connect(fu... | 102395 | 2 | 94593 | 1 | 125718500 | AwesomeHUnderwood | 514 | 2020-05-08 18:55:38 | <p>Well, you're using a script for what seems to be a job cut out for a LocalScript. <code>.MouseButton1Down</code> is meant as something registered on the Client. However, if you use a LocalScript, the teleport will only be registered on the client. We need to use a RemoteEvent to register it on the server. You can re... |
0 | [Solved]what is the Best way to run for all players through server? | 42414296 | jack001214 | 19 | 2018-06-09 04:28:06 | <p>Hello i am working on an 'antiSpeed' type exploit thing and i want to know what is the best way to run this script for all the players at the same time ( and of course improvements):</p>
<pre class='brush: lua'>for index, player in pairs(game.Players:GetChildren()) do -- not working i.e not looping in Studio dont kn... | 59953 | 3 | 58327 | 3 | 44083134 | Fifkee | 2017 | 2018-06-09 05:11:17 | <p>Why do you have to go through all that trouble?</p>
<p>Can't you just do something as simple as</p>
<pre class='brush: lua'>while wait(1) do
if Workspace:GetRealPhysicsFPS() > 65 then
game.Players.LocalPlayer:Kick()
end
end
</pre>
<p>or</p>
<pre class='brush: lua'>MAX_WALKSPEED = 30
while wait(1) do
... |
0 | How to use the clone a value into a player when they join the game? | 222676623 | kavancraft59 | 11 | 2020-09-13 17:27:18 | <p>I am trying to make it so that when a player joins the game a value gets cloned into their playergui but I can't seem to do it. Could someone help? Thanks!</p>
<pre class='brush: lua'>local clone = game.ServerStorage.canuseresearch:Clone()
game.Players.PlayerAdded:Connect(function(player)
wait(1)
print(playe... | 113123 | 1 | 103846 | 0 | 1613881755 | brodywth | 45 | 2020-09-13 17:43:53 | <p><strong>Place Inside workspace</strong>
<em>btw it takes 1.2 seconds for all scripts to load in, any time you are defining a new child which in this case is ScreenGUI. always add a wait for 1.2 seconds</em></p>
<pre class='brush: lua'>local a=game.ServerStorage.canuseresearch:Clone()
game.Players.PlayerAdded:Connect... |
1 | Hello, I have a infinate yeild issue on Humanoid:WaitForChild("UpperTorso")'. Help please? | 323815851 | ifreakinlostmyacount | 52 | 2020-07-21 20:10:56 | <p>So I do know about properties and yeilds, however I cant find a solution to this section of my script.</p>
<pre class="brush: lua">local Player = game:GetService("Players").LocalPlayer
local char = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = char:WaitForChild("Humanoid")
local Torso = Humanoid:... | 109638 | 1 | 100776 | 2 | 31504923 | rabbi99 | 714 | 2020-07-21 20:15:27 | <p>There is no UpperTorso in the humanoid. You should try this:</p>
<pre class="brush: lua">local Player = game:GetService("Players").LocalPlayer
local char = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = char:WaitForChild("Humanoid")
local Torso = char:WaitForChild("UpperTorso")
</pre>
<p>We make m... |
0 | How can I make a script that chooses a random character? | 847431372 | Student20986 | 0 | 2023-01-31 02:35:38 | <p>I am attempting to make code that will change your avatar to a random premade avatar when you join, or if your user id matches will give you a specific avatar, without using StarterCharecter. Ive been going around trying to get help for a while but nothing is helping. This code isn't finished as I've been super stum... | 132979 | ||||||||
0 | When Clicking a Part, a Gui pop-up? | 44519897 | DJShawnz | 0 | 2014-04-13 09:04:39 | <p>How to add a Gui in a Part when Clicked?</p>
| 1273 | ||||||||
0 | Where do I start? | 38901234 | TheLittleOshawott | 5 | 2014-04-15 07:35:37 | <p>I've started playing HandOfBrand's Lua tutorial, and I'm on the 'Intermediate' part.
Is this a good place to start, or should I switch to something else?</p>
<p>I especially like GUI games, which might decide what I make in the future.</p>
| 1554 | ||||||||
0 | Why does my welding script not create a ManualWeld? | 56140227 | Kampfkarren | 215 | 2016-08-04 22:25:39 | <pre class='brush: lua'>local weld = Instance.new("ManualWeld")
weld.Part0 = script.Parent
weld.Part1 = script.Parent.Parent.GunHead
weld.C0 = script.Parent.CFrame:inverse() * script.Parent.Parent.GunHead.CFrame
weld.Parent = script.Parent
</pre>
<p>This code won't work, and I have no idea why. This Script is inside a ... | 34121 | ||||||||
0 | How can i make a cancollide true for only humanoids? not any other object | 539909602 | Retallack445 | 24 | 2020-07-01 23:16:13 | <p>I want to make a door only for humanoid not any other object like a car
I don't have a code for this yet</p>
| 107976 | 1 | 99275 | 0 | 1110149261 | iivSnooxy | 248 | 2020-07-02 00:29:06 | <p>Here you go! Hope this helps!
www.youtube.com/watch?v=HgN4If7KdMo
If this helps please accept and upvote! :)</p>
|
0 | How do I make a GUI open with a click detector? (With LocalScripts) | 529859410 | JackyW9cky | 27 | 2022-01-14 23:13:32 | <p>I have been working on a game, and I have opened GUIs with normal scripts before. But, when I try to open a GUI with a LocalScript, it doesn't work. I am trying to find a way to make this work, but I can't. Any help?</p>
| 128911 | 1 | 116726 | 0 | 1028155186 | ELEKTRO8415i | 32 | 2022-01-15 00:04:51 | <p>I knew that you can't open a GUI with a <code>LocalScript</code>, but I tried to do it in several ways anyway; and actually, it can't be done. But you can do it with a <code>Script</code>, and it will only affect the player and won't affect others (only the GUI will appear for the one who pressed <code>ClickDetector... |
1 | Roblox Studio output bar not printing anything from local scripts, why? | 74109617 | pokemine1o9 | 44 | 2020-11-30 17:29:31 | <p>Hi, So I'm unsure if this post counts on this website as It's about code, so let me know if it's unwelcome. Anyways, I have an issue with Roblox studio in general, The output bar is printing no errors or print statements from local scripts. It prints just fine from a Server script, as I've tested that. Here is the c... | 116570 | 3 | 106913 | 1 | 60373878 | Ascarson4 | 138 | 2020-11-30 20:19:34 | <p>Local scripts located in the workspace do not run. You gotta put it somewhere in the player.</p>
|
5 | How would I use the DataStore to communicate between two servers? | 2900811 | Vrakos | 109 | 2014-02-20 17:51:36 | <p>Could I use DataStoreService to communicate between two servers?
If so, then how?</p>
| 172 | 2 | 966 | 11 | 4030068 | jobro13 | 980 | 2014-03-10 19:28:31 | <p>This is an interesting question, which I couldn't answer until now. I had no idea how roblox would handle conflicting data. I'll explain this with an example.</p>
<p>Let's say we have two servers. Server A and Server B. We are using this data store:</p>
<pre class='brush: lua'>local DataStoreService = game:GetServic... |
2 | Hypothetical Question- Should I learn Data Stores before learning Developer Products? | 29413559 | alphawolvess | 1784 | 2015-02-12 12:13:57 | <p>I'm just going to simply be using Developer products to increase speed. I was viewing the Roblox Wiki and they tell me I should use Data stores to manage a record of buying the Developer products. Would this be a good idea to learn about this? Why would I need to know? Also another question is when I make a Develope... | 14922 | ||||||||
0 | my bindable function is spitting out the error "attempt to call a nil value", Any help? | 99587114 | TheOof1sout | 4 | 2021-06-07 03:45:39 | <p>Hello, I'm trying to make a bindable function that after the player clicks on the text box, types something in, and then clicks enter/return it stores the word in the server and then prints it in the output. Now everything on the typing side works, It even prints out on a surfacegui. The problem is that if I try to ... | 124158 | ||||||||
0 | is it possible to make a notpad app? | 539909602 | Retallack445 | 42 | 2020-11-22 18:40:36 | <p>it seems that a notpad app in roblox is way to hard for me this is what i mean my notpad app works the same as microsoft notepad so unlimited lines if you press the space key on your keyboard it will make a new line. Sadly i do not have the code for it but i know how to make the gui.</p>
| 116164 | ||||||||
0 | Any way to pause code until event is fired? | 148527490 | manith513 | 61 | 2022-11-16 04:05:23 | <p>I have a script that fires an event, but I want that script to wait until a different event is fired. These are bindable events btw. I've tried wait(EventName.Event), repeat until EventName.Event, EventName.Event:Wait(). None of these are working. The other script is firing the event however, if I remove the Fire() ... | 132291 | 2 | 119483 | 1 | 1675553647 | MOJANGcreator091 | 45 | 2022-11-16 09:48:00 | <p>detect remote fired documentation:</p>
<p>http://create.roblox.com/docs/scripting/events/remote-events-and-functions</p>
<pre class='brush: lua'>local check_if_fired = 0
-- if fired then it should change check_if_fired to 1
--[[ if the different event is fired, try to detect it when it fires like this:
local differe... |
0 | Displaying Random Images | 28187465 | Nytroz | 15 | 2014-02-17 20:46:51 | <p>So, when the user clicks, it makes another frame visible making itself invisible while at the same time display 4 random images.
I have 1 image so far (I will be making the others later): images/http://www.roblox.com/asset/?id=146289136
I have got as far as this:</p>
<pre class='brush: lua'>local PackPlayers = {"Nyt... | 41 | 2 | 82 | 1 | 4030068 | jobro13 | 980 | 2014-02-17 20:53:14 | <p>For starters, you are trying to use members of display. If this is all your code, display is nil, meaning it will error.</p>
<p>I also don't understand your code. Why are you overwriting PackPlayers?</p>
<p>If you just want to show random images, why would you need ImageRects? Why not show the Images themselves?</p>... |
2 | what is serverstorage? how is it used? | 1337749930 | ack_superbear | 35 | 2020-10-17 02:20:29 | <p>I wanna know what ServerStorage is and how I would access an object in there. It's not replicated, so how do I access it? Also, how is ServerStorage different from ReplicatedStorage?</p>
| 114456 | ||||||||
0 | how to roundfiy an Instance.new('frame')? | 539909602 | Retallack445 | 67 | 2020-11-23 23:00:03 | <p>i was wondering if you can roundfiy an <code>Instance.new('frame')</code> this is what i mean:</p>
<pre class='brush: lua'>frame = Instance.new('frame',game.StarterGui)
frame.roundfiy = true -- does not work
</pre>
| 116232 | 1 | 106661 | 1 | 90859760 | noot20000 | 185 | 2020-11-23 23:14:25 | <pre class='brush: lua'>local frame = Instance.new('frame',game.StarterGui)
local UICorner = Instance.new("UICorner");UICorner.Parent = frame
UICorner.CornerRadius = UDim.new(8,0)
</pre>
|
0 | How can i give players badge whenever i'm at the server? | 72953296 | Velege1 | 2 | 2018-01-10 23:23:46 | <p>I want to make an script which whenever players enter the server i am or when i join their servers they will be award with a badge, the problem is that, it doens't works, there are no scripting errors as i checked, this is probabbly a FE problem i am having, and i also tried using both badges ID (The one from the li... | 51922 | 1 | 51527 | 0 | 173002126 | Michael_TheCreator | 166 | 2018-01-10 23:40:39 | <p>This should work:</p>
<pre class='brush: lua'>badgeId= 476095178
function onPlayerEntered(player)
if string.lower(player.Name)==string.lower("Velege1") then
for _,a in pairs(game.Players:GetChildren()) do
if a.Name~= "Velege1" then
game:GetService("BadgeService"):AwardBadge(a.userId,badgeId)
end
end
end
if game.Play... |
0 | Not teleporting everyone? | 36732308 | jimborimbo | 94 | 2015-04-29 21:27:15 | <p>I have tried this</p>
<pre class='brush: lua'>local pos = Vector3.new(-375.863, 97.1, 834.132)
for _, player in pairs(game:GetService("Players"):GetPlayers()) do
if player.Character then
player.Character:MoveTo(pos)
</pre>
<p>and roblox's script</p>
<pre class='brush: lua'>target = CFrame.new... | 17119 | ||||||||
1 | How to check if player is in the air? | 87980375 | iiTylerSoul | 56 | 2017-04-16 17:28:18 | <p>Hi, I am making a fighting technique for a game, and I was wondering how I could make the fighting technique not run if the player is in the air. So, how would I make a condition like this?</p>
<p>I tried using the code</p>
<pre class="brush: lua">if character.Humanoid.FreeFalling then return end
</pre>
<p>but the p... | 42078 | ||||||||
0 | How can i make commands with the "wp" variable outside of the if loop ? | 506839197 | Omerevkizel | 25 | 2020-11-23 20:29:31 | <pre class='brush: lua'>while script.Disabled == false do
local mapstoragechild = game.Workspace.MapStorage:GetChildren()
local players = game.Players:GetPlayers()
local message = game.Workspace.Message
function tpbak()
local lp = game.Workspace.MapStorage.Map.PlayerStorage:GetChildren()
... | 116224 | 1 | 106651 | 0 | 1775753594 | Not_prototype | 26 | 2020-11-23 20:39:19 | <pre class='brush: lua'>local kills = 0
</pre>
|
0 | Part Generation | 5206310 | alibix123 | 175 | 2014-02-19 13:55:14 | <p>Say I wanted to generate 100 2x2x2 parts in a square perfectly fitting together. I started with a for loop and generated 100 2x2x2 parts, but I'm not sure what to do from there.</p>
| 86 | 3 | 168 | 0 | 8810191 | Avros | 5 | 2014-02-19 15:34:37 | <pre class='brush: lua'>local CurrentPos = Vector3.new(0, 0, 0)
for i = 1, 100 do
wait(0.1)
local Part = Instance.new("Part", Workspace)
Part.Anchored = true
Part.Size = Vector3.new(2, 2, 2)
CurrentPos = CurrentPos + Vector3.new(2, 0, 0)
Part.Position = CurrentPos
if i % 10 == 0 then
... |
0 | Can anyone help me do crawling script because idk how to script?. User:omarezzeldenpiggy | 1956151757 | omarezzeldenpiggy | 0 | 2021-05-01 15:34:25 | <p>I just need help that would be useful if someone help me becuase youtube videos don't work.</p>
| 122994 | ||||||||
0 | Badge script not giving player badge for joining? | 66142114 | Chez_Guy | 67 | 2020-05-11 00:31:24 | <p>Hi there!</p>
<p>I have a Badge Script that I found from an article on the <a target="_blank" href="https://developer.roblox.com/en-us/articles/Badges-Special-Game-Awards">roblox dev wiki</a> and tried applying to a Script located in the <code>ServerScriptService</code> and it didn't work. Here's the code I used:</p... | 102672 | ||||||||
0 | Overhead GUI doesn't work how can i fix these? | 256891495 | stevenfury91 | 6 | 2020-10-18 12:09:56 | <p>did i script this correctly because it only gave me the bbgfan</p>
<pre class='brush: lua'>local bbgFan = game.ServerStorage.OverheadGroup
local bbgVip = game.ServerStorage.OverheadVip
local bbgAll = game.ServerStorage.OverHeadAll
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(fu... | 114515 | ||||||||
1 | How to make a function that grabs every players name and put them in an array? | 2050252 | tykoon3 | 5 | 2022-08-07 22:42:28 | <p>I have this code that I've been trying to work on but can't seem to get to work correctly</p>
<pre class="brush: lua">Array = {}
local players = game.Players:GetPlayers()
function getPlayers()
for _,v in ipairs(game.Players:GetPlayers()) do
table.insert(Array,v.Name);
end
end
</pre>
| 131136 | ||||||||
0 | How to use TimeOfDay to change a NumberValue...? [SOLVED] | 1880161 | excellentAnarchy | 50 | 2015-04-08 19:23:27 | <p>What I'm trying to achieve with this script is:</p>
<p>There's a NumberValue within each player in the game, I want the script to set it to 0 after TimeOfDay changes to 6:00:00 or more, but I only want it to change once that time has passed, and then leave it.</p>
<pre class='brush: lua'>local players = game.Players... | 16501 | ||||||||
0 | why this is NextInteger Returning nill ? | 41487561 | notasfeia | 1 | 2022-05-01 17:48:49 | <p>Can someone help me out?
a Random.NextInteger function is returning nill everytime i run it</p>
<p><strong><em>the function returning the nill</em></strong></p>
<pre class='brush: lua'>local Tables = GetTablesFromAttackAnimation1(AttackFrameModule, (CanBackstab and AttackFrameModule.BackstabAnimation) and "BackstabA... | 129880 | ||||||||
0 | Why is my gui not working with magnitude when two people play?? | 1419323251 | L30N_C | 22 | 2021-05-02 06:33:03 | <p>Ok so i am making a shop. Everything is fine. I am using magnitude for the shop to open. The magnitude is scripted in a localscript inside a gui where the shop comes up.</p>
<p>But when two people play the game, the magnitude stops working and gets buggy and stuff.</p>
<p>I cant solve this problem myself so i figure... | 123020 | 1 | 112096 | 0 | 103833540 | deeskaalstickman649 | 388 | 2021-05-02 09:44:43 | <p>The for loop checks for every player, while the code inside the if statement scope opens up the menu for the local player the script is running on. Therefore, whenever any player is within the minimum magnitude, the shop menu opens for every player. As this is a local script and local scripts get replicated across e... |
1 | How to make a global message? (A message that spreads over all servers) | 181386826 | Derzett | 51 | 2019-08-07 16:42:37 | <p>Hey so i've been looking on how to make a global message for ex. When the game shutdowns but i couldn't find anything. All i need is atleast a method to spread something globally and that's all.</p>
| 85290 | 1 | 79185 | 0 | 129265755 | Vinceberget | 1128 | 2019-08-07 19:03:27 | <p>If you're going to make a message that can be customized and fire anytime then i might have the answer.</p>
<p>Short answer: Data stores. Longer answer: Create a data store system with a string value that'll replicate onto other servers.</p>
<p>Example:</p>
<pre class='brush: lua'>local dss = game:GetService(DataSto... |
0 | Team income error? | 37274601 | Aperturee | 22 | 2015-11-07 09:42:52 | <pre class='brush: lua'>team_income = {}
team_income["Camo"] = 20
team_income["White"] = 1000
INCOME_TIMER = 1
while (true) do
for index, player in pairs(game.Players:GetPlayers()) do
print(player.Name)
if player.Neutral == false then
player.cash.Value = player.cash.Value + team_income[... | 24150 | ||||||||
0 | Is there any way I can get a client to read a _G variable? | 9551275 | ItsMeKlc | 235 | 2017-07-19 06:12:57 | <p>is there any way I can get a client to read a _G variable? I only need it to read it! If not, whats like the easiest way to get it replicated? (FE on)</p>
| 45478 | ||||||||
0 | ERROR: main.lua:9: attempt to perform arithmetic on a nil value (global 'playerCoords') help? | 285886280 | Djarmenise | 5 | 2021-06-07 12:31:13 | <pre class='brush: lua'>-- Enter / Exit marker events & Draw Markers
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local coords = GetEntityCoords(PlayerPedId())
local isInMarker, letSleep, currentZone = false, true
for k,v in pairs(Config.Zones) do
loc... | 124165 | ||||||||
0 | I want to make a roblox day and night Cycle but is not working, i code the scrip on workspace? | 483088590 | TheVlogingAustin_YT | 0 | 2018-04-17 11:04:35 | <p>while true do
lightning:SetMinutesAfterMidnight(lightning:GetMinutesAfterMidnight() + 0.75)
wait(1)
end</p>
| 56989 | ||||||||
0 | [SOLVED] Why wont my part face the way my character is facing/looking? | 1544906313 | iuufhr | 0 | 2022-08-04 20:45:16 | <p>game.ReplicatedStorage.Kame.RemoteEvent.OnServerEvent:Connect(function(plr)
local Folder = game.ReplicatedStorage.Kame
local core = Folder.Core:Clone()
local core2 = Folder.Core2:Clone()
local core3 = Folder.Core3:Clone()</p>
<pre class="brush: lua">-- Appear
core.Parent = plr.Character
core.CFrame = plr.Character:F... | 131102 | ||||||||
0 | How can I make this server script to share information about a player with the whole server work? | 584127106 | destinyscampchild | 2 | 2022-06-17 22:41:32 | <p>I’m trying to make it so that when a player touches a certain part (named “Trigger”), information about that player (an image of them, their name, and their account age) will be transmitted to the whole server, and players will be able to access that information via a ScreenGui in their PlayerGui. Currently, aforeme... | 130385 | ||||||||
0 | Attempt to index nil with 'Team', can anyone help? | 1902553017 | hndcwffs | 14 | 2022-09-17 09:24:11 | <pre class='brush: lua'>local JailSystemFolder = ReplicatedStorage:WaitForChild("JailSystem")
local GetPrison = JailSystemFolder:WaitForChild("GetPrison")
local GetPolice = JailSystemFolder:WaitForChild("GetPolice")
local GetPrisonTeamName = GetPrison:InvokeServer()
local GetPoliceTeamName = GetPolice:InvokeServer()
if... | 131647 | 1 | 118894 | 2 | 559514967 | T3_MasterGamer | 845 | 2022-09-17 09:43:51 | <p>Don't use <code>tostring</code> because it will error as it is a <a target="_blank" href="https://developer.roblox.com/en-us/api-reference/class/Team">Team instance</a>, not a number or string. Instead, get the Team's name by <code>Team.Name</code>.</p>
<pre class='brush: lua'>if GetPlayer.Team.Name ~= GetPrisonTeam... |
2 | Help with adding +1 to a textbox that starts at 1? | 50080920 | SkrBolSp | 15 | 2023-02-17 03:21:47 | <p>i have a shop gui, after clicking on one of the items another gui opens and displays the picture, description and the amount of how many you want to purchase with an increase and decrease button. how do i add 1 or subtract 1 from a textbox?</p>
| 133083 | 2 | 120176 | 1 | 559514967 | T3_MasterGamer | 2189 | 2023-02-17 08:24:05 | <h2>Modifying <a target="_blank" href="https://scriptinghelpers.org/user/Andromedual">@Andromedual</a>'s answer using <a target="_blank" href="https://scriptinghelpers.org/user/xInfinityBear">@xInfinityBear</a>'s comment and my modifications</h2>
<p>The title above says it all, except for my modifications. What are my ... |
0 | How do i make a timer to kick a person after 30 seconds? | 1285451263 | christianovalo | 0 | 2021-07-21 06:46:30 | <p>Hi i've been making a captcha system for my roblox game and i wanted to make it so that if you don't complete the captcha in 30 seconds you get auto kicked i've tried this
and it didn't work</p>
<pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(player)
wait(30)
player:Kick()
end)
</pre>
<p>help would... | 125561 | ||||||||
0 | Attempt to index nil with 'FindFirstChild'? | 1337749930 | ack_superbear | 33 | 2020-10-18 16:48:06 | <p>I'm trying to create a hold shift to sprint script. But when I try to get the player's character it gives the error that's in the title. Here's the code:</p>
<pre class='brush: lua'>--Local script
local UIS = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local char = player.Character
lo... | 114529 | 1 | 105213 | 1 | 114097134 | lightifieds | 25 | 2020-10-18 22:20:05 | <p>You need to wait for the character to load in first.</p>
<p>Replace</p>
<pre class='brush: lua'>local char = player.Character
</pre>
<p>with</p>
<pre class='brush: lua'>local char = player.Character or player.CharacterAdded:Wait()
</pre>
|
0 | it says expected end to close then at line 6? | 442892530 | Ey_Yatzy | 6 | 2021-06-09 21:31:14 | <pre class='brush: lua'><br /></pre>
<p>~~~~~~~~~~~~~~~~~</p>
<pre class='brush: lua'>local player = game.Players.LocalPlayer
game.Workspace.Proximity.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
if plr == pla... | 124233 | ||||||||
0 | My script to make a model move wont work but its working on a part? | 531176465 | Lava_Scripter | 109 | 2018-04-19 08:36:30 | <p>Hello,</p>
<p>I was trying to make a whole model slide with my script</p>
<p>This is the script i using now;</p>
<pre class='brush: lua'>local TweenService = game:GetService("TweenService")
local part = script.Parent:GetChildren()
local goal = {}
goal.Position = Vector3.new(0,100,0)
local tweeninfo = TweenInfo.New(9... | 57070 | ||||||||
0 | A damage script? | 958002 | Mystdar | 352 | 2014-06-10 06:50:20 | <p>When a part touches a person can the part deal 40 damage on touching the person then remove then put a damage prevenatation it so it doesn't happen again. Because if a character touches it many scripts make it do 40 damage several times. Thanks!</p>
| 6453 | ||||||||
0 | Script Doesnt Change GUI's Transparency? | 1680108820 | JmoneyPlayzOfficial | 24 | 2023-02-06 02:39:22 | <p>so this is a day and night script, when the music stops the transparency of the frame changes (or is supposed to change) but it doesn't, can anyone help?</p>
<pre class='brush: lua'>local Lighting = game:GetService("Lighting")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local daySettings = Replica... | 133029 | ||||||||
0 | I'm trying to make multiple children slide at once - what am I doing wrong? | 22303673 | Narroby | 10 | 2015-03-14 03:49:33 | <pre class='brush: lua'> button = script.Parent
doors = script.Parent.Parent.CellDoors:GetChildren()
function onClicked()
for i,v in pairs(doors) do
for c = 1, 7, .1 do
v.CFrame = v.CFrame * CFrame.new(c, 0, 0)
wait(0.1)
end
end
end
button.ClickDetector.MouseClick:connect(onClicked)
</pr... | 15744 | 1 | 18895 | 1 | 13667373 | EzraNehemiah_TF2 | 3552 | 2015-03-14 14:36:43 | <p>Instead of moving all of celldoors children, you can just change the CFrame of a model.</p>
<hr />
<p>You can do this using :SetPrimaryPartCFrame().</p>
<pre class='brush: lua'>workspace.Player1:SetPrimaryPartCFrame(0,0,0) --Sends the player to 0,0,0.
</pre>
<p>To do this we need a primary part. In the command bar, ... |
0 | How to make a raycast stop if it leaves a Region3 without using parts? | 1017846707 | Overseer_Prince | 188 | 2023-03-16 13:04:07 | <p>So Basically the title of the question is what im asking</p>
<p>so basically without using any parts</p>
<p>I want to manually have the raycast stop if it leaves the region</p>
<p>the only Idea I have right now is calculating the magnitude distance direction and making it so that it ends before it leaves the region3... | 133197 | ||||||||
0 | Why does this script not give me a tool when I sit on a seat? | 100172682 | SonGohan6 | 8 | 2020-12-27 10:55:28 | <p>I'm trying to make is a script that will give the player a tool when you sit on a certain seat. Then, when the player jumps off the seat, the tool should be gone from their backpack.</p>
<p>The code below is what I'm using and I cannot get it to work.</p>
<pre class='brush: lua'><br /> function onChildAdded(child... | 117753 | 1 | 107784 | 0 | 454425 | WizyTheNinja | 834 | 2020-12-27 13:40:27 | <p>Try this out. There are some more modern ways of detecting seat changes and who did so. You can then get that info to give or remove the tool all in one function. Dont forget to check the players backpack and the character itself for tools, because when you equip a tool it gets moved from Backpack to Character until... |
0 | server scripts isnt changing values in replicated storage how can i fix this? | 1418287117 | ThePersonWithAPc | 30 | 2020-06-30 00:10:32 | <p>i have two scripts both spawning different npcs but they dont stop spawning</p>
<p>here are the two scripts: i added a print for count and rich prints 1 whereas high prints 1 both scripts are in different global scripts in serverscriptservice</p>
<pre class='brush: lua'>local npcs = game.ReplicatedStorage.NPCs.RichC... | 107798 | ||||||||
0 | Does it matter how many remote events are in a game? | 55847790 | Sketchi | 18 | 2018-05-20 18:17:01 | <p>Does it matter how many remote events are in a game? Will it lag the server or something? My game has a lot, should I try to cram them down?</p>
| 58722 | 2 | 57233 | 2 | 39250676 | ScriptGuider | 5640 | 2018-05-20 19:02:11 | <h2>Short answer: No</h2>
<p>Excellent question though! The difference between having one remote or many to handle your client/server interactions is negligible. It all depends on what is deemed more organized to you, or what compliments the work environment of your game the most.</p>
<p>Some people opt for using one R... |
0 | Finding vertices of a solid model? | 20960275 | GShocked | 150 | 2016-07-25 05:16:52 | <p>I want to know if there is any way to find the coordinates of vertices of a solid model. I want to do some basic airflow physics but I need to figure out how to find the coordinates of each vertex on a solid model first.</p>
<p>Similar to this but with a solid model instead of mesh, and I don't know if he manually e... | 33604 | ||||||||
0 | Why Isn't the new shirt and pants not applying to the person? | 1961959172 | imnotaguest1121 | 74 | 2022-06-19 01:03:19 | <p>Hello! I am making a tool that If you activate It via clicking the screen with It equipped It will change your avater to a backrooms person, however while I was working on removing shirts and pants, I stumble across a problem, the problem Is that the new shirts and pants aren't applying</p>
<p>script:</p>
<pre class... | 130399 | ||||||||
0 | Problem with opening a GUI with a keyboard character in this case "m" can someone help? | 1720772585 | pocvq | 0 | 2021-02-21 14:05:00 | <p>local mouse = game.Players.LocalPlayer:GetMouse()
local gui = script.Parent.ScreenGUI.Frame</p>
<p>mouse.KeyDown:Connect(function(key)
if key == "m" then
gui.Visible = not gui.Visible
end
end)</p>
<p>that is my script anyways its not working I dont know why but if someone can help it would be nice it also says in th... | 120460 | ||||||||
0 | roblox hwo to make a table with 2 values ? | 59365781 | yentedolfijn | 0 | 2017-04-06 16:38:59 | <p>so i wanna make a load system for customizable houses.
to do that i need 2 values the name of the brick and the cframe.</p>
<p>but i dont kopw how to store this in a table like i want a table with the nam bricks and when u use the print commmand like</p>
<pre class='brush: lua'>print(bricks[1])
</pre>
<p>it will out... | 41708 | ||||||||
0 | How can I add an offset to a CFrame? | 51241626 | mcox6 | 5 | 2021-08-16 16:57:50 | <p>I have a CFrame, represented by</p>
<pre class='brush: lua'>local camera = workspace.CurrentCamera
local camlookvector = camera.CFrame.LookVector
</pre>
<p>and I have a script that adds a shift lock to my tool when I equip it. It adds an offset to the camera. This is what it looks like:</p>
<pre class='brush: lua'><... | 126543 | ||||||||
0 | JSON Data Persistence | 52167760 | Bloxks | 30 | 2014-02-17 21:40:33 | <p>Can anyone tell me how to use jSon in data persistence?</p>
<p>That means saving and loading.</p>
| 44 | 2 | 89 | 3 | 13416513 | Merely | 2122 | 2014-02-17 21:49:28 | <p>Are you talking about the old player-based data persistence, or the new data stores API?</p>
<p>To encode a table in JSON, use:</p>
<pre class="brush: lua">local RbxUtility = LoadLibrary("RbxUtility")
tableToEncode = {"Player1", "Player2", "Player3"}
local encoded = RbxUtility.JSONEncode(tableToEncode)
</pre>
<p>The... |
0 | How to disable walking and jumping without changing the Humanoid properties? | 559514967 | T3_MasterGamer | 458 | 2022-07-31 02:11:03 | <p>Hello. I'm trying to disable walking and jumping whenever a player gets jump scared on all platforms. It also includes disabling the thumbstick/joystick and jump button. I tried disabling <code>HumanoidStateType.Jumping</code>, and it works, but when I set the Walk speed to 0, it doesn't disable the thumbstick/joyst... | 131026 | 2 | 118372 | 1 | 953256806 | SEAN_YT213 | 104 | 2022-08-01 10:18:46 | <p>there is a GetControl function in the PlayerModule that you can use to disable all character controls</p>
<pre class='brush: lua'>local player= game:GetService("Players").LocalPlayer
local controls= require(LocalPlayer.PlayerScripts.PlayerModule):GetControls()
controls:Disable()`
</pre>
|
0 | welding part to head without touched event? | 33962991 | Probix | 80 | 2016-08-12 07:36:42 | <p>I want the Part to weld to the Character's Head when the player spawns into the game. But, welding don't have the PlayerAdded event. How would I go about this?</p>
<pre class='brush: lua'>function JustWelding (hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
local ... | 34456 | 1 | 37107 | 3 | 43590972 | IDidMakeThat | 1135 | 2016-08-12 08:32:26 | <p>For this, it would be better to use the <code>CharacterAdded</code> event rather than <code>PlayerAdded</code>, as the former will also run after the player respawns. You will need the <code>PlayerAdded</code> to connect a function to <code>CharacterAdded</code>, however. You will need to use the <code>Character</co... |
0 | Trying to make a script that spawns a model from the ServerStorage infront of a Torso of a model? | 67015061 | ErskinePierre | 48 | 2018-12-26 17:49:31 | <p>I'm thinking of game.ServerStorage.Sentry:Clone().Parent = game.Workspace.Engineer.Torso.Position but it isn't working.</p>
<p>If anyone can help me complete this script it would be greatly appreciated.</p>
| 73012 | 1 | 68972 | 0 | 9552668 | SteamG0D | 1613 | 2018-12-26 18:49:59 | <p>So this is the one that works with a model:</p>
<pre class='brush: lua'>workspace.DescendantAdded:Connect(function(descendant)
if descendant.Name=="Engineer" then
game.ServerStorage.Sentry:Clone().Parent = descendant.Torso
end
descendant.Torso.Sentry.PrimaryPart.CFrame = CFrame.new(thing.Torso.CF... |
0 | Unable to cast Instance to CoordinateFrame? | 1627926818 | ArastooYsf86 | 2 | 2022-09-14 15:51:07 | 131623 | 1 | 118873 | 0 | 1929477313 | Kingu_Criminal | 111 | 2022-09-15 09:22:56 | <p>The error means there is an instance where there should be a CFRAME. Please check your code thoroughly before posting an issue. There is an error with the cases primarypartcframe</p>
<pre class='brush: lua'>Case:SetPrimaryPartCFrame(Character.HumanoidRootPart.CFrame)
</pre>
| |
1 | What does making a function a variable do? | 37794064 | Discern | 1007 | 2014-10-12 02:34:07 | <p>So if I have a code with this in it:</p>
<pre class='brush: lua'>thefunction = function bleh(mhm)
--does code here
end
</pre>
<p>Why would I put "thefunction" there, and how would I use it?</p>
| 11613 | 1 | 14571 | 2 | 386992 | BlueTaslem | 18071 | 2014-10-12 02:47:59 | <h1>Syntax (Sugar) Overview</h1>
<p>What you have written won't compile.</p>
<blockquote>
<p>input:1: '(' expected near 'bleh'</p>
</blockquote>
<p>(You can either have the name left of the equals sign <em>or</em> right before the function parameters -- but you can't do both)</p>
<hr />
<p>The following two snippets ... |
0 | Positioning a brick using a GUI failing? | 2695962 | Blackbrick2896 | 0 | 2015-02-23 01:11:23 | <p>So I have this thing I'm working on that relies on three text GUIs and one TextButton GUI. The point is to get numbers entered by the user into each of the three GUIs and transfer those over to XYZ positions and apply them to a block. However when the TextButton (EnterButton) is clicked the block just moves to 0, 0,... | 15233 | ||||||||
0 | [Solved] coin respawn not working serverscriptswrvice error? | 1781541169 | catsalt29 | 57 | 2020-09-13 19:58:25 | <p>script</p>
<pre class='brush: lua'>while wait() do
local co = game.ReplicatedStorage.Coin:Clone()
co.Parent = game.Workspace
co.Position = (-math.random(1,100), math.random(1,100), -math.random(1,100))
end)
</pre>
<p>error: ServerScriptService.CoinRespawn:4: Expected ')' (to close '(' at column 16), got ... | 113130 | ||||||||
0 | Tycoon Gamepass "Mesh Chute" Won't work, help me out? | 290652683 | kingofpronoobs | 0 | 2018-06-16 12:24:38 | <p>I suck at scripting</p>
<p>its for my tycoon game</p>
<p>here are the parts: Base, Chute, IDBar</p>
<p>IDBar basics: You can type in the IDBAr</p>
<p>Chute Basics: When a mesh touches the chute, it dissapears</p>
<p>but there is way more than that</p>
<p>This things is supposed to change you drops to a mesh, which o... | 60468 | ||||||||
0 | [SOLVED] Expected identifier for unknown reason. any solution? | 1983974344 | superaceCZ | 28 | 2022-11-15 15:05:19 | <p>Hi i wanted to do a script that teleports you to position. that was not a problem but i used local part for the teleport script to get the part Position but it game a error and i have no idea why.</p>
<p>script:</p>
<pre class='brush: lua'>local teleportPart = workspace.MAP.["Stone Portal"].MAINPART.WinnerPart
game.... | 132285 | ||||||||
0 | camera script not working in play mode ? | 53720104 | Layfonex | 0 | 2015-05-11 12:49:03 | <p><strong>freeze character movement, view close up, and freeze camera.. freeze camera not working in play mode.. also cant figure out how to make it face the front of the character</strong></p>
<pre class="brush: lua">local ting = 0
function onTouched(hit)
if ting == 0 then
ting = 1
check = hit.Parent:Find... | 17442 | ||||||||
0 | CFramevalue has no value. could someone please help? | 92101177 | Elixcore | 1337 | 2018-04-26 16:48:09 | <p>i tried inserting it with an instance.new and also through roblox studio but it sitll doesn't have a value, can anyone help?</p>
<p>http://prntscr.com/jahq21</p>
| 57448 | 2 | 56138 | 2 | 338950628 | RedcommanderV2 | 1256 | 2018-04-26 16:50:41 | <p>A CFrame Value can only be set with scripts. You won't be able to see it but it still can hold the value. To set it it's really easy</p>
<pre class='brush: lua'>local value = script.Parent -- Or where your value is
value.Value = CFrame.new(0,0,0) -- Your CFrame
</pre>
|
0 | How do i damage every player using a script? | 1648281165 | YuiiIsOld | 6 | 2021-04-06 10:07:45 | <p>I've been trying to figure out how to damage every player,
I searched for solutions on google and none of them worked,
Here is what I got so far.</p>
<pre class='brush: lua'>game.Workspace.i.Touched:Connect(function(hit)
print("Touched")
if hit.Parent:FindFirstChild("Humanoid") then
print("Found a Ch... | 122064 | 1 | 111193 | 0 | 672835190 | Superexperiencedguy | 184 | 2021-04-06 10:22:16 | <p>I think you can use a for loop to get all the players in the game, then find the humanoid of each player, something like this:</p>
<pre class='brush: lua'>for i,v in pairs(game.Players:GetChildren())do
local player = game.Workspace:FindFirstChild(v.Name)
if player.Humanoid then -- making sure that it is ac... |
0 | is it good idea to make "fake" remote event that will catch exploiters? | 124655577 | Sabailuridze | 111 | 2022-08-02 06:32:01 | <p>I am beginner programmer and I am about to finish my game but I do not know how secure it is, I can't also go back to all scripts I have made that fires remote server.</p>
<p>I also don't really know how exploiters or hackers work</p>
<p>so is it wise to make remote event called for example "Get50000Money" and when ... | 131054 | ||||||||
0 | Print table contents onto 1 line? | 73164823 | iFlusters | 355 | 2016-04-25 16:52:44 | <pre class='brush: lua'>local MyTable = {"Foo", "Fee"}
print(MyTable[1], MyTable[2])
</pre>
<p>I can do that fine, but what if the script doesn't know how many there are in the table? How do I make it so it prints the entire table onto one line rather than:</p>
<p>Foo
Fee</p>
<p>I would have</p>
<p>Foo Fee</p>
<p>I'm g... | 29974 | 2 | 33359 | 1 | 76649634 | theCJarmy7 | 1281 | 2016-04-25 16:56:44 | <p>table.concat!</p>
<pre class='brush: lua'>print(table.concat(myTable," this is inbetween the things"))
</pre>
<p>for more information, check <a target="_blank" href="http://wiki.roblox.com/index.php?title=Function_dump/Table_manipulation#table.concat">the wiki page for table.concat</a></p>
|
2 | GUI Pop-Up | 19045513 | MrBriantacular | 10 | 2014-02-17 14:48:43 | <p>I’m having difficulty creating a script, where if you walk onto a certain part, holding an item, a GUI will pop up. Anybody able to help me?</p>
| 34 | 2 | 66 | 5 | 947798 | MrNicNac | 855 | 2014-02-17 14:51:29 | <p>Assuming "holding an item" means "with a tool equipped" then you can do this (putting the script in the part they walk on)</p>
<pre class='brush: lua'>local toolname = "Sword" -- What they should be holding when stepping on the part
script.Parent.Touched:connect( function(hit)
if hit.Parent then
local pl... |
0 | So i want to stop the animation when my character's walkspeed changes from 0, how? | 319722439 | soreno2468 | 14 | 2020-09-16 01:31:28 | <pre class='brush: lua'>local player = game.Players.LocalPlayer
repeat wait() until player.Character
local char = player.Character
local hum = char.Humanoid
local running = false
local UIS = game:GetService("UserInputService")
local ToggleSusan = game.ReplicatedStorage:WaitForChild("ToggleSusan")
UIS.InputBegan:Connect... | 113213 | ||||||||
0 | Points not given to my user only (points aren't given to me and only me) ? | 1214606320 | shebel159 | 2 | 2020-08-01 15:32:08 | <p>I made a Points System for a cafe, when I tried to test it, I gave a tool to the owner and it worked but I didn't get a point, but then she gave me a tool and she got a point.</p>
<p>When I searched for the problem in the studio, I found a player in the players folder, the player had my name, I wasn't running the ga... | 110477 | ||||||||
0 | How can I make a Gui move Left and Right when you hold down a key, and then stop when you let go? | 529859410 | JackyW9cky | 27 | 2023-02-12 22:56:38 | <p>So, I had a cool idea to make a 2D Roblox Game only using Guis. I've seen one YouTuber do it before, and I wanted to try and make my own version. Everything was going great until I ran into a problem.</p>
<p>In my game, I set both the Player's WalkSpeed and JumpPower to 0, then inserted a Frame inside of a ScreenGui... | 133065 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.