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
1
How do I make a Text label display how much currency you have?
473761609
nicemorew
24
2021-07-08 15:40:43
<p>I got this code from a YouTube tutorial</p> <pre class='brush: lua'>local player = game.Players.LocalPlayer local leaderStats = player:WaitForChild("leaderstats") local gold = leaderStats:WaitForChild("Gold") gold:GetPropertyChangeSignal("Value"):Connect(function() script.Parent.Text = "Gold"..tostring(gold.Valu...
125158
2
113967
0
134745532
zane21225
203
2021-07-08 18:32:27
<p>So this is a pretty easy fix, just change <code>:GetPropertyChangedSignal</code> to <code>.Changed</code>.</p> <p>Here's the code I typed up:</p> <pre class='brush: lua'>local player = game.Players.LocalPlayer local leaderStats = player:WaitForChild("leaderstats") local gold = leaderStats:WaitForChild("Gold") --if y...
2
&quot;Failed to load texture: unknown format&quot;?
18989219
Thewsomeguy
448
2014-03-01 23:50:11
<p>I'm using an imagelabel in a gui, and i'm getting this error (in studio edit mode).</p> <p>17:48:21.948 - Failed to load texture 'http://www.roblox.com/asset/?id=148147241': unknown format</p> <p>What does it mean, "unknown format"?</p>
418
0
Remote event works the first time but not the second?
73806918
loligaggin
2
2022-11-15 20:40:04
<p>The idea here is i step on a part, its fires a remote event that will destroy the part and add a point to the players score. However when i test it in a server and studio, i step on the part once and it works, the part respawns and i step on it again, and nothing happens</p> <p>Code local script, stored in StarterPl...
132289
1
119479
0
94006350
BulletproofVast
1012
2022-11-15 22:59:21
<p>From looking at this, it looks like you could make it completely server sided. One thing you shouldn't do is have a connection inside of a remote event unless you plan on disconnecting it.</p> <p>The reason why it doesnt fire again is because you're not checking for when the part updates.</p> <p>I would make it like...
0
I was wondering how making a ABH mechanic in Roblox would work?
161289071
XSambloxerX
0
2020-02-03 21:15:43
<p>I was playing HL2 (half life 2) and watching videos about ABHing (accelerated back hop) and wondered how making it in Roblox would work.</p> <p>ABHing is crouching, walking backwards and timing jumps for almost exactly when you hit the ground to gain a insane amount of speed.</p> <p>CloneTrooper1109 has already done...
94089
0
Player not moving with the moving brick while standing on it?
443643048
Soban06
24
2020-09-15 17:57:31
<p>So I have a moving brick. It moves from one place to the other and then back continuously. When the player stands on the brick, the is brick is supposed to move and the player to keep standing on the brick. i.e. not to be left behind when the brick just goes.</p> <p>So the problem is as above, I have this code in my...
113199
0
How can I move/set the Camera to a certain player?
67015061
ErskinePierre
48
2020-06-20 18:49:46
<p>The code that I rewritten many times was pretty shit so I was wondering if I could get some help? The script is supposed to pan to the Player if he enters your house.</p> <pre class='brush: lua'>if (game.Workspace.House.Position - game.Players:GetPlayers().Position).magnitude &lt; 15 then game.Workspace.CurrentCamer...
106918
0
Why this OnServerEvent paramenters aren't exactly how in FireServer()?
207797085
ErktikyYT
37
2020-09-13 21:19:21
<p><strong><em>Hello, devs!</em></strong></p> <p><em>Title might be hard to understand, but I'll try to make you understand my problem. So I was trying to animate First Person Shooter and made script that will fire server into RemoteEvent when left mouse button pressed and then script will collect it by OnServerEvent b...
113133
0
How do you make key inputs not detected when you're typing in chat?
1112337243
Pejoume
11
2020-03-19 00:28:16
<p>So, basically I made a GUI that pops up whenever you press "B", but the issue I'm having is that whenever players are typing in chat the GUI pops up and gets in the way of everything. If someone could please tell me how to fix this it'd really be appreciated. Here is the code to pop up the GUI.</p> <p>(Local Script)...
96399
1
89060
1
74087102
Ziffixture
6913
2020-03-19 00:35:36
<p>You can achieve this by the <code>GameProcessed</code> Boolean parameter returned by UserInputService’s <code>InputBegan</code> signal. This parameter defines whether one of ROBLOX’s core services is using input systems. You can debounce your code with <code>GameProcessed</code> to ignore your input events if so.</p...
0
How would I hide the backpack?
110258409
Daiko_King
1
2017-01-17 21:11:42
<p>Not the CoreGui that disables it. I'm asking about HOW I would I hide it. Thank you very much.</p>
39126
1
41414
0
21735007
DevKurka
173
2017-01-17 21:27:33
<p>Make an LocalScript in for example PlayerGui and place this in it</p> <pre class='brush: lua'>game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false) </pre> <p><em>EDIT: You can't hide it witheout using coreguis. Calling this function is hiding this and Backpack is still a object of player,...
0
Is there a way to edit scripts in game if you're the creator?
328413134
LiLFriks
35
2020-08-02 05:10:13
<p>I would like to know if there is any way possible that lets the creator of a game edit scripts while in game. For example, if there was anything wrong with a script, they could edit it so they wouldn't have to fix it in studio and shut down servers for it to work in game. Please let me know if something like this ex...
110526
0
How Do I Make An Npc Change Assets By Typing In The Username Of A Player?
216282452
ErraticThe_legend27
8
2020-05-18 08:20:52
<p>I am trying to make a game where you type in the username of a player and click play and it will do an animation As That Player.</p>
103526
1
95564
0
74087102
Ziffixture
6913
2020-05-18 08:43:50
<p>You can use the <a target="_blank" href="https://developer.roblox.com/en-us/api-reference/function/Players/GetHumanoidDescriptionFromUserId">:GetHumanoidDescriptionFromUserId</a> method of the <code>Players</code> container as the foundation for this project.</p> <p>The function returns a <a target="_blank" href="ht...
4
Use of Metatables?
15095102
saenae
318
2015-06-27 20:17:32
<p>Hey, guys. I've been studying up on metatables for a little while, and I think I get the gist of how to use them. I also understand that they can be used for OOP, due to the events that they provide. I'm just wondering where this comes in use, since it seems as if you could do all of these things with a mix of regul...
19011
1
22606
7
3508838
DigitalVeer
1473
2015-06-28 01:39:58
<h1>Introduction</h1> <p>Let me give you an extremely rational summary of what a metatable is: <strong>A metatable defines the behavior for tables when dealing with special operations</strong></p> <p>Metatables are extremely powerful when dealing with tables and they basically control how the object will respond to dif...
1
How do I fix this &quot;Attempt to index nil&quot; problem?
64427627
osamayousef123
14
2020-05-12 18:43:36
<p>This code works just fine.</p> <pre class='brush: lua'>game:GetService('Players').PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) character:WaitForChild("Humanoid").Died:Connect(function() print(player.Name .. " has died!") end) end) end) </p...
102867
0
I need help figuring out what I need to change in this on/off switch script?
63253258
KPNagai
4
2020-06-30 00:52:56
<p>I have a script that I'm using to make a working fireplace switch and it's almost complete with working switches. The only thing wrong with it is that clicking the first switch disables the particle emitters and clicking the second switch won't turn them back on but it still goes transparent like it should. I want t...
107804
1
99103
0
56389
Sparks
534
2020-06-30 02:39:11
<p>The outer else-statement never runs. Every time .MouseClick is fired the switch is always set to false; it is thereby impossible to turn the fireplace back on.</p> <pre class='brush: lua'>local switch = false -- Initialize first use function onClick(playerWhoClicked) if switch == true then switch = false...
0
Cframe Is Not Member of Part In Dash Script? Help?
837939149
Vortex_Vasne
89
2019-10-05 00:09:26
<p>script:</p> <pre class="brush: lua">local plr = game.Players.LocalPlayer local Char = plr.character or plr.CharacterAdded:Wait() local UserInputService = game:GetService("UserInputService") local Tapped = false local Time = 0.25 UserInputService.InputBegan:Connect(function(Input, GameStuff) if GameStuff then ret...
88329
1
81850
1
151702995
RealTinCan
217
2019-10-05 00:48:51
<p>Well you simply just spelled Cframe wrong ;-; ... It's 'CFrame' not 'Cframe'.</p> <p>But I wouldn't use velocity. I would use <a target="_blank" href="http://https://developer.roblox.com/en-us/api-reference/class/BodyVelocity">BodyVelocity</a> below</p>
0
Where do bool values go in Roblox Studio when playtesting?
1446387420
Valkyrie1277
28
2022-09-18 17:30:37
<p>I have some bool values in game.ServerStorage.[BoolValues], but whenever I playtest the game they all disappear. Does anyone know where they go?</p>
131663
1
How do you make bricks appear around your player?
24031098
ImmenseKassing
120
2014-03-02 18:52:12
<p>Say, if you had a tool, and if you clicked it, it would make a jail around (ex.) How would you do that?</p> <p>I know you'd probably use Instance.new, but how would you make it appear a certain distance around the player?</p>
443
1
Can Someone Help Me?, I Need Help With The Sounds! (Bad English, Sorry)
600684309
Hiktius
5
2022-09-15 00:50:30
<p>I'm New At Script But, I Was Making The Gun Script With Youtube Tutorial, And Realized When I Testing Gun With My Friend, I Hear The Shoot Sound, But The Friend Can't Hear The Sound, When Friend Shoot, I Don't Hear It., I Did Disable Some Other Script, But It Doesn't Worked.</p> <pre class='brush: lua'>local gun = s...
131626
0
Not teleporting everyone?
36732308
jimborimbo
94
2015-04-29 20:00:29
<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) end end end </pre> <p>and roblox's suggested one</p> <pre class='brush: lua'>...
17117
0
My Global Leaderboard only displays one player, what adjustments I can make?
124655577
Sabailuridze
111
2022-08-02 10:57:12
<p>This only displays one player's data</p> <pre class='brush: lua'>local DataStoreService = game:GetService("DataStoreService") local KillDataStore = DataStoreService:GetOrderedDataStore("KillLeaderboard") local LeaderboardPart = script.Parent.Parent.Parent local RefreshRate = 100 local function RefreshLeaderboard() ...
131058
0
Datastorage does not save data when leaving, how to fix?
134642503
jorrelnootje
0
2021-04-06 16:39:31
<p>I tried making my own script but after several hours and many fails i searched a tutorial. I followed all the steps and changed the stats to my own. I dont know if you should add any stringvalues or anything, as for now i just have this script:</p> <pre class='brush: lua'><br />local DataStoreService = game:GetServi...
122082
0
[Solved] Why am I getting attempt to index nil with 'Parent'?
60261990
Benbebop
789
2020-08-04 22:51:16
110716
4
How can I change weapons by scrolling?
41100413
BSIncorporated
640
2015-04-19 21:34:09
<pre class="brush: lua">game.Players.PlayerAdded:connect(function(Player) ting = true Mouse = Player:GetMouse() function scroll() if ting == true then ting = false --change weapon wait (1) ting = true end end) Mouse.WheelBackward:connect(scroll) Mouse.WheelForward:connect(scroll) </pre> <p>NOTE:...
16860
1
Is it possible to prevent exploits without filteringenabled?
89909818
Acheo
230
2016-02-09 15:18:51
<p>So a game I'm working on is constantly being exploited but I do not wish to take time to convert it.</p> <p>Is it possible to prevent kicking and killing of the humanoid? I've tried changing the name of the humanoid using:</p> <pre class='brush: lua'>Character.Humanoid.Name = "Hum1" </pre> <p>But it's still possible...
27232
0
If key is pressed certain script is disabled?
1051393357
SylvanPlayz
2
2020-07-28 19:14:57
<p>I'm trying to make it so if a key is pressed (e), a script will be disabled. The script I want to disable is called "Footstep", basically a script that makes the player have footstep sounds when they walk. This is the script that I have been using, but it is not working.</p> <pre class='brush: lua'>game.Players.Loca...
110188
0
When I unequip and equip my gun I get less ammo and get an error, can someone help me?
95513411
FireTap1
5
2021-02-21 17:35:24
<p>So I have two problems with my script first of all I get an error. The error always happens when I unequip and equip the gun again. The error says "This Mouse is no longer active". The second problem is when I unequip and equip the gun again, I get less ammo. I would be happy if you could help me <strong>error:</str...
120470
0
Scale cannot be assigned to?
15456160
u_g
90
2014-08-12 21:30:36
<p>While I was making a customized health bar, it said "Scale cannot be assigned to", even though it's a property of Frame. Please help. Here's the code:</p> <pre class='brush: lua'>script.Parent.Size.X.Scale = decimalbarsize </pre> <p>(decimalbarsize = 0.2)</p>
9617
1
How to make after a certain amount of time a lighting variable will be enabled?
442892530
Ey_Yatzy
6
2021-06-08 17:14:56
<p>**The title kinda explains itself. I want it so that after a certain amount of time a color correction effect will be enabled for a couple secs. I'm also very new to scripting so it would be awesome if y'all could explain it to me and show me, thanks!</p>
124201
0
How do I make an anti lag script?
38318062
MysticalWarrior
0
2014-04-16 15:15:53
<p>My game is awfully lagging a lot and I need a script that makes it less laggy. Cann someone help please?</p>
2161
0
How to format a variable to be sent over HTTP GET?
937815244
CrypticLumineXD
0
2021-05-04 20:07:51
<p>How would I go about formatting a variable to be sent over HTTP GET? Whenever I just set the message as the variable, I get an HTTP_BAD_REQUEST error, any help?</p>
123093
0
How to refer to Configuration.StringValue
7105837
DaichiTheHedgehog
0
2014-02-19 20:58:32
<p>I'm trying to make a P4ssword door using Configuration object. Here's the brick and it's children: Door.Configuration.Word ("Word" is a StringValue) ...and... Door.Script</p> <p>How do I have this line: if (msg == "message") then ...refer to the StringValue inside Configuration?</p>
118
0
Why does this script work once, but then it stops working? UI won't open again after closed
231423324
ghxstlvty
133
2021-04-08 15:42:54
<pre class='brush: lua'>local ClickDetector = script.Parent.ClickDetector local GUI = game.ServerStorage.Fridge ClickDetector.MouseClick:Connect(function(player) if player.PlayerGui:FindFirstChild("Fridge") == nil then GUI:Clone().Parent = player.PlayerGui end end) </pre>
122150
0
the &quot;:MoveTo&quot; function does not wanna work, what do I do?
604236298
tonyruanjunyuan
55
2021-01-13 00:33:50
<p>so I want to make their horse spawn next to the player, however it does not even move, and it just spawns at the orgin, what do I do?</p> <p>script:</p> <pre class='brush: lua'>local remote = script.Parent local horseFolder = game:GetService("ReplicatedStorage").OtherThings.Items.HorseFolder remote.OnServerEvent:Con...
118615
0
how i give 1 win point just to the players that are still alive at the end of the round?
146100287
Gigaset39
41
2022-08-03 17:12:01
<p>Hello, i got a script, that give you 1 win when you touch a part:</p> <pre class="brush: lua"> script.Parent.Touched:Connect(function(hit) local Player = game.Players:GetPlayerFromCharacter(hit.Parent) Player.leaderstats.Wins.Value = Player.leaderstats.Wins.Value + 1 wait(1) end) </pre> <p>but i want to change it, ...
131084
0
Global Leaderboard Rank Icon glitches, how to fix?
134642503
jorrelnootje
0
2021-04-07 16:32:18
<p>I made a global leaderboard that duplicates ranks from players onto the surface rank of a block. Only the last place in the leaderboard has his/her #..rank the others have a white blank frame. Script below:</p> <pre class='brush: lua'>local ds = game:GetService("DataStoreService") local coinsODS = ds:GetOrderedDataS...
122121
0
My gun script is broken sometimes?, and output says attempt to index nil with &quot;FindFirstChild&quot;
1663755583
vinhkhang100
0
2023-02-05 13:16:39
<pre class='brush: lua'>local debounce = false script.Parent.RemoteEvent.OnServerEvent:Connect(function(player,hit,target) if debounce == false then debounce = true local newpart = Instance.new("Part",workspace) local dist = (hit-player.Character.HumanoidRootPart.Position).Magnitude ...
133022
0
Script Error : Expected 'end' got &lt;eof&gt;; did you forget to close 'then' at line 153?
374712009
rjthecoolkid1215
4
2020-08-01 13:54:21
<p>While I was writing my code it seemed to be fine but when i tested in on output there is and error message and it said : ServerScriptService.ServerMain:172: Expected 'end' (to close 'do' at line 75), got &lt;eof>; did you forget to close 'then' at line 153? And None Of The Script Worked Anymore And i Don't Know How ...
110468
1
101464
0
131470756
Pupppy44
471
2020-08-01 14:45:51
<p>I believe you're missing an end for the while true do loop.</p>
0
Click a player in game to follow them on roblox?
1506403211
xp5u
25
2022-06-23 03:38:53
<p>Hi, I've been starting to code and I'm planning to create an upcoming game where you would click a person in game and you are able to follow them. The game would also display the people in game with the most followers. The leaderboard would also display the most followed person in the server.</p> <p>Can any code be ...
130473
0
Is there a way to make the size of a TextLabel adjust to how many lines of text there are?
897149428
Qwerty_8339
12
2022-09-18 01:38:12
<p>So I'm making a gui where things like errors, warnings, and other general info print out onto a gui so it's easier for myself to read.</p> <p>However I ran into an issue, where if something copies over that spans multiple lines, it will overlap with the other lines that were made previously</p> <p>This is some of th...
131659
1
118905
1
71530978
enes223
312
2022-09-18 06:54:27
<p>If your TextLabel's text is wrappable and is not automatically sized you can just use the <code>TextBounds</code> property, it shows how much space does the current text take. Example:</p> <pre class='brush: lua'>local textSize = label.TextBounds local defaultSize = label.Size label.Size = UDim2.new(0, defaultSize.X...
1
I am having problems with a RemoteEvent?
303357794
ColdFoxy07
24
2021-04-19 15:13:15
<p>Hey everyone reading this!</p> <p>I am having problems with a RemoteEvent not being able to fire server --> client.</p> <p>Server Script:</p> <pre class='brush: lua'>local debounce = false script.Parent.Touched:Connect(function(hit) local humanoid = hit.Parent:FindFirstChild("Humanoid") print("No Humanoid") ...
122555
1
Is it safe to not tick RespectFilteringEnabled?
6081066
Konethorix
182
2019-06-22 11:11:18
<p>When it comes to a shooting game, it is very likely to get exploited no matter what. Because of many reasons, for this one it is because of RespectFilteringEnabled.</p> <p>You see, making a <strong>SMOOTH</strong> shooting game requires a lot of scripting from both client and server sided scripts. If you want to mak...
82258
1
76494
4
514154691
BenSBk
781
2019-06-22 11:19:49
<p>No. If it is disabled, malicious players can force other players to hear any Roblox sound they wish.</p> <p>Instead of disabling the property, consider managing all sound from the client; when a gun is fired, for example, have each individual client detect that and play the appropriate sound on their system. This wi...
0
how would i be able to make an x button for a gui?
28853852
NinjaCall456
13
2017-05-13 16:58:11
<p>i know that you use</p> <pre class='brush: lua'>textButton.MouseButton1Down:connect(function() </pre> <p>to actually make the text button do the script, build what do i put inbetween?</p>
42877
2
44395
1
294191579
GuestRealization
102
2017-05-13 17:11:04
<p>You could do this put it in a local script inside a textbutton.</p> <pre class='brush: lua'>local player = game.Players.LocalPlayer local closebutton = script.Parent local Frame = script.Parent.Parent closebutton.MouseButton1Click:connect(function() Frame.Visible = false end) </pre> <p>Frame is where the fra...
0
How do I correctly connect a script to Tagged Objects in CollectionService?
1999279481
ConsteIeo
63
2020-12-08 00:40:40
<p>I was trying to test Tags and Collection Service. I have set-up the Tag using the Instance Tagging, and then added a block (say, Block1) to the tag.</p> <p>On ServerScriptService, I have created a script with the following code:</p> <pre class="brush: lua">local CollectionService = game:GetService("CollectionService...
116903
1
107190
0
81324278
DollorLua
235
2020-12-08 01:47:03
<p>Im gonna try to answer this the best I can</p> <p>(after the "Expected: When I touch the object, console must print "Touched object"" part) 1st question: object.Touched should work.</p> <p>If you want to use premade parameters you could do something like this (this should also answer your second question in the comm...
0
How do you add value to a player when gui button clicked?
1842291423
IMAO421
0
2021-04-06 18:23:50
<p>Ok so im trying to make a gui button for my staff where when they click it, it ads 1000 coins to their stats.</p> <p>local Button = script.Parent</p> <p>Button.Touched:Connect(function() local Coins = game.player.Stats.Coins Coins.Value = Coins.Value + 10000 end)</p> <p>Thats my localscript. If it helps this is what...
122086
0
How do I use number values in my math.random() statement?
1809946242
Canturion
6
2021-06-08 17:51:00
<p>Hello, I need help, I need to use math.random() in my script and to make it easier to customize, I made the lowest and highest number a number value, but it doesnt work, is there any reason why?</p> <pre class='brush: lua'>return function() while true do wait(script.Parent.Parent.WaitDelay.Value) ...
124204
0
Changing my name to The owner in the player list?
6414728
jls12345678
0
2014-04-17 10:12:22
<p>hi i would like to no how to change my name in the leaderstats to the owner ive being trying really hard can someone plz help me</p>
2410
1
3329
1
806698
duckwit
1399
2014-04-17 11:06:24
<p>I'm not aware of any officially provided functionality to do this - leaderboard names are tied to their actual player names.</p> <p>What you can do is construct your own leaderboard using a GUI and then hide the default one (for each player, in a LocalScript) using:</p> <pre class='brush: lua'>game.StarterGui:SetCor...
0
Stopping the Player from Using the Mouse?
20482204
iamarobloxfan
0
2017-12-24 18:42:27
<p>I'm working on a camera system for my game, where the camera sits in one spot and follows the player. I have tried setting the camera to <strong>Watch</strong>, but the player can still use the right mouse button and move the camera manually. Is there any way to stop the player from scrolling or using the right mous...
50862
0
How can I delete all instances with the same name?
61581073
Igoralexeymarengobr
365
2019-06-08 05:41:14
<p>Hello, is there a way that i can delete all parts with the same name (in a model)?</p>
81370
1
75709
1
250841454
JakyeRU
637
2019-06-08 06:43:41
<p>Hello, You have to use a <code>for loop</code>.</p> <pre class="brush: lua">local Parts = game.Workspace:WaitForChild("Model"):GetChildren() for _, v in pairs(Parts) do if v.Name == "Delete" then v:Destroy() end end </pre> <p>Parts is a table with everything in the Model. The for loop will go through...
0
&quot;invalid argument #2 to 'random' (interval is empty)&quot; problem?
948973004
TimEntity
0
2022-09-17 16:37:30
<p>Whenever I test-play my Hide and Seek game, I always see this error message appear: "invalid argument #2 to 'random' (interval is empty)". How do I solve this issue?</p> <p>Full Code:</p> <pre class='brush: lua'>-- Services local replicatedStorage = game:GetService("ReplicatedStorage") local serverStorage = game:Get...
131653
1
FireClient not firing? (extra text to look like a question)
38270341
Donut792
216
2018-09-25 00:12:34
<p>so i got this script that when a player presses a certain button if they have the right amount of experience it will fireclient and then it is supposed to take away that set amount of experience and set their speed value to true but it doesnt it also doesnt print any errors</p> <p>script:</p> <pre class='brush: lua'...
67912
1
65150
1
18664243
lazycoolboy500
582
2018-09-25 01:04:43
<p>With "FilteringEnabled" enabled, things change up a bit. And I'm pretty sure that <strong>you cannot change values using localscripts</strong> as only the client can see this and would probably cause issues.</p> <p>Some of it needs re-editing and seeing that it's a tool your trying to use, <strong>your localscript s...
0
What Script do I use to touch a brick to give me a gear?
54498760
DennisHerman2014
0
2014-03-14 02:59:36
<p>I have been trying the old script</p> <pre class='brush: lua'>local debounce = false function getPlayer(humanoid) local players = game.Players:children() for i = 1, #players do if players[i].Character.Humanoid == humanoid then return players[i] end end return nil end function onTouch(part) local human = part.Parent:...
678
0
How can I make a timer that will show the timer and move two blocks?
99587114
TheOof1sout
4
2021-06-03 04:31:46
<p>I'm trying to make a script that'll show the timer on a block using a SurfaceUI and then when the timer runs out, a door opens(Two blocks split apart from each other). But while trying to get the time script to work, nothing happened. The timer doesn't start at all. This is my script</p> <pre class="brush: lua">loca...
124024
1
Roblox &quot;Position cannot be assigned to&quot; error?
1460440032
mine_theblocks
23
2021-08-23 00:05:26
<p>So, I have a script that is supposed to teleport a player to a certain position once they die. However, I am getting a "Position cannot be assigned to" error. Here is the code:</p> <pre class="brush: lua">local player = game.Players:GetPlayerFromCharacter(hit.Parent) if hit.Parent:FindFirstChild("Humanoid") then ...
126775
1
115184
0
1020531782
sata5pa3da
286
2021-08-23 00:12:05
<p>Just do:</p> <pre class="brush: lua">player.Character.HumanoidRootPart.Position = Vector3.new(1, 2, 3) </pre> <p>instead of:</p> <pre class="brush: lua">player.Character.HumanoidRootPart.CFrame.Position = Vector3.new(1, 2, 3) </pre>
0
Is it possible to tween a GUIs transparency?
562794787
HTHRWRU
6
2019-04-20 07:10:54
<p>I tried using the :TweenTransparency but it doesnt work can i get help?</p>
79232
2
73920
3
270295905
Ankur_007
290
2019-04-20 08:51:14
<p>Yes it is possible to tween transparency of a GuiObject however, you're doing it wrong.</p> <p>First of all, <code>GuiObject:TweenTransparency()</code> doesn't exist. I see you might have come to such a conclusion seeing the <code>GuiObject:TweenSize()</code>, <code>GuiObject:TweenPosition()</code> and the <code>Gui...
1
How to define and work with your own custom RBXScriptSignal / Event?
551879230
Ribasu
127
2018-05-25 20:38:46
<p>Hi I am asking: How to implement your own custom events/ RBXScriptSignal?</p> <p>What I mean is if I have the following <code>MoveToFinished</code> event:</p> <pre class='brush: lua'>Humanoid.MoveToFinished:Connect(myFunc) </pre> <p>and I want to implement my own event which I will call <code>idle</code></p> <pre cl...
58997
0
How to fetch a player's picture?
25926813
laughablehaha
494
2015-11-29 20:34:52
<p>Is it like this?</p> <p>imagebutton = script.Parent</p> <p>imagebutton.Image = "idontknowwhattoputinthis"</p>
24833
0
PetJoy is not a valid member of Player &quot;Players.garfird1231&quot; error?
1303818551
Garfird1231
0
2022-05-08 12:34:28
<p>I'm trying to make it that if you pet your pet dog, it will give you money and +2 of joy. There is also joy, where it decreases by 1 every second. But whenever I try to pet the dog, it gives the error.</p> <p>Code for the services</p> <pre class='brush: lua'>local HungerDecrease = 1 local joydecrease = 1 game.Player...
129958
0
Is there a way to detect how many players are in a server?
430874503
stickymirro511
37
2020-07-31 20:23:00
<p>I'm trying to make a game that gives you a badge every time a curtain amount of players are in the server. If you could please send me a script that detects that, I'll be able to take it from there. Thanks.</p>
110405
2
101428
1
835155757
BRO_ITmeYO
106
2020-07-31 20:59:45
<pre class='brush: lua'>local badgeservice = game:GetService("BadgeService") local badge = (numbers) local player = game.Players.LocalPlayer while true do if game.Players:GetChildren == 50 then badgeservice:AwardBadge(player.UserID, badge) end end </pre> <p>This is assuming you have already made the bad...
1
How should I go about saving instances/models?
60715914
zblox164
526
2018-03-26 20:43:56
<p>Note: I did sort of ask this question before but it was more focused on the placement system so I decided to ask about Data Store.</p> <p>I know that you can not save instances using data store but then how do games like Theme Park Tycoon 2 and Miners Haven save the tycoon? Do I put the model or instance inside of a...
55703
1
54482
1
264859050
Nonaz_jr
439
2018-03-26 22:27:55
<p>one way to save instances is: you store all component models in serverstorage and then make a list of how often, where, with what rotation, etc each model occurs. Like you say you basically write a script to turn all the information you need to recreate it into text (a table with string values), then save that text ...
0
Why does this script kick the person who warned instead of the person with the warnings?
231423324
ghxstlvty
133
2021-04-07 13:35:10
<pre class='brush: lua'> local function pluginFunction(Args) -- keep the name of the function as "pluginFunction" local Player = Args[1] if Args[3] then local Victims = returnPlayers(Player, Args[3]) if not Victims then return end local combinedVictims = '' for a,b...
122114
0
GUI Tweening, I need help?
59551381
BosswalrusTheCoder
88
2014-07-25 04:35:31
<p>Script:</p> <pre class='brush: lua'>--Variables local Player = game.Players.LocalPlayer Menu = Player.PlayerGui.Menu ZC = Player.PlayerGui.ZanpakutoCustomizer Menu.ZanpakutoCustomizerButton.MouseButton1Down:connect(function() --Page1Tweening Menu.ZanpakutoCustomizerButton:TweenPosition(UDim2.new(1, 0, 0, 0),...
8654
1
11228
1
38426223
Tuneable
100
2014-07-25 06:26:22
<p>First make sure you spelled everything correctly. Zanpakuto is a tricky word to spell</p> <p>If that doesn't work, your issue is most likely that the script is running before the textbutton can load. To fix this, just use waitforchild.</p> <pre class='brush: lua'>ZC = Player.PlayerGui:WaitForChild("ZanpakutoCustomiz...
0
Need help figuring out the math for drifting?
206442260
GoingToAnnoyYou
2
2023-03-22 21:13:46
<p>So I've literally been spending days trying to figure out how on earth the math for mario kart style drifting would be.</p> <p>I am really bad when it comes to the math side of programming in general, it is so confusing for me to understand more complex integrations.</p> <p>Here's what I have written currently:</p> ...
133232
1
How to move a script from ReplicatedStorage to StarterPlayerScripts?
982575368
AIRBORNENicuYT
0
2021-04-07 08:41:46
<p>Hello my name is Nick and i want to do a gamepass wich is double jump so i want to use this script if a olayer owns the gamepass he can double jump but i dont know how please help me</p> <blockquote> <p>PassId = 1234567890 --My gamepass ID game:GetService("Players").PlayerAdded:connect(function(Player) if game:GetSe...
122102
0
hello, this script wont let me change a gui text for some reason? norma script
1483026272
wswswff
39
2022-11-01 14:38:13
<pre class="brush: lua">script.Parent.Touched:Connect(function(hit) if hit and hit.Parent:FindFirstChild("Humanoid") then local hum = hit.Parent hum.HumanoidRootPart.Position = Vector3.new(130.6, -64.1, -77.7) game.StarterGui.LouStart.ChangeText.Visible = false game.StarterGui.LouSta...
132109
1
how do i can use the best way to wait for something happen?
438845010
Ariirael
15
2022-06-09 16:52:16
<p>im making some script, one of then is "if race == X" then change body, but its only for certain races, theres is a lot and i dont do it for almost half of them, so i wanted a way to do a "wait until race is X" i just did if characterAdded and then later "if player.Race == X" then do it, but sometimes my race was thi...
130297
0
Color3 keeps going to black, instead of Pastel blue. How do I fix this?
435887626
Aeroporia
37
2020-03-31 00:31:58
<p>I'm new to using Color3, I always used Brickcolor. Instead of making the color pastel blue, it makes it Really black (0,0,0). Why doesn't this work?</p> <pre class='brush: lua'>Liquid.Color = Color3.fromRGB(128/255,187/255,219/255) </pre>
97611
1
90181
0
44328631
b2lego
30
2020-03-31 01:02:48
<p>Im kinda new but if I'm not wrong, try</p> <pre class='brush: lua'>Liquid.Color = Color3.new(128/255,187/255,219/255) </pre>
0
UserInputService For key pressed?
51056231
Vezious
310
2015-10-07 21:03:13
<p>Since Keyboard Input is deprecated, how would you use UserInputService to see if someone has pressed <strong>/</strong>?</p>
23332
1
26968
5
91543144
LetThereBeCode
360
2015-10-07 21:16:42
<p>You can use InputBegan event.</p> <pre class='brush: lua'>game:GetService("UserInputService").InputBegan:connect(function(input,proc) if not proc and input.KeyCode == Enum.KeyCode.Slash then --code end end) </pre> <p>'proc' is a variable that prevents input from getting accessed while typing in chat ...
0
Help with this orb effect?
339880
Seenit
80
2014-06-14 17:02:03
<p>I'm trying to make an orb effect like the ones in Windwaker that appear inside the deku tree. Here's what I got but it sorta breaks</p> <pre class='brush: lua'>wait(10) scale = 0.02 distance = 55 g = script.Parent local debounce = true while wait() do for q = 1, (distance/scale) do g.CFrame=g.CFrame+Vector3.n...
6663
0
Hello, I want to make sure that when all the players are dead then the game restarts a game?
1629811819
creepycanary
12
2021-06-12 14:11:50
<p>I have already tried a script but it doesn't work and the output doesn't give me an error:</p> <pre class='brush: lua'>local IntermissionValue = game.ReplicatedStorage.Intermission local map1 = game.Workspace.map1 or game.ReplicatedStorage.Maps.map1 local Clown = game.ReplicatedStorage.Clown or map1.Clown local Play...
124321
0
Why it doesnt add points or makes part invisible?
323565609
18890miki
4
2023-01-23 16:13:41
<p>I want to make that this script adds 10 points to player after they click a part and this part goes invisible, but it doesnt work.</p> <pre class='brush: lua'>local Part1 = script.Parent local CD = Part1.ClickDetector local function addPoint(playerpoints, part) local pointadd = 10 playerpoints.Value += point...
132924
1
120054
1
15438711
pwx
1546
2023-01-23 21:48:41
<p>A ClickDetector sends over a player parameter, I'm not sure what you mean by 'ClickParent'.</p> <pre class='brush: lua'>local Part1 = script.Parent local CD = Part1:WaitForChild('ClickDetector') local function addPoint(Points, Part) local pointsToAdd = 10 Points.Value += pointsToAdd Part.Transparency = 1...
0
help with making loop active while the rest of the script is still going?
179461396
GameStealerKid
38
2020-10-18 07:00:15
<p>so, its like this</p> <pre class='brush: lua'>while true do -- this loop is still active when ("ThisIsATest is still active") is printed wait() print("ThisIsATest") end print("ThisIsATest is still active") </pre>
114508
1
105188
1
161757041
krowten024nabrU
209
2020-10-18 08:06:34
<p>try doing <code>spawn(function()</code> or <code>coroutine.wrap(function()</code>, then put the loop inside. Do it like this:</p> <pre class='brush: lua'>spawn(function() while true do wait(1) print("ThisIsATest") end end) print("ThisIsATest is still active") </pre> <p>I added <code>1</code> ...
0
{SOLVED}What is wrong with this script?
38390729
kudorey619
138
2014-06-09 22:40:20
<p>{SOLVED}The following script is supposed to make the part(which the script is in it) to uncheck CanCollide property and make the part's transparency 0 for 5 seconds. Here is the script:</p> <pre class='brush: lua'>game.Players.PlayerAdded:connect(function(msg) if Player.msg == "boss" then CanCollide = fa...
6438
3
8527
1
39704067
Vividex
162
2014-06-09 23:50:59
<p>Your function: game.Players.PlayerAdded:connect(function(msg)</p> <p>Its just calling the function msg when a player comes in, I might be wrong but I'm thinking that you want the door to take cancollide off and change transparency when someone says "boss", Player.msg doesn't mean if the player says _ word it will do...
1
Why does the ImageLabel Position Change?
333549003
aydenwilson819
21
2022-08-03 20:26:38
<p>I am making a game that has shift lock for mobile but when I test it on my Phone it's misplaced.</p> <p>This is where the button is supposed to be: https://ibb.co/YbLDKxx</p> <p>This is where it's supposed to be on mobile (same place): https://ibb.co/ySPgGMV</p> <p>This is where it is when testing: https://ibb.co/SJ...
131089
3
118418
0
124655577
Sabailuridze
126
2022-08-04 11:27:12
<p>I think I know what problem is, you see your interface is disabled, if it was not when you would test game in studio there would be black transparent line on top of the screen, that are is not visible in roblox studio so when you will press play it looks like all your UI Went' down</p> <p>this is my speculation tho,...
0
How can i get item on product purchase?
19151429
vincius0000
0
2014-04-16 11:03:36
<p>I Made This Lua:</p> <pre class='brush: lua'>game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, 19579792) game:GetService("MarketplaceService").PromptProductPurchaseFinished:connect(function(isPurchased) if isPurchased == true then game.Lighting.Key:Clone().Parent = gam...
2123
1
2813
1
56710551
Archonious2
160
2014-04-16 11:14:08
<p>This should work now:</p> <pre class='brush: lua'>local MS = game:GetService("MarketplaceService") MS:PromptProductPurchase(game.Players.LocalPlayer, 19579792) MS.PromptProductPurchaseFinished:connect(function(PlayerId, ProductId, IsPurchased) if game.Players.LocalPlayer.userId == PlayerId and IsPurchased == tru...
0
&quot;invalid argument #2 to 'find' (string expected, got table)&quot;. how do i check if its in the table?
351467574
Galaxybombboy
134
2021-02-05 04:20:24
<p>My script is</p> <pre class="brush: lua">local ScareEnablers = { ";enable scary mode"; ";enable scary"; ";enable scares"; ";scares enabled"; ";scares on"; } game.Players.PlayerAdded:Connect(function(plr) plr.Chatted:Connect(function(msg) if msg:lower():find(ScareEnablers) then ...
119661
1
109241
1
245864252
xInfinityBear
1777
2021-02-05 06:04:07
<p>The error you're getting is because you're providing the table itself instead of any of the contents inside. You'd need to iterate through the table using a <code>for loop</code> and check if the player's message contains any of those values.</p> <pre class="brush: lua">local ScareEnablers = { ";enable scary mod...
1
How can I merge those two lines? CFrame question
1585453742
Kaisarys
19
2022-09-11 00:28:10
<p>Hello, I've made a wall part to always be in front of the player when part of a script runs, this was working properly. However, as you can see in the code below, this merely makes the part go in front of the player ignoring if there is anything there, so it can float (due to being anchored).</p> <pre class='brush: ...
131582
0
Unable to recognize the players of one team?
86083702
jediplocoon
832
2020-03-26 00:32:24
<p>I have a script that is supposed to add one win and 100 coins to the winner after the round is over. I know that the part of the script that checks to see if there is less than two players in the team "Players" works, but the output console keeps showing the error "plrs1 is not a valid member of Players". If anyone ...
97090
1
89640
0
74087102
Ziffixture
5655
2020-03-26 00:44:21
<p>By using <code>.plr1</code>, you’re trying to ascend into the <code>Players</code> container, to verify two things: Is there a Player Object called "plr1", or is there a property called "plr1"? Both of which effectively are false which is raising your <code>invalid</code> exception. To actively filter for something ...
0
How do you make a staff that lets you do magical attacks when you press a letter?
21628241
cristinon
0
2014-02-20 17:43:04
<p>when i make a tool its not in my charactors hand and falls appart?</p>
169
0
Can someone explain to me how to edit this script to make it Darker?
25240799
BearKranz
36
2014-07-18 12:11:45
<p>it does run, but day is to bright and night is not dark enough</p> <pre class='brush: lua'>local timer = game.Lighting local delay = script.Delay repeat timer:SetMinutesAfterMidnight(timer:GetMinutesAfterMidnight()+1) x = timer:GetMinutesAfterMidnight() if x &lt; 720 then light = x*17/(255*48) ...
8305
1
10796
0
18731888
iRzPWNzr
20
2014-07-18 20:28:21
<p>Running math on a string (which is what game.Lighting.TimeOfDay is) will throw an error, specifically "-script- attempted to run math on a string." I believe that is your problem.</p>
1
What is &quot;&lt;eof&gt;&quot;?
29806839
ConnorVIII
448
2014-04-28 16:55:25
<p>When I script, I constantly see this. I would like to know what it means? I would like to know what it is trying to tell me when it shows.</p>
3809
1
5253
4
2182958
Dummiez
360
2014-04-28 17:29:17
<p>'eof' basically stands for '<strong>end of file</strong>' (some people get confused with 'end of function')</p> <p>A error like this:</p> <blockquote> <p>Monday Apr 28 17:25:56 2014 - Workspace.Script:3: 'end' expected (to close 'while' at line 1) near '&lt;eof>'</p> </blockquote> <p>"<strong>Monday Apr 28 17:25:56 ...
0
The .Visible Property isn't updating, Is this a bug?
429720902
EmeraldRailYT
8
2021-01-28 05:01:08
<p>Hello, In my script I have it set to when ever you press a button it makes certain things visible and others invisible, the problem is it changed the property in the property tab but not on screen. I can got to the objects visible property and it will be off and it will still be on screen. When I turn it off before ...
119279
1
108938
0
41904260
mrmikov999
22
2021-01-28 13:36:12
<p>I think that it doesn't work as it relates to StarterGui and not the player's gui. You should try and change the lines from 3 to 6. If your script is LocalScript, then it would look like this:</p> <pre class='brush: lua'>local everything = game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui:WaitForChild("Fra...
0
Why is does the output say that new is not a valid member of modulescript?(SOLVED)
23768379
SethHeinzman
285
2020-09-15 20:14:12
<p>Hey guys I made a module script named Player:</p> <pre class='brush: lua'>local Inventory = require(game.ServerScriptService.PlayerData.Inventory.Inventory) local Player = {} Player.__index = Player function Player.new() local NewPlayer = setmetatable({}, Player) NewPlayer.Inventory = nil NewPlayer.Stats...
113203
2
103928
2
79300081
CaioAlpaca
348
2020-09-15 21:20:17
<p>You are not requiring it,you need to do this</p> <pre class='brush: lua'>local yourModule = require(path_to_module) </pre>
1
Can you fix the issue with this isInGroup function?
8869935
wattleman
90
2014-03-01 18:03:29
<p>What's the problem with this?</p> <pre class='brush: lua'> if Player:isInGroup(v) and Player:GetRankInGroup(v) == for i,v in pairs(rankid) then </pre>
394
1
702
2
64408300
RaverKiller
668
2014-03-01 18:08:05
<p>Try this:</p> <pre class='brush: lua'>for i, v in pairs(rankid) do if Player:IsInGroup(v) and Player:GetRankInGroup(v) &gt; 1 then -- Check the rank in group (1 - 255) if its over 1 continue. -- do stuff end end </pre>
2
How can I properly optimize this GUI fade script?
530853592
Boomboyag
14
2023-03-20 23:47:31
<p>Hi y'all! I've been working on this piece of code that will slowly fade a given UI's transparency. I'm just wondering if there is anything I can do to improve it. Any help or tips would be greatly appreciated.</p> <pre class="brush: lua">local Bindable_Function = script:WaitForChild("Fade_Function") function Fade(UI...
133219
1
120276
1
1060251348
sergeant_ranger
184
2023-03-21 15:32:58
<p>Use Tweens, and combine your functions. In my code, Fade_Speed describes the number of seconds to fully fade. New code with tweenservice instead of loops, and some functions simplified:</p> <pre class="brush: lua">local tweenService = game:GetService("TweenService") local Bindable_Function = script:WaitForChild("Fad...
0
Is it possible to do this? Send messages to other scripts
577969807
TheNewLordOfLand
2
2018-04-19 01:11:41
<p>I mean doing something like a script in a button does this when clicked:</p> <p>Bsajsjdf = 1</p> <p>And then a script in a workspace does</p> <p>If bsajsjdf = 1 then BlahBlahBlah.Play</p> <p>And then setting the number to different ones like if clicked once turns bsajsjdf into 1 and if clicked twice it turns bsajsjd...
57060
1
55766
0
355374505
EnderGamer358
77
2018-04-19 02:17:45
<p>:Remote events are used for triggering events throughout multiple scripts in Roblox Studio. Find out how to use them here: (http://wiki.roblox.com/index.php?title=Remote_Functions_%26_Events)</p>
0
Any way to change the Color of the WaterTerrain?
45193145
Paintertable
171
2018-12-18 20:28:20
<p>So I tried to change the waterColor from the Terrain but I failed with TweenService. Is there an easier methode because the wiki doesnt show you stuff like that and I dont know how. Thanks :)) Also (Dont tell me that I am not allowed to ask for a code, im asking for a way and IF they give me an example code im fine ...
72520
0
Why is my debounce not working and, why does it add value then subtract that value right after?
1057250798
ElBamino
104
2021-06-09 00:51:03
<p>Hey scriptinghelpers, two questions same script. So, the script below is a LocalScript in StarterGui, on key pressed (the key is Q/mobile button) run animation. I'm actually having two problems with this script. The first one is my debounce isn't working so, if you press Q repeatedly it just keeps running the animat...
124212
2
113237
1
107017283
Cirillix
68
2021-06-09 06:15:55
<p>Your debounce isn't working because it's inside a for loop. Also, you cannot change leaderstats values through a local script, you'll have to use a remote event.</p> <p>Here is a quick way</p> <p>Local script :</p> <pre class='brush: lua'>local player = game.Players.LocalPlayer local character = player.Character --A...
0
how do I make like two pressure plate and when a certain two blocks hit them they open a door?
77858236
superbestguy567
0
2021-02-21 21:10:41
<p>I wanted to make two blocks when both of them are on the two platform (part) they will open a door and they can only open the door if they are on together. I tried an if statement, it didn't work. So please could some one help me. I have deleted all the script that i made so could someone tried to help me and make a...
120482
0
How do I make a text button open another text button?
1696235625
Cubispaghettis
2
2023-01-22 18:52:34
<p>So I have two text buttons under a frame. One is labeled ButtonA. The other is labeled ButtonB. Button A is visible but not button B. Anyone know how to make it so when you click button A, it makes button B visible? Would the script normal or local? Where would i put it?</p>
132912
0
How do you teleport a part to a character?
19328197
WiseDumbledore
15
2014-04-16 15:28:29
<p>I am just starting to learn how to use position and I am confused. I believe the answer is in the lines of:</p> <pre class='brush: lua'>local hit = Workspace.WiseDumbledore Workspace.Part.Position = (hit.x,hit.y,hit.z) </pre> <p>Is that correct? Please correct me if I am wrong.</p> <p>Thanks -WiseDumbledore</p>
2165
3
2888
0
1449757
ZarsBranchkin
885
2014-04-16 15:31:56
<p>It's close to being correct, but in roblox, you use vectors for positions and forces.</p> <pre class='brush: lua'>local hit = game.Workspace.WiseDumbledore.Torso.Position game.Workspace.Part.Position = hit --Since 'hit' is already an vector, you don't need to use 'Vector.new()' </pre> <p>If you want the part to get ...
1
shake screen part on touch?
1688512684
mybuldingbames
9
2022-10-30 09:19:15
<p>how to do that? i need it for my game.</p>
132081
2
119293
1
72153531
0x5y
105
2022-10-30 11:13:42
<p>To shake a user's screen when a part is touched by the player, you can read about the .Touched event <a target="_blank" href="https://create.roblox.com/docs/reference/engine/classes/BasePart#Touched">here</a></p> <p>There is a freely available camera shaker available on the DevForum <a target="_blank" href="https://...
0
Changing Gui Colour,Transparency and Text size?
1302253
steev
0
2014-04-13 10:23:35
<p>How would i change the colour of the Gui in this script?</p> <p>I also want to make it transparent for example 0.5. I also want to change the text size</p> <p>Any help?</p> <pre class='brush: lua'>function NewGui() local Gui = Instance.new("ScreenGui") Gui.Name = "Countdown Gui" local Text = Instance.new...
1275
1
1726
0
35708167
Marolex
45
2014-04-13 10:39:35
<pre class='brush: lua'>function NewGui() local Gui = Instance.new("ScreenGui") Gui.Name = "Countdown Gui" local Text = Instance.new("TextLabel",Gui) Text.Name = "Countdown" Text.Size = UDim2.new(0.3,0,0.3,0) --Adjust size Text.Position = UDim2.new(0,0,0,0) --Adjust position if wanted. Text....
2
Whats the difference between mousebutton1Click and .Activate?
472504641
AlexanderYar
788
2020-04-28 15:29:35
<p>Hello, im working with gui buttons and was wondering</p> <p>what is the difference between <code>button.MouseButton1Click</code> and <code>button.Activated</code></p> <p>pls respond. thanks</p>
101078
4
93360
1
91709180
matiss112233
258
2020-04-28 15:38:25
<p>To clarify on what @VortexGamingPlayerYT said,</p> <p><code>Button.Activated</code> is for when any platform activates the button, so if you are on mobile, and you tap it, it will still work. <code>Button.MouseButton1Click</code> is just used for MouseButton1 clicks, or left mouse button clicks.</p>
0
Why Can't I Get 'RBXEmoteCommand'?
572656272
jaisonDXYX
24
2022-08-01 17:28:32
<p>I am trying to get RBXEmoteCommand to change the /e to /f</p> <pre class='brush: lua'>local ChatService = game:GetService("TextChatService") ChatService.MessageReceived:Connect(function(msg:TextChatMessage) local TextChatCommands = msg:WaitForChild("TextChatCommands") local RBXEmoteCommand = TextChatCommands...
131044
0
Why doesn&acute;t the Increment Value get updated to one?
409352618
AndriusTheGreat
135
2019-10-16 21:31:44
<p>I need a certain value to rise when the player presses the part. I am assigning this value through another script and it doesn´t work. The value I am talking about is the <code>player.Hidden.Increment.Value</code>. The script below is a server script while the script assigning the value is a local script.</p> <pre c...
88857
1
82343
1
181386826
Derzett
51
2019-10-16 22:23:28
<p>Is the increment value set to 1? Also you should use player.Hidden.Hazard.Value + 1 * player.Hidden.Increment.Value not +. I'm sure this would work fine!</p>
0
What are the XBOX button keycodes?
58638764
joshmatt2244
28
2020-03-05 14:54:54
<p>What is the KeyCode for LB and RB? All it sais is ButtonR1,2,3 ButtonL1,2,3 but idk which ones are which.</p>
95595
0
I'm trying to generate a part with Touched When I try this, not appear?
344589484
47347cool
0
2021-01-12 02:04:54
<p>What I want to do is that when the player touches the zone a part is generated</p> <pre class='brush: lua'>local Glitch = Instance.new("Part",game.Workspace) Glitch.Touched:Connect(function (GlitchMan) if game.Players:GetPlayerFromCharacter()then Glitch.Position = Vector3.new(2083.119, 2933.307, -35.924)...
118576
0
Attempt to concatenate instance with string?
1427465491
SimulationStHolder
2
2020-11-21 19:55:27
<p>Stack Begin  -  Studio Script 'ServerScriptService.Script', Line 50  -  Studio  -  Script:50 Stack End  -  Studio</p> <p>Script:</p> <pre class='brush: lua'>local name = "Player" local serverScriptService = game:GetService("ServerScriptService") local chatServiceModule = require(serverScriptService:WaitForChild("Cha...
116117
1
106568
0
126659427
VerdommeMan
1454
2020-11-21 20:36:51
<p>the onserverevent already receives the player variable by default</p> <pre class='brush: lua'>local player = game.Players.LocalPlayer local playertime = os.date("*t", os.time()) local hour, min = playertime.hour, playertime.min game.ReplicatedStorage.FireChat:FireServer(hour, min) </pre> <p>so in your case it was</p...
2
What to do with my old game if the Roblox's Table-saving DataStore is deprecated?
60715372
magicguy78942
237
2018-04-01 12:25:48
<p>So I have an old survival game back in 2017, I've created a DataStore script that saves tables:</p> <p>You may have the full script here:</p> <pre class='brush: lua'>local Storage = game:GetService('ReplicatedStorage') local ItemsFolder = Storage:WaitForChild('ItemsFolder') local DataStoreService = game:GetService("...
56007
1
65043
1
18664243
lazycoolboy500
582
2018-09-22 21:15:28
<p>I would recommend turning it into JSON format right before saving it via datastore. Once the data is called you can convert it back to its table form.</p> <p>A really good article on how to do this is through the following: <a target="_blank" href="https://">https://www.robloxdev.com/api-reference/function/HttpServi...
0
How would I make a tool?
52599239
Alyssall
0
2014-04-25 02:16:08
<p>How would I make a tool, and put a tool into it?</p>
3481