question_score stringclasses 21
values | title stringlengths 6 119 | question_userid stringlengths 4 10 | question_user stringlengths 3 20 | question_user_score stringclasses 496
values | question_datetime stringdate 2014-02-01 23:57:31 2023-04-02 01:40:15 | question stringlengths 0 11k | question_id stringlengths 1 6 | answer_count stringclasses 8
values | answer_id stringlengths 0 6 | answer_score stringclasses 18
values | answer_userid stringclasses 946
values | answer_user stringclasses 963
values | answer_user_score stringclasses 692
values | answer_datetime stringlengths 0 19 | answer stringlengths 0 10.7k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | How to make leaderboard with IntValues? | 1491123686 | TheEggsquidzidBoi | 38 | 2020-07-22 16:52:58 | <p>I'm trying to make a leaderboard by trying to get the IntValue in each player, but I don't know where to start.</p>
<p>If anyone has any advice, I'd surely appreciate it!</p>
| 109694 | 2 | 100829 | 2 | 159636940 | RareBIue | 133 | 2020-07-22 17:27:18 | <pre class='brush: lua'>local function onPlayerJoin(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local Coins = Instance.new("IntValue")
Coins.Name = "Coins"
Coins.Value = 0
Coins.Parent = leaderstats
end
game.Players.PlayerAd... |
1 | Is there a way for one to ungroup a model via a script? | 15295651 | Stephenthefox | 94 | 2019-02-01 23:30:18 | <p>When editing in studio you can group and ungroup objects/assets you've created. Is there a way you can ungroup or group an object through a script. I know you can use a loop to access the objects inside the group and change their parent, the delete the group itself. However is there a simple command to do this?</p>
| 75554 | 2 | 71012 | 1 | 124281858 | DeceptiveCaster | 3761 | 2019-02-01 23:41:12 | <p>This is actually really simple:</p>
<pre class='brush: lua'>local model = script.Parent.Model
local children = model:GetChildren()
for _,i in pairs(children) do
i.Parent = workspace
end
</pre>
<p>All you have to do is run a for loop through the children of the model and make all of their parents the Workspace.</... |
1 | how would I fix these errors in a NPC follow script? | 391170608 | superspeedr1234 | 60 | 2020-05-08 00:03:17 | <p>honestly Idk how many errors there are i got this online so please do a check for viruses as well thx! :)</p>
<pre class='brush: lua'>local NPC = script.Parent
local Humanoid = script.Parent:FindFirstChild("Humanoid")
local HRP = script.Parent:FindFirstChild("HumanoidRootPart")
local function GetClosestPlayer(range)... | 102299 | ||||||||
0 | What is the point of the output window? | 49960495 | ScriptNHelper | 5 | 2014-02-27 06:41:40 | <p>I guess this is good for debugging maybe but what else? Can someone explain this to me a little further?</p>
| 329 | 2 | 605 | 14 | 13416513 | Merely | 2122 | 2014-02-27 06:56:35 | <p>As well as providing feedback from your scripts, the output window tells you when there's a script error or warning about something you shouldn't be doing.</p>
|
0 | How do you find the owner of a group through a script? | 85002032 | Kev_nn | 4 | 2018-08-26 19:18:08 | <p>I am trying to find what a group owner's name and ID is from a script in a group game. I have tried using the following code:</p>
<pre class='brush: lua'>local creator = game.CreatorId
</pre>
<p>but it gives the group ID, not the group owner's ID. Any ideas on how to find who the group owner is?</p>
| 66267 | 2 | 63924 | 1 | 333702180 | Axdrei | 107 | 2018-08-26 19:25:43 | <p>Hello, Kev!</p>
<p>Have you heard about <a target="_blank" href="https://wiki.roblox.com/index.php?title=API:Class/GroupService/GetGroupInfoAsync">GetGroupInfoAsync</a> function?</p>
<p>This should help you:</p>
<pre class='brush: lua'>local groupId = 0
local group = game:GetService("GroupService"):GetGroupInfoAsync... |
0 | Local script vs script? | 13970097 | namelessassasin | 30 | 2014-06-10 05:32:39 | <p>Can you guys give me a few examples of a local script(ranging from easy to hard) with explanation, I read wiki and stuff, but I really need this concept down</p>
| 6450 | ||||||||
0 | How to make my tool dont stuck when im equipping it? | 621720819 | SashaPro336 | 47 | 2021-09-21 15:24:20 | <p>Idk how to make it dont stuck. I made my own part, it adds in my inventory, but when i put it out it just stuck in its spawn.</p>
<p>There is a script:</p>
<p>local tool = game.ServerStorage.Tablet</p>
<p>local giver = script.Parent</p>
<p>local canGive = false</p>
<p>local function GiveTool(player)</p>
<pre class="... | 127596 | ||||||||
0 | I have a timer, and when it stops, i want to print the time, but it's not doing it? | 493377356 | robloxgame399 | 1 | 2022-09-19 04:00:58 | <blockquote>
<p>here's the code:
local WinMessage:string = "{Time}"
local WinText:string = string.gsub(WinMessage,"{Time}",Time)
print(WinText)</p>
</blockquote>
<p>so it should print time right? (ex:05:38:00)</p>
<p>but it does nothing</p>
<p>and btw there is more code</p>
| 131670 | ||||||||
0 | How to reflect a direction? | 472504641 | AlexanderYar | 743 | 2022-09-18 23:11:15 | <p>Hello, i want to make a mirror with a viewport. Meaning i need to constantly change the angle the viewport camera is facing to be consistent with what one would see from a real mirror. This of course means I must get the reflected direction from the camera to the mirror. Basically i need to use this direction (mirro... | 131667 | ||||||||
0 | How do you make DialogChoiceSelected work in FilteringEnabled mode? | 59776366 | PurringThunder | 2 | 2018-10-03 18:10:50 | <p><strong>I'm trying to make it so that when a specific dialog choice is selected, the lighting changes dramatically.</strong> I've been trying to do this for two days now, trying as many different methods of getting the result I want as I can possibly think of- Script/LocalScript in the DialogChoice; putting the scri... | 68362 | ||||||||
1 | Tween Service not working on client? | 607731838 | DERP9487 | 41 | 2019-07-02 04:09:28 | <p>I'm making a client only tweening part.
And the part didn't tween, but there is no error output.
My code is like this</p>
<pre class="brush: lua">local TweenService = game:GetService("TweenService")
local Info = TweenInfo.new(0.8,Enum.EasingStyle.Elastic,Enum.EasingDirection.In,1,true,0)
script.Parent.MouseButton1Cl... | 82803 | ||||||||
0 | Bank Exchange Script Not working. Not Accepting Gold Amount Changing? | 1458325305 | Nervousmrmonkey2 | 71 | 2020-08-01 16:21:39 | <p>This is where the error is i beleive</p>
<pre class='brush: lua'>if Selling.Changed then
local Selling = leaderstats.Gold
Button.MouseButton1Click:Connect(function()
Currency.Value = Currency.Value + Selling.Value *10
Selling.Value = 0
</pre>
<p>`its exchanging gold to money but it think i have 0... | 110479 | ||||||||
0 | How to make ScrollingFrame autoscroll? | 373141546 | andremega0302 | 2 | 2022-06-22 14:06:14 | <p>Help how to make autoscroll in ScrollingFrame so that it scrolls to the size of the gui that is in the ScrollingFrame</p>
| 130464 | 1 | 117804 | 0 | 216701907 | namespace25 | 594 | 2022-06-22 21:07:21 | <p>If you have something like a UIListLayout or UIGridLayout, you can use the following code.</p>
<pre class='brush: lua'>local layout = -- Reference your UI layout object
local scrollingFrame = -- Reference your scrolling frame
local function setSize()
local contentSize = layout.AbsoluteContentSize
scrollingFr... |
0 | I cant make proximiity prompt clickable when bread maker stand is buyed? | 983645052 | teshowypl | 2 | 2022-07-29 11:45:26 | <p>I tried to make bread stand and when u buy it u can make bread but anyway i can press it
when its not visible how to fix it?</p>
<pre class='brush: lua'>local bread1 = workspace["Bread!"].Part1
local bread2 = workspace["Bread!"].Part2
local bread3 = workspace["Bread!"].Part3
local bread4 = workspace["Bread!"].Part4
... | 130992 | ||||||||
1 | How to make explosion's pressure not affect players and npcs? | 1624504218 | GameBuilderLol | 58 | 2021-06-28 09:35:37 | <p>so this might not be related to scripting but i have this problem where an explosion's pressure still affects players and npcs.</p>
| 124830 | ||||||||
0 | Help getting all tools under a model? | 57651089 | StoIid | 364 | 2016-06-03 22:10:28 | <p>How would I go about making a script get ALL the tools that are grouped together, and putting them into your backpack?</p>
| 31307 | 1 | 34507 | 0 | 5206310 | alibix123 | 175 | 2016-06-03 22:16:38 | <pre class="brush: lua">for _,tool in pairs(model) do
print(tool.Name)
-- other stuff
end
</pre>
<p>You need a for loop.
http://wiki.roblox.com/index.php?title=Loops#For</p>
|
0 | Parent doesn't exist? Indexing nil. | 835155757 | BrightFeather8 | 122 | 2021-01-14 01:45:30 | <p>Hello, I'm making a data store changer for a speedrun game. I already have the data store set up, and I'm working on the data store updater. Here is my code:</p>
<pre class='brush: lua'>local Players = game:GetService("Players")
local pausetime = script.Parent
local time = script.Parent.Parent:FindFirstChild("Speedu... | 118662 | 1 | 108543 | 1 | 180784359 | oilsauce | 196 | 2021-01-14 07:08:42 | <p>The error <code>Workspace.Speedrun Timer.Timer_Pause.Script:7: attempt to index nil with 'Parent'</code> basically means whatever you're trying to get the Parent of, is nil. In this case, that would be <code>touchpart</code>.</p>
<p>Why is it nil? The issue is at line 20. When connecting the <code>Touched</code> eve... |
0 | Can someone help me fix my Radio welding script, as it doesn't go on the back of my player? | 488086637 | TheFirstAlphaUser | 0 | 2021-01-13 17:12:36 | <p>Hey guys, I need some help.
I'm making a radio gamepass, with a radio which spawns on the back of the player when they have the gamepass
Everything works well excluding the welding of the radio onto the player itself. It always goes on the right spot or the wrong spot even without changing the code once and it's bro... | 118644 | ||||||||
1 | Why doesn't offsetting the CFrame... er... offset the CFrame? | 55811169 | ZeptixBlade | 215 | 2015-03-28 19:34:08 | <p>I'm trying to offset this CFrame a little bit. I only really want an offset of a couple of studs, but that didn't do anything, so I changed it to 100. It still did absolutely nothing. Yes, my script is enabled and everything. There's no output. Idk why the cframe isn't being given an offset.</p>
<pre class='brush: l... | 16110 | ||||||||
0 | How do I reset my Datastorage for everyone in this script? | 1331661786 | Cowgato | 33 | 2022-09-12 10:35:18 | <p>for more context, the name of the Modul Script is PlayerManager</p>
<pre class='brush: lua'>local Players = game:GetService("Players")
local DataStoreService = game:GetService("DataStoreService")
local PlayerData = DataStoreService:GetDataStore("PlayerData")
local function LeaderboardSetup(value)
local leadersta... | 131604 | 1 | 118851 | 0 | 433962773 | theking66hayday | 119 | 2022-09-12 14:48:08 | <p>Rename player data, this will reset data. It would then run a different data service.</p>
|
0 | How do I set this variable to a leaderstat?? | 813441209 | dannybuns03 | 9 | 2023-02-09 05:22:06 | <p>So I want the variable "Upgrades" to be the value of the leaderstats I have name "Upgrades" How would I do that?</p>
<pre class='brush: lua'>local Upgrades = 1
game.ReplicatedStorage.anything.OnServerEvent:Connect(function(player)
player.leaderstats.Blocks.Value = player.leaderstats.Blocks.Value + Upgrades
end)
... | 133043 | ||||||||
0 | Why is my Touched event not working when the player touches the part? | 586997594 | YandH015 | 9 | 2021-01-14 12:50:51 | <p>So im trying to get the player, if he clicks a button(Text button) a part spawns, i got no problem with that, but when i try to make it so when the play touches the part they take damage, it doesnt work. Here is the following code</p>
<pre class='brush: lua'>local btn = game.StarterGui.test2.test
function SpawnShado... | 118678 | 1 | 108549 | 0 | 58729054 | Dovydas1118 | 1410 | 2021-01-14 12:56:58 | <p>Your function isn't returning anything. If you wanna get the touching part, you'll need to return something. Which is an instance.</p>
<pre class='brush: lua'>local btn = game.Players.LocalPlayer:WaitForChild("PlayerGui").test2.test --Manipulate the PlayerGui, not StarterGui. Also you can use script.Parent if your l... |
0 | How can I make an IntValue with decimals? | 430231091 | sixfirez | 33 | 2023-01-06 18:50:26 | <p>So when I try to add +0.2 value to an IntValue, it just stays at 0 no matter how many times I click. How could I make this work?</p>
| 132769 | ||||||||
0 | how to weld a part to relative to another part? | 7177436 | Voltoxus | 248 | 2014-05-17 22:07:26 | <p>How would I weld a part relative to the position of a humanoids torso?</p>
| 5007 | ||||||||
0 | model:SetPrimaryPartCFrame wont work? (i already set a primary part for the model ) | 297497768 | Pixelartist123stella | 0 | 2022-08-08 16:32:16 | <p>Here is the code
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
local ScytheCase = script.ScytheCase:clone()
ScytheCase:SetPrimaryPartCFrame(Character.HumanoidRootPart.CFrame)
ScytheCase.Parent = Character</p>
<pre class="brush: lua"> local weld = Instance.new(... | 131148 | ||||||||
0 | Humanoid is not a valid member of Model? anyone know how to fix this? | 995903142 | BonkedWasTaken | 0 | 2022-08-02 17:54:07 | <p>I'm scripting from a youtube tutorial and I'm making a tower defense game and for some reason I have a error "Humanoid is not a valid member of model Workspace.Towers.Slinger?
(also the error is on line 54)</p>
<p>(towers is my folder where I put my towers in and slinger is the towers name) does anyone know how to f... | 131067 | ||||||||
0 | Door script not functioning at all, no errors? | 441720480 | TheStarWarsMaster856 | 12 | 2022-08-01 18:17:37 | <p>I tried making a proximity prompt keycard door using this tutorial https://devforum.roblox.com/t/introduction-to-tweening-models/315253 but nothing is happening, no prints or errors. Here's the script:</p>
<pre class='brush: lua'>local Players = game:GetService("Players")
local ProximityPromptService = game:GetServi... | 131046 | ||||||||
0 | My leaderstats script is not working properly? | 101879484 | XxSHjokerxX | 18 | 2016-08-20 15:47:50 | <p>It says line:76 attempt to index local 'PlayersFolder' (a nil value)</p>
<p>and also when the player leaves the folder doesnt delete or go it stays in the server</p>
<p>Additional Info: The stats script is in Workspace and I make the players stats folder go in ServerStorage</p>
<pre class='brush: lua'>local DataStor... | 34804 | ||||||||
0 | [GUI] How Would I make this Detach? | 16788016 | Timster111 | 25 | 2014-12-23 16:44:45 | <p>How would I make it to where they guy model detaches from the GUI?</p>
<pre class='brush: lua'>module3D = require(game.Workspace.Module3D)
frame = script.Parent.Frame
guy = game.Workspace.Guy
wait(1)
model3D = module3D:Attach3D(frame,guy)
model3D:SetActive(true)
game:GetService("RunService").RenderStepped:connect(fu... | 13546 | ||||||||
0 | How come my script doesn't work anymore? The ScreenGui just stays there. | 38036947 | marioblast1244 | 113 | 2017-02-01 23:26:55 | <p>I'm making it so when a player clicks a button, the <code>ScreenGui</code> disables. However, its not working anymore. How come? This is the code that used to work:</p>
<pre class='brush: lua'>wait(0.25)
local Screen = script:WaitForChild('TitleScreenGui')
local screen = Screen:Clone()
local play = screen.TitleScree... | 39671 | ||||||||
0 | invalid argument #2 to 'remove' (number expected, got string)? | 182139900 | WideSteal321 | 773 | 2020-09-28 23:17:39 | <p>Code:</p>
<pre class="brush: lua">local admins = {}
local prefix = "!"
local prefixlen = prefix:len()
game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
if msg:sub(1, 8 + prefixlen):lower() == prefix .. "unadmin " then
local TS = msg:sub(9 + prefixlen)
... | 113771 | 1 | 104428 | 1 | 77009834 | Nicholas1088 | 169 | 2020-09-28 23:28:14 | <p>When you remove something in a using a remove, it has to be a number, you can't remove a string. TS is a string because it is a msg. table's and their keywords must have args passed as you know. say we have a table</p>
<pre class="brush: lua">local Table1 = {
"Test",
"Dummy",
"Stupid"
}
</pre>
<p>and you call table.... |
0 | How do i open a gui menu on a button touch? | 650688567 | libaryman1 | 6 | 2023-03-16 00:02:51 | <pre class='brush: lua'>local button1 = workspace["Tycoon Map"]["Start Pad 1"]
local GUI = workspace.Parent.StarterGui["Type Menu GUI"]
local Start = function ()
if button1.Touched = true then
GUI.Enabled == true
end
end
</pre>
| 133194 | 1 | 120265 | 0 | 2044258372 | MaleficentMaestro | 109 | 2023-03-16 04:20:12 | <p>Solution:</p>
<pre class='brush: lua'>--Place this script inside the "Start Pad 1" part.
script.Parent.Touched:Connect(function(hit) --function fires when part is touched, no need for an if statement
if not hit.Parent:FindFirstChild("Humanoid") then return end --making sure it's a human touching the part
loc... |
0 | Frame is not positioned in the mouse's Position? | 742047187 | ryanzhzh | 56 | 2022-07-30 19:36:55 | <p>This is something really hard to do.
It doesn't make the frame not positioned correctly.
Video:
<a target="_blank" href="http://">https://gyazo.com/13b3d5c0b0f41cf25fd43f17a2f210a2</a>
I've tried looking for posts dev forum, nothing just works.
Example of what I tried to do reading dev forum posts:
Convert <code>Vec... | 131019 | ||||||||
0 | How to make my 2D Movement Script prevent players from going off map? | 1400234436 | KoalaKo_XD | 27 | 2023-03-06 19:44:33 | <p>Hello,</p>
<p>I have a 2D movement system for a game like Space Invaders, and I don't want the player to go off map. Does anyone know how I can do that? I already have a script, the movement works, but the player can still go off the map!</p>
<pre class='brush: lua'>UIS.InputBegan:Connect(function(input, GameProcess... | 133151 | ||||||||
0 | I need to make a part that gives you a forcefield when you touch it. how do I do this? | 941378754 | LAVA_9799 | 2 | 2022-07-30 21:04:20 | <p>I need to make a script that gives the player a forcefield when they touch a part and destroy the forcefield when they stop touching the part. I realized the script below wouldn't work until halfway through writing it.</p>
<pre class='brush: lua'>local ActivationPart = script.Parent
if ActivationPart.Touched == true... | 131020 | 3 | 118366 | 0 | 226832508 | MattVSNNL | 614 | 2022-07-31 23:07:45 | <p>Hello,</p>
<p>I've done your script
Also the problem with the one from imnotaguest1121 is that it creates a bunch and also it doesn't go after 5 seconds.</p>
<pre class='brush: lua'>local DebrisService = game:GetService("Debris") -- Using debris so we don't yield the code
script.Parent.Touched:Connect(function(hit)
... |
0 | My shop is working, but the items I'm purchasing are not. How do i fix that? | 1386892734 | loner_cactus | 0 | 2020-06-29 16:25:52 | <p>I made a shop that works. It takes your money and gives you an item, but the item doesn't work. (the item works when I use it without buying in shop)</p>
<p>This is the code:
(i got it from a youtube tutorial)
Zims is my money</p>
<pre class='brush: lua'>local player = game.Players.LocalPlayer
script.Parent.MouseBut... | 107752 | 1 | 99046 | 0 | 506839197 | Omerevkizel | 16 | 2020-06-29 16:30:55 | <pre class='brush: lua'>local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
if player.leaderstats.Zims.Value >= 10 then
player.leaderstats.Zims.Value = player.leaderstats.Zims.Value - 10
game.ServerStorage.Tools.Sword:Clone().Parent = Players.LocalPlayer.Bac... |
0 | My script won't work and won't return any error to the output, I don't understand why? | 467337150 | XDvvvDX | 171 | 2020-05-31 10:20:33 | <p><strong><em>Hey. I made a script that whenever a player presses V it will change his CameraMode.
For some reason it won't work, and it won't return any error to the output.
Here's my script, lines 29-40:</em></strong></p>
<pre class='brush: lua'>local UIS = game:GetService("UserInputService")
UIS.InputBegan:connect(... | 104921 | 1 | 96735 | 2 | 245864252 | xInfinityBear | 951 | 2020-05-31 10:41:34 | <p>It's because you have <code>(isTyping, KeyCode)</code>. Please note that the order of the parameters do actually matter. The first parameter of this event is the Input and the next is gameProcessedEvent. So in your script, 'isTyping' is being assigned to the Input, and 'KeyCode' is being assigned to gameProcessedEve... |
0 | How do I prevent this script from running multiple times? | 28878129 | LoganboyInCO | 150 | 2018-12-02 05:11:48 | <p>How do I prevent this script from running multiple times <a target="_blank" href="https://gyazo.com/1eb4ef85b6bef001cf59d51d7d8a9ead">(effects it has)</a></p>
<p>It makes tons of <code>BodyVelocity</code> in the same part, I also need to destroy the body velocity after x amount of second but dont know exactly how, c... | 71490 | 1 | 67863 | 2 | 34716028 | cmgtotalyawesome | 1418 | 2018-12-02 05:43:53 | <p>I've been trying to use the disconnect function somewhere in the script, but I can't find out how to make that work. The only thing I can think of is not letting the script run unless :FindFirstChild("Force") comes back as nil. This would make your script look like this:</p>
<pre class='brush: lua'>script.Parent.Tou... |
2 | [Solved] i % 1 does not give 0 in script, but manually in command line it does? | 31504923 | rabbi99 | 714 | 2020-11-16 18:04:17 | <p>I have a piece of code that counts in a for loop but while counting I want it so whenever it is divisible by 1 to run a function. However, it keeps failing the 'checking if divisible by 1' part (it gives a different number). I just can't figure it out, unless it's some bug.</p>
<p>Here's a slightly edited copy of my... | 115884 | ||||||||
3 | Check if a players age is over 13? | 79744489 | iipooplord | 15 | 2016-02-15 19:24:27 | <p>I know there is Player GetUnder13 but I cannot use that...</p>
<p>Does anyone know how a game can check if user is under or over 13?</p>
| 27445 | 2 | 30982 | 10 | 817067 | XAXA | 1569 | 2016-02-16 01:34:17 | <p>It is possible to check if the player is 13+ with a neat trick: use FilterStringForPlayerAsync!</p>
<p>According to the wiki article for <a target="_blank" href="http://wiki.roblox.com/index.php?title=API:Class/Chat/FilterStringForPlayerAsync">FilterStringForPlayerAsync</a>:</p>
<blockquote>
<p>Filters a string appr... |
0 | How can I change this script to make this team have its own character anims? | 479845142 | LunaticFETCH | 5 | 2023-01-17 15:31:03 | <p>Hi. I have this "Zombie" team, and I have a script that changes its walk speed, but I also want to replace all of the default animations like walking and such. Can someone help me modify the script I already have?</p>
<p>local Players = game:GetService("Players")
local Team = game:GetService("Teams")["Zombie"]</p>
<... | 132873 | ||||||||
1 | Getting information from a mobile touchpad joystick? | 2933011 | Nickoakz | 231 | 2016-03-14 05:23:58 | <p>I have looked into <a href="http://wiki.roblox.com/index.php?title=Mobile_Controls">http://wiki.roblox.com/index.php?title=Mobile_Controls</a> only to get information on how to add new buttons or information about how to use the touchscreen instead of anything on the joystick that Roblox provides to move the charact... | 28454 | ||||||||
1 | Server scripts and Client scripts... | 25691148 | FromLegoUniverse | 264 | 2014-03-13 15:53:23 | <p>What makes something a client script? Is it when they are in a player, is it when it is a LocalScript, or is it something else?</p>
| 664 | 1 | 1060 | 3 | 189503 | Reinitialized | 45 | 2014-03-13 17:25:58 | <p>ServerScript(s):
ServerScripts run on the virtualized cloud servers at ROBLOX HQ. They have access to "almost" anything that interacts with the server environment. They also cannot access certain things that are exclusive to the Client.</p>
<p>ClientScript(s):
ClientScripts run ON YOUR PC/Mac and do not associate th... |
0 | My Brick will not change colors? | 79523404 | snipperdiaper | 93 | 2019-07-11 20:19:28 | <p>Im new to scripting and am wanting to create a script that changes colors after 0.5 seconds. But the one I made seemed not to work? Can someone please tell me what I did wrong here?</p>
<pre class='brush: lua'>local CB = script.Parent
CB.Color = BrickColor.Red()
wait(0.5)
CB.Color = BrickColor.Blue()
wait(0.5)
CB.Co... | 83484 | 1 | 77583 | 0 | 161262344 | sean_thecoolman | 190 | 2019-07-11 20:41:29 | <p>This is what you'd want to do:</p>
<pre class='brush: lua'>local CB = script.Parent
CB.BrickColor = BrickColor.new("Really Red")
wait(0.5)
CB.BrickColor = BrickColor.new("Really Blue")
wait(0.5)
CB.BrickColor = BrickColor.new("Lime Green")
wait(0.5)
--You can use the color palette to find which colors suit what you ... |
0 | Why Does the VIP shirt not work? | 43561529 | BritishGotSwag | 30 | 2014-05-09 23:42:56 | <pre class='brush: lua'>local Door = script.Parent --Marks it to be Door as parent of part
function onTouch(Brick) --Starts function, sends message to "Brick" that it was touched
local Player = Brick.Parent:findFirstChild("Humanoid") --Makes it try to find Humanoid
if(Player ~= nil) then --Makes sure it is a re... | 4612 | 1 | 6237 | 1 | 28144472 | DevScripting | 92 | 2014-05-09 23:46:59 | <pre class='brush: lua'>local Door = script.Parent --Marks it to be Door as parent of part
function onTouch(Brick) --Starts function, sends message to "Brick" that it was touched
local Player = Brick.Parent:findFirstChild("Humanoid") --Makes it try to find Humanoid
if(Player ~= nil) then --Makes sure it is a real Playe... |
0 | How do i make a save GUI? | 6414728 | jls12345678 | 0 | 2014-04-17 09:51:55 | <p>Hi ive being trying to make a save GUI but it dosent seem to work out ive tried everything from the free models what should i do the value name is "Money" can someone plz help me</p>
| 2408 | 1 | 3332 | 0 | 34406066 | FanisTheCool | 55 | 2014-04-17 11:34:49 | <p>After you save something you'll have to load it too.
Make a simple Script and throw it at the Workspace.</p>
<p>Start by making the Gold value and the leaderstats. Every Time the player enters the game the Gold Value will be the one of the Key we will save.</p>
<pre class='brush: lua'>GoldKey = "Gold"
game.Players.P... |
0 | Roblox Lua | How do i make a random number for EACH player? | 1370082835 | VikkiVuk | 39 | 2020-09-13 20:03:55 | <p>So, im trying to make an system to choose an role for each player, and also choose a map for all players, so i tried this:</p>
<pre class='brush: lua'>local roundLength = 10
local intermissionLength = 5
local status = game.ReplicatedStorage.IntermissionStatus
local inround = game.ReplicatedStorage.InRound
local chos... | 113131 | ||||||||
2 | How to efficiently use functions in the strings library ? | 61716444 | theking48989987 | 2141 | 2018-10-29 02:19:06 | <p>So for the past few months, I have been grappling with functions such as <strong>string.sub, string.gsub, string.find, string.gfind, string.match,string.gmatch</strong>, and <strong>string.format,</strong> but never really understood them entirely, I have had some experience with string.sub, string.gsub, and string.... | 69681 | ||||||||
0 | Having an issue with press R to reload script, how can I fix it? | 1314599390 | NuggetHasJoined | 7 | 2021-02-04 09:05:35 | <p>Trying to make an FPS game, made a press R to reload script, however, once I reload, every time I shoot, it automatically reloads, even if I've only shot one bullet. Any suggestions on how I can fix it?</p>
<p>userInput.InputBegan:Connect(function(input, gameProcessed)</p>
<pre class="brush: lua">if not gameProcesse... | 119618 | 1 | 109203 | 4 | 32873227 | shadowstorm440 | 575 | 2021-02-04 09:27:44 | <p>the <code>or</code> condition will only work if you repeat what's on the other side, otherwise your just repeating a statement and anything will be accepted.</p>
<p>this is your fix:</p>
<p>line 04</p>
<pre class='brush: lua'>if keycode == Enum.KeyCode.R or keycode == Enum.KeyCode.ButtonX then
</pre>
<p>line 02</p>
... |
0 | Script Not Parenting Models to ReplicatedStorage with :FindFirstChild()? | 1680108820 | JmoneyPlayzOfficial | 49 | 2022-12-29 05:54:42 | <p>hi, im making a script where a number's going down (already done that script) and this script is supposed to check what the number is, and change the parents of some models depending on how big the number is, but it isnt working, can anyone help me?</p>
<pre class='brush: lua'>local RepStorage = game.ReplicatedStora... | 132691 | ||||||||
1 | How do i get the second value of string.gsub? | 667345478 | helloneighbor1016 | 16 | 2020-11-22 19:56:56 | <p>string.gsub("121113", "1", "1") returns when printing a second value. How do i get that second value?</p>
<pre class='brush: lua'>print(string.gsub("12113", "1", "1"))
</pre>
<p><strong>returns:</strong></p>
<pre class='brush: lua'>121113 3
</pre>
<p>how do i get that last "3" ?</p>
<p><strong>what i tryed:</strong>... | 116169 | 1 | 106615 | 0 | 129265755 | Vinceberget | 1148 | 2020-11-22 21:37:22 | <pre class='brush: lua'>local string, matches = string.gsub("12113","1","1")
print(string)
print(matches)
</pre>
<p>Output:</p>
<blockquote>
<p>12113
3</p>
</blockquote>
|
0 | player.userID is not a valid member of part? | 46886485 | WelpNathan | 307 | 2015-04-29 18:42:22 | <p>Hello!</p>
<p>I just created a script to promote a person in my group using the http service, however it doesn't seem to work.</p>
<pre class='brush: lua'>function promoteuser(..,..,..)
print "This function is classified and works fine."
end
function promote(player)
print "1"
promouser((1240173),(8236279... | 17114 | 2 | 20494 | 1 | 18043256 | yumtaste | 476 | 2015-04-29 19:02:28 | <p>The Touched event returns the part that touched the part that the event is focusing on. For example, part1 is the part we're focusing on (touching it will trigger the Touched event). Say a player's character's left leg touches it. In your case, the variable "player" is the left leg, not the player. So, I suggest you... |
0 | How do you make your camera look downwards but you can still zoom in and out? | 214867236 | ENDERDJERRY | 0 | 2021-07-23 23:38:46 | <p>Hi, I am trying to make a a Tower Defense game similar to "Bloons TD 6," so that your camera is looking down at a specific <strong>height</strong> (that I can change in the code). There is another thing that I want to implement which where you can also zoom in and zoom back to the original <strong>height</strong>.</... | 125646 | ||||||||
0 | My Map Changer doesn't work, what do I do? | 21490721 | massivemario12345 | 0 | 2014-04-16 13:34:32 | <p>I am creating a game called Infantry Wars and I made a map changer ad put it in. When I tested the game all the maps were up and were tilting sideways. What do I do?</p>
| 2147 | ||||||||
0 | Local Script to check for the individual players chat? | 8581998 | andree5000 | 0 | 2017-07-15 00:38:52 | <p>I'm developing my new game ROBLOX Ware, and there's something that I need for my MicroGame to work.</p>
<p>The Problem is, I don't know how to get 'Chatted' to work with a local script.</p>
<p>This is what I have so far:</p>
<pre class="brush: lua">wait()
local mf = game.Workspace.MasterFunctions
local player = game... | 45290 | ||||||||
2 | How can I properly use/code the 'InputBegan' event of 'UserInputService'? | 17514438 | TheeDeathCaster | 2368 | 2015-04-09 01:33:26 | <p><strong>Reason behind question</strong>: I am currently coding a <code>Chat</code>-like GUI that which will enter in <code>strings</code>, characters, and then display the message, however, <code>UserInputService</code> keeps on error-ring, as I have never used it before, what makes it harder is, the ROBLOX Wiki has... | 16516 | ||||||||
0 | Why can't I use math on textlabels, and why does it only work sometimes? | 1350569192 | AbettrWesley | 3 | 2022-05-19 19:47:59 | <pre class="brush: lua">I'm making a game about invading territories, and since I'm new to coding, I don't fully know how purchases work yet, and my code may not be very neat or compact, but I'm not concerned about those.
All I'm concerned about it the fact that this one line of code likes to switch between working and... | 130048 | ||||||||
0 | How to make script heal player's health once dev product is bought? | 28242872 | Astraeh | 0 | 2014-05-08 22:10:30 | <p>I'm not sure how to make it do this since I'm a beginner at scripting.</p>
| 4536 | ||||||||
0 | How to make/script a limited time or limited quantity gamepass or developer product? | 118151058 | inkojnito | 0 | 2020-11-23 17:17:14 | <p>I want to add a gamepass or developer product into my game. I want to include the ability to buy coins for the in game shop. Prices will be fairly average but every now and again, I want to have a deal, maybe for an hour or so where you can purchase a particular coin pack for less than it usually is.</p>
<p>I also w... | 116212 | ||||||||
0 | Not Able to change the text on my textlabel? Maybe a Bug? | 1248341626 | NovaGooBoom | 42 | 2020-11-15 14:04:30 | <p>So this is really simple, I noticed my script was not changing the text on my gui so I decided to do a test. But it just doesn't work, no output or anything.</p>
<p>In a local Script, inside starter Gui</p>
<p>script:</p>
<pre class='brush: lua'><br />local Gui = game.StarterGui.Click.TextLabel
Gui.Text = "test"
</p... | 115811 | 2 | 106308 | 1 | 443643048 | Soban06 | 410 | 2020-11-15 14:20:59 | <p>Try doing this:</p>
<pre class='brush: lua'>local Player = game.Players.LocalPlayer
local textLabel = game.Players[Player.Name].PlayerGui.Click.TextLabel
textLabel.Text = "test"
</pre>
|
0 | Anyone know how to script treadmill? already have a model | 426148139 | Pantherteam2222 | 0 | 2021-02-06 23:33:38 | <p>I dont know how to make a treadmill to add strength in my weight lifting game, I have the model I made, but i don't know how to get a script to work for it, any suggestions?</p>
| 119746 | ||||||||
0 | currency system, im making it so that you kill a zombie and it give u money pls help script no work? | 1483026272 | wswswff | 2 | 2022-09-18 21:46:13 | <pre class='brush: lua'>game.Players.PlayerAdded:Connect(leaderboardSetup)
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = Player
local cash = Instance.new("NumberValue")
cash.Name = "Cash"
cash.Va... | 131666 | ||||||||
4 | Is there a way to find out if a function should be called as a method? | 39250676 | ScriptGuider | 5640 | 2015-11-27 02:55:51 | <p>So I'm trying to make a program in which involves me finding out whether or not a function inside a table should be called as a method, or as a regular function variable. I know the differences between these different formats, but I have yet to figure out whether or not you can tell with code.</p>
<p><strong>For exa... | 24712 | 1 | 28307 | 4 | 386992 | BlueTaslem | 18071 | 2015-11-27 05:39:50 | <p>No, there's not:</p>
<p>Methods are just <strong>sugar</strong>. <strong><a target="_blank" href="https://scriptinghelpers.org/questions/23755/adding-function-to-an-instance">See this question for more details</a></strong>.</p>
<p>In brief:</p>
<pre class='brush: lua'>obj:method(x, y)
-- is equivalent to
obj.method(... |
0 | Is it possible to change a bool value from a server script parented to a part? | 60373878 | Ascarson4 | 99 | 2020-11-23 16:17:36 | <p>Here is my code for the part:</p>
<pre class='brush: lua'>local orgPos = script.Parent.CFrame
local InRound = game.ReplicatedStorage.InRound
local BlueTake = game.ReplicatedStorage.Bluetake --Here is the bool value I'm trying to change
local debounce = false
function onTouch(hit)
if not debounce then
deb... | 116208 | 1 | 106636 | 0 | 1751062389 | TheEagle722 | 114 | 2020-11-23 16:39:30 | <p>Of course. a script can adjust everything everywhere. except things in the local client :)</p>
<pre class='brush: lua'>part.Touched:Connect(function(x1)
if x1.Parent.Humanoid then BlueTake.Value = true end
end)
</pre>
<p>Thats all.</p>
<p>Oh also, almost forgot, you can use _G to make strings visible across all the ... |
3 | Getting official ROBLOX badges? | 1002773 | Spongocardo | 1991 | 2014-11-18 20:03:26 | <p>Hi. I know it's possible to find if a player has a certain player-awarded badge but I am wondering if it is at all possible to check if a player has an official ROBLOX-awarded badge (E.G: Welcome to the Club, Administrator, etc.) in their possession.</p>
<p>I am looking to do this to try and update my chat GUI to sh... | 12572 | 1 | 15637 | 0 | 9822618 | KarlXYZ | 120 | 2014-11-18 20:59:21 | <p>As far as I know, there is currently know way to do this as it's not in the ROBLOX API.</p>
<p>I'm pretty sure ROBLOX have to manually add and remove administrator's usernames from a script that shows the admin badge next to their name in the leader board.</p>
<p>You can see this at line 174 in the core script on <a... |
0 | VectorForce not canceling out when I move? | 131897068 | WH_HAN | 2 | 2021-02-21 05:18:49 | <p>Hello! I am currently making a fly script and it works fine but whenever I move forward, my character doesn’t stop and continues to keep moving.</p>
<p>What do you want to achieve?
I would like for my character to slowly come to a stop whenever I let go of the key.</p>
<p>What solutions have you tried so far?
I’ve t... | 120452 | ||||||||
4 | Is there anyway of telling if a server is Xbox run? | 15619704 | NinjoOnline | 1147 | 2016-05-25 12:05:33 | <p>Question says it all really. I currently have a game, which is on the Xbox, but it has leaderboards, and for it to get featured, the leaderboards need to be separate, like if you are on the Xbox, it only shows Xbox scores, and then for PC, tablet, and phone, it shows you those scores and not the Xbox player scores.<... | 30920 | 1 | 34200 | 1 | 39893688 | manchester1002 | 57 | 2016-05-25 21:49:51 | <p>I don't think that there's an actual way to detect if a Player is REALLY on a Xbox. (Tell me if I am wrong.)
Maybe it will come in the future, since playing ROBLOX on a Xbox has just been released.</p>
<p><strong>There are 2 options:</strong></p>
<p>1: <em>Use your method, like it isn't such a big deal if they plug ... |
1 | Is this a proper way to wait a client tween? | 2479393 | Dfzoz | 345 | 2019-08-26 09:43:28 | <p>I made a tween to animate a bomb expanding.
After the tween(that lasts 1 second), the bomb explodes.</p>
<p>Part of the Server Script Code:</p>
<pre class='brush: lua'>local player = game. players.SOMEPLAYER
local bomb = script.Parent
game.ReplicatedStorage.TweenBomb:FireAllClients(bomb)
wait(1)
</pre>
<p>Local Scri... | 86530 | 1 | 80182 | 2 | 113420019 | bluzorro | 408 | 2019-08-26 10:22:29 | <p>Because you made it on the client, it's good, but if it's on the client, there may be lag included in the tween because nobody has a perfect connection. And to be able to fix the lag, here is a link:</p>
<p><a target="_blank" href="https://developer.roblox.com/en-us/articles/Improving-Performance">Improving game per... |
0 | Last player alive not getting a win. but the last player that died is?? | 497115731 | bigman0974 | 0 | 2022-06-16 21:31:05 | <p>I have made a simple round script and the last player thats alive in the round should get a win added to their leaderstats. For some reason the last player who died (the person the last player alive killed) is getting the win. Here is my code (btw its not all my code, i have compiled some code from other sources nd ... | 130374 | ||||||||
0 | How do I make script pause after executing (clone)? | 297895004 | TravelingReaper | 2 | 2023-01-22 23:58:52 | <p>Hello
I am currently trying to make a script that spawns an infinite track. It works well except that it spawns tons and tons of models when it is touched. How do I pause the script momentarily to prevent this?</p>
<pre class="brush: lua">local function clone()
local cloned = road:Clone()
cloned.Parent = gam... | 132917 | 1 | 120050 | 0 | 559514967 | T3_MasterGamer | 2189 | 2023-01-23 12:39:08 | <p>Use a <a target="_blank" href="https://create.roblox.com/docs/scripting/scripts/debounce">debounce</a>.</p>
<pre class="brush: lua">local debounce = true -- tells if cloning is available
local function clone()
if debounce == true then -- if cloning is available
debounce = false -- makes cloning unavailab... |
0 | the DataStore I added isn't saving my data. Can you tell me where have I gone wrong? | 1659036379 | crundeeisreeaall | 0 | 2021-02-24 10:40:48 | <p>Here are my scripts. If you find any errors can you correct them in the answers? Thanks
leaderstats script-
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player</p>
<pre class="brush: lua">local cash = Instance.new("... | 120601 | ||||||||
0 | How do I get sounds to only play for a certain person? | 36797975 | jBuildz17 | 20 | 2014-02-21 16:25:24 | <p>I have a pad that when touched by a player plays a sound. Is there a way to make it so that sound is only heard by the person who touched it?</p>
<p>And if there is, how would I do it?</p>
| 199 | 1 | 351 | 4 | 27572935 | Slazerick | 55 | 2014-02-21 16:31:00 | <p>I believe that if you save the sound on "Backpack" or "PlayerGui" The sound will only play for the player.</p>
|
0 | Why am I still dying even when I have a ForceField and not dying when I don't? | 22814853 | Senor_Chung | 210 | 2015-05-03 19:27:02 | <p>This script is inside a part. And when you touch without a ForceField you lose 100 health. (There is a shop where you can buy more health. That's why you lose 100 health instead of just setting health to 0)
And if you touch it with a ForceField, you're supposed to not lose any health and have a 25% chance of getting... | 17248 | ||||||||
0 | I used the magnitude but why does it only worked on the later paths but not on the first few paths? | 297620913 | XxTechi | 0 | 2023-02-16 10:23:55 | <p>Line 6
Help would be so much appreciated</p>
<pre class="brush: lua">function jeeptarget()
for _, v in pairs(Zombies) do
if v:FindFirstChild("HumanoidRootPart") then
if v.HumanoidRootPart:FindFirstChild("Node") then
if Model.PrimaryPart then
if (Model.Prima... | 133078 | ||||||||
0 | I have a question about math.random? | 86518347 | IfIWasntSoSwag | 98 | 2017-05-08 18:42:35 | <pre class="brush: lua">local Player = game.Players.LocalPlayer
local Cash = Player.leaderstats.Cash
function onClick()
Cashie = math.random(1,3)
end
script.Parent.MouseButton1Click:connect(onClick)
if Cashie == 1 then
Cash.Value = Cash.Value + 100
end
if Cashie == 2 then
Cash.Value = Cash.Value + 200
end
if Cashie == ... | 42750 | 2 | 44290 | 0 | 157510912 | General_Scripter | 425 | 2017-05-08 18:57:28 | <p>You wanted a script as your answer so here you go:</p>
<pre class="brush: lua">minValue = 1
maxValue = 10
cash = game.Players.LocalPlayer:WaitForChild("leaderstats"):WaitForChild("Cash")
script.Parent.MouseButton1Click:connect(function()
cash.Value = cash.Value+math.random(minValue,maxValue)
end)
</pre>
<p>This ... |
0 | game freezes for 2 seconds? | 377591837 | OctavianH0310 | 25 | 2021-02-25 21:28:55 | <p>hello! does anybody know why my game frezees for 2 seconds when it starts? i cant find out</p>
| 120680 | ||||||||
0 | Fall Damage Script Help! Please? | 13667373 | EzraNehemiah_TF2 | 3552 | 2015-02-24 01:48:05 | <p>Below is my script:</p>
<pre class='brush: lua'>unit = 0.5 --Seconds
damageperunit = 1
damage = 0
game.Players.PlayerAdded:connect(function(plyr)
plyr.CharacterAdded:connect(function(char)
local h = char:FindFirstChild("Humanoid")
local hrp = char:FindFirstChild("HumanoidRootPart")
while ... | 15255 | ||||||||
3 | What is the Difference Between Random and RandomSeed? | 34209956 | M39a9am3R | 3210 | 2015-05-28 02:12:47 | <blockquote>
<p>What is the difference between the two functions, <code>math.random()</code>, and <code>math.randomseed()</code>?</p>
</blockquote>
<p>I looked up this <a target="_blank" href="http://wiki.roblox.com/index.php?title=Random_numbers">wiki article</a>, but it really does not go all that in depth to what ... | 17929 | 2 | 21406 | 4 | 386992 | BlueTaslem | 18071 | 2015-05-28 02:26:44 | <p>True randomness is not possible from a computational perspective<sup id="fnref:1"><a href="#fn:1" class="footnote-ref">1</a></sup> -- you can do things that make numbers <em>look</em> random, but the next on is always based on the previous ones<sup id="fnref:2"><a href="#fn:2" class="footnote-ref">2</a></sup>. Such ... |
0 | Changing ROBLOX Default character Animations? | 27572935 | Slazerick | 55 | 2015-08-16 04:07:52 | <p>Hey guys, so I've been trying to change ROBLOX default animations and I tried a few methods that didn't work, including the one suggested in the Wiki.</p>
<p>1st: I tried changing the IDs located inside the animate script. "Char.Animate.walk.WalkAnim.AnimationId ="</p>
<p>2nd: I tried doing the first method but usin... | 21463 | ||||||||
0 | How to make blank startercharacter have player face, skin tone, clothing, hats, etc? | 140399066 | Uniplier | 33 | 2022-10-30 22:04:11 | <p>I am using a blank startercharacter in my game to put parts and values into the player's character when they spawn, I got it by testing in studio and copying my roblox character, removing clothes and hats. But the problem is, when you go into the game, your character is not wearing the hats you have on your characte... | 132091 | 1 | 119304 | 1 | 2021733653 | CDXKIE | 82 | 2022-10-30 23:29:58 | <p>I'm not really understanding why you had to delete your hats and clothes and stuff in the first place, but the easiest method of doing this is instead to add all the values to the players character when they spawn in and delete the starter character.</p>
<p>Since you have a lot of values, I'd make a table for all of... |
0 | What script do I use to create a skybox for the planet? | 1683254402 | gta_12344567890 | 7 | 2020-06-08 19:05:03 | <p>With what script does to create a skybox for the planet,
I made a space game I wanted to make it realistic by putting this,
example: When entering the planet to change background skybox.</p>
| 105767 | 2 | 97421 | 0 | 125299045 | zboi082007 | 216 | 2020-06-08 19:12:49 | <p>From what I understand in your post, you could do the following;</p>
<ol>
<li>Create a dictionary of all the skyboxes</li>
</ol>
<pre class='brush: lua'>local Skyboxes = {
Earth = {
SkyboxBk = -- Id here
-- Insert other Earth skybox IDs
}
}
</pre>
<ol>
<li>When the player chooses a planet, gr... |
0 | How do I make a random number generator but chances are high it gives a low number? | 990574115 | masilasi2008 | 2 | 2022-10-30 12:51:50 | <p>I'm really stuck on this for my game. I have no idea where to even start. if anyone knows a way please comment. Thanks</p>
| 132084 | ||||||||
1 | How do I teleport queue to a reserved server? | 39229135 | mrorangethegamer | 81 | 2019-06-24 23:41:56 | <p>I have a game and a queue script. I want the script to teleport players into one of the games that is part of the start place, but I want everyone who's in the same queue to go to the same server. I have the basic teleport code but I'm not sure how to reserve a server for a separate game. I have seen it in games lik... | 82447 | ||||||||
1 | how do i add a leaderboards tab to my place? | 50605193 | johnnygadget | 50 | 2015-02-11 10:19:25 | <p>i can't find the info in the wiki or by googling it. maybe i've just been awake too long but i would like to add a leaderboard tab on my place page. will someone tell me how to do it, or point me in the right direction, please?</p>
| 14902 | 1 | 17968 | 0 | 120210266 | 0xDEADC0DE | 310 | 2015-02-11 11:39:38 | <p>http://wiki.roblox.com/index.php?title=PointsService</p>
|
0 | Can someone just make a script that is the same as this but works? | 55549078 | dakanji123 | 97 | 2019-10-16 06:26:20 | <pre class='brush: lua'><br /></pre>
| 88840 | ||||||||
1 | How would I go about making a semi-solid platform? | 137068483 | LiquidGaming | 33 | 2020-03-19 15:47:16 | <p>A semi-solid platform is a platform that you can jump up through but you can't clip through it when you're on top of it. I have no clue how I would even start this, so any help would be majorly appreciated.</p>
| 96442 | 2 | 89082 | 1 | 281339187 | compUcomp | 417 | 2020-03-19 16:11:57 | <p>I haven't tested this idea, but I think you might be able to pull it off. Each of these semi-solids should have CanCollide set to false. Tag all of your semi-solids with CollectionService and on the <em>client</em>, loop through them and listen for Touched events. Inside the client touched event, check for collision... |
1 | How to call a random function within a table with parameters? [Solved] | 178739247 | CocoDysphoria | 57 | 2022-11-14 00:15:54 | <p>I don't really know how to explain this well, but I'm trying to call a function with a table, but the function has parameters.
Heres what I've got (ignore the names)</p>
<pre class='brush: lua'>commands[table.find(commandNames,command)](params)
</pre>
<p>commands[table.find(commandNames,command)] gets the function i... | 132274 | ||||||||
0 | Do you think this teleport script is going to work or is it valid? | 140613246 | FinalKingX | 0 | 2017-10-27 23:17:47 | <p>Hi I was making a racing game on ROBLOX. Is the following teleport script valid or at least work? I was not too sure if it was going to work? It needs to be R6 and R15 capable.</p>
<p>Script:</p>
<pre class='brush: lua'>function teleportPlayers(target)
for _, player in pairs(game.Players:GetChildren())do
... | 48942 | ||||||||
1 | what is key? | 22745426 | Teeter11 | 281 | 2014-04-13 00:27:18 | <p>what is key? i need some help</p>
<pre class='brush: lua'>SetAsync(key, value)
</pre>
<p>http://wiki.roblox.com/index.php?title=Data_store</p>
| 1263 | 1 | 1715 | 2 | 55088775 | NotsoPenguin | 705 | 2014-04-13 00:29:27 | <p>Key is the name that you want to save the value too. It's a string value. You will also use this "key" when fetching the value.</p>
|
0 | How do I make the script change a MaxActivationDistance? | 35954778 | ChromeNine | 50 | 2014-12-09 10:56:34 | <pre class='brush: lua'>Close = script.Parent
Open = script.Parent.Parent.OpenButton
function onClicked()
Open.Transparency = 1
Open.CanCollide = false
Open.ClickDetetctor.MaxActivationDistance = 0
Close.Transparency = 0
Close.CanCollide = true
Close.ClickDetector.MaxActivationDistance = 12
end
... | 13129 | ||||||||
1 | How can you make an NPC walk? | 29313560 | JonathanZarb | 0 | 2014-04-15 06:20:00 | <p>So, I need an NPC to walk to certain points, but I want it to walk like a ROBLOXian.
For the position can I do block.position</p>
<p>Thanks.</p>
| 1542 | ||||||||
0 | Roblox Character sounds changes? How do I change the walking etc. | 218845394 | ExtremeEric101 | 0 | 2020-01-01 18:11:37 | <p>Hi, I’ve been trying to make a game for a while. I want to change the walking sound. Many posts I see are outdated, or I just can’t find what they are looking for. Can someone explain to me how to change, edit, and remove the sounds a player emits or makes. Thank you.</p>
| 92345 | ||||||||
1 | Moonscript and Table Serilization? | 25169927 | algo160 | 10 | 2015-02-03 23:34:14 | <p>I need to turn a Moonscript Class (so, in this case a Table) into a StringValue</p>
<p>Obviously, I will use JSON for Serilization (I don't need MetaTables, just the Value inside of them)</p>
<p>What Would my best approach to this be?</p>
<p>(I'm looking for a solution that would allow me to load any class from JSON... | 14726 | ||||||||
0 | Teleporter that requires a stat to go through wont work? | 1511098728 | trimsofpower1234 | 2 | 2023-03-16 19:01:06 | <p>I've been trying to find the problem for this script for a while now and I cant seem to fix it.
The script requires a certain amount of stats to go through and get teleported to the area but it just wont work.</p>
<p>Here it is:</p>
<pre class='brush: lua'>script.Parent.Touched:Connect(function(hit)
local human ... | 133202 | ||||||||
0 | How do i make a character morph that replaces the whole character? | 144804234 | Chris75764 | 49 | 2018-05-11 19:27:25 | <p>I Have been asking this question ALOT, Cause nothing gets to explain me how to do this.</p>
<p>Basically, we all know morphs, Pads transform you into another character, right?</p>
<p>Us know, there are 3 types of morphs.</p>
<p>The paper morph, which turns you into a paper character, These morphs clone a Decal to th... | 58284 | 2 | 56871 | 0 | 47065982 | Meltdown81 | 304 | 2018-05-12 06:47:31 | <p>Haven't tested it, but it should work.</p>
<pre class='brush: lua'>local morph = game.ReplicatedStorage.Morph0 --Replace with path to desired Morph
local pad = script.Parent
pad.Touched:connect(function(hit)
local par = hit.Parent
if par.ClassName == "Model" then
local hum = par:FindFirstChild("Human... |
1 | How can I find a player in the real server? | 37652173 | DeveloperSolo | 355 | 2015-08-13 20:09:19 | <p>(sorry if the title is misleading, I couldn't convert it to a question. The original name was "FindFirstChild question")</p>
<p>So I am making a script where I want a person to touch a brick and it falls down on them (already made) and when the brick touches the ground, it will kill the person.</p>
<p>The output sho... | 21370 | 1 | 24976 | 0 | 4376147 | NotSoNorm | 772 | 2015-08-13 20:14:35 | <p>Alright, So what you're trying to do is go directly to the 'Player' from workspace, because you put it as game.Workspace.<em>Player</em> it only goes to a person named player, but since you're not named player, it breaks.</p>
<p>So what you could do is get the hit of the player and then find their humanoid</p>
<p>*N... |
0 | (Reupload) Table keeps returning nil? | 929847335 | TheDude646 | 72 | 2021-08-12 21:18:18 | <p>i am trying to use a table to store loadout data, and i have 1 server-side script and multiple local scripts that access it.</p>
<p>the server-side script has the actual table stored, and sends, recieves and saves data from the local scripts through remote functions. on the server side script, there are a few events... | 126410 | ||||||||
3 | 2D collision detection? | 119908863 | di5z | 11 | 2020-09-13 06:12:34 | <p>I've tried the popular method of detecting whether or not a frame is within the size of a frame which works perfectly for frames with no rotation, but it completely breaks once you rotate the frame. How could I make collision detection work with angled walls?</p>
<p><a target="_blank" href="https://www.youtube.com/w... | 113107 | ||||||||
0 | What's the third value that FindPartOnRay returns? | 79451355 | SurVur | 86 | 2015-03-15 23:51:12 | <p>It says on the wiki the "surface normal". Can someone further explain?</p>
| 15803 | ||||||||
0 | Teleporter that requires a stat to go through wont work?. Please help. | 1511098728 | trimsofpower1234 | 2 | 2023-03-16 19:01:06 | <p>I've been trying to find the problem for this script for a while now and I cant seem to fix it.
The script requires a certain amount of stats to go through and get teleported to the area but it just wont work.</p>
<p>Here it is:</p>
<pre class='brush: lua'>script.Parent.Touched:Connect(function(hit)
local human ... | 133202 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.