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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | Orb decides to not sell itself and instead just float around? | 1998193337 | MrBucketOfficial | 19 | 2022-09-10 03:52:44 | <p>So what I'm trying to do is have a part called "Seller" make the orbs sell when they touch them, but instead the orb just sits around and does nothing when touching the seller. How would I fix this script?</p>
<pre class='brush: lua'>local player = game.Players.LocalPlayer
local cash = player:WaitForChild("leadersta... | 131568 | ||||||||
0 | How come when I change the camera's subject, it does not work? | 824069483 | epoke466 | 100 | 2022-06-17 19:57:47 | <p><strong>Sooo... I am making a <em>LocalScript</em> in <em>StarterGui</em> with the following code:</strong></p>
<pre class='brush: lua'>local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character
local... | 130383 | ||||||||
1 | The error is 'attempt to perform arithmetic (add) on string'? | 159636940 | RareBIue | 128 | 2020-07-27 00:04:17 | <pre class='brush: lua'>local text = script.Parent.Parent.ComputerScreen.SurfaceGui.TextLabel
script.Parent.ClickDetector.MouseClick:Connect(function()
text.Text = text.Text + "H"
end)
</pre>
<p>this is my script. I dont know whats wrong.</p>
| 110037 | 1 | 101135 | 2 | 566296650 | raid6n | 2121 | 2020-07-27 00:06:51 | <p>You cannot add a string and string, only number and a number, instead use this:</p>
<pre class='brush: lua'>text.Text = text.Text.."H"
</pre>
<p>How it works: Ever time to click, it will change the text to the text, but with an added letter.</p>
<p>Example: The text is "H", after clicking, it will become, "HH"</p>
<... |
0 | Animation will not play? | 303357794 | ColdFoxy07 | 24 | 2021-04-17 13:18:53 | <p>I am currently working on a game. In this game you can vault, and i need an animation to play when you do so. Sadly, i wasn't able to make the animation play.</p>
<p>Script in the object to vault over (server):</p>
<pre class='brush: lua'>script.Parent.Touch.Touched:Connect(function(hit)
local humanoid = hit.Par... | 122485 | 2 | 111600 | 0 | 1374970424 | TwoTramp | 17 | 2021-04-17 13:58:40 | <p>you forgot the play at the end</p>
<pre class='brush: lua'>script.Parent.VaultEvent.OnClientEvent:Connect(function(player)
script.Parent:FindFirstChild("Humanoid"):LoadAnimation(script.Parent.VaultAnimation):Play()
print("Animation has been played")
end)
</pre>
|
0 | Why does the server script can't detect the helmet model in the character but the Local Script can? | 5474129 | anthonypjo | 5 | 2019-01-16 04:37:13 | <p>So basically I am adding a function light on my helmet. To do so when pressed L key it fire an event which enable the light on the server (in theory)</p>
<pre class='brush: lua'>local meep = game:GetService("ContextActionService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local player = game.Pla... | 74547 | ||||||||
0 | For some reason, my weapon keeps deflecting the attack, meaning It will attack you only (?) | 1961959172 | imnotaguest1121 | 313 | 2022-11-19 19:32:24 | <p>Hello! I have a Issue</p>
<p>So this script you see below Is for a fishing rod, basically, I've modify the script so that It won't attack people from your team, for some reason however, If you attack a player from the opposite team, the attack will deflect and damage you Instead, for example, Player1 Is In red team ... | 132318 | 1 | 119512 | 1 | 559514967 | T3_MasterGamer | 1002 | 2022-11-20 06:33:37 | <p>I just started looking at your script and I already noticed a problem. <strong>In line 17, you chose your (player 2) humanoid instead of player 1's.</strong> Copy this whole code, paste into your script and it should work.</p>
<pre class='brush: lua'>local Tool = script.Parent
local Animation = Tool.Animation
local ... |
0 | does anyone know how to fix this error? attempt to index nil with 'Character'? | 1775753594 | Not_prototype | 26 | 2021-10-13 14:39:11 | <pre class='brush: lua'>local options = game.StarterGui.ScreenGui.Options
local Chr = script.Parent.StarterCharacter
local Buttons = {
options.Kagune,
options.Magic,
}
script.Parent.MouseButton1Click:Connect(function(player)
Chr.Parent = game.StarterPlayer
local character = player.Character
options.... | 127852 | ||||||||
0 | This is not Scripting help request, but I need help about sponsoring my game? | 124655577 | Sabailuridze | 111 | 2022-08-02 16:11:25 | <p>I basically have 1700+ budget, how should I go with sponsoring? 850 850 on two days at weekends or 300 on 5 days?</p>
<p>I do not know which is best and any suggestion will be appreciated</p>
| 131065 | ||||||||
1 | How Do I Enable A Selection Box When A Player Is Looking At A Part? | 416191370 | overwatcher54 | 11 | 2020-09-15 19:17:29 | <p>At the moment I am trying to make a game that will have a building mechanic that resembles Minecraft. I am trying to make it outline a part when the player hovers there mouse over it but I cannot seem to figure out how. Here is my current code.</p>
<pre class='brush: lua'>local Player = game:GetService("Players").Lo... | 113202 | 1 | 103945 | 0 | 158811 | TGazza | 205 | 2020-09-16 11:06:44 | <p>Might not work online but heres a working example for you to work apon.</p>
<p>You may need to control the selectionbox through a server script and hook it up with remote functions for other people/players to see the selection box!.</p>
<p>Code (Local Script):</p>
<pre class='brush: lua'>local Player = game:GetServi... |
0 | Adonis custom commands lead to error(attempted to index nil with finddfirstchild ) how to fix? | 628558918 | Nechga3 | 0 | 2022-08-06 15:54:34 | <p>The command runs is able to be called in game but leads to the nil error.</p>
<pre class='brush: lua'><br /></pre>
<pre class="brush: lua">server.Commands.SetAge = {
Prefix = server.Settings.Prefix;
Commands = {"setage","SetAge"};
Args = {"player","value"};
Description = "Set player Rank Value (1-100... | 131121 | ||||||||
0 | How to detroy an instance? | 421151103 | 4KChanxxe | 4 | 2021-04-07 12:13:21 | <p>Ive tried to create a lag test game for roblox but im struggling to destroy once its been created, ive tried everything but it still wont work</p>
<p>Heres the code:</p>
<pre class='brush: lua'>local function SpawnParts()
wait()
local LagPart1 = Instance.new("Part")
LagPart1.BrickColor = BrickColor.new("... | 122107 | 2 | 111246 | 0 | 56177123 | nikoviking | 231 | 2021-04-07 13:31:41 | <p>To destroy all lag parts which you've created (assuming they're all called "LagParts"), try the following:</p>
<pre class='brush: lua'>Reset.MouseButton1Up:Connect(function()
for i, v in pairs(game.Workspace:GetDescendants()) do
if v:IsA("BasePart") and v.Name == "LagParts" then
v:Destroy()
e... |
0 | How do I weld something to a specific place on the player? | 1729046406 | baconbroforpresident | 7 | 2021-07-21 13:57:08 | <p>I have here my weld script but It doesn't weld the part to the specific place I want it to.
What could I add to my code to make this work?</p>
<pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(Player) -- Player
Player.CharacterAdded:Connect(function(Char() -- Character
local Head = Char.H... | 125567 | ||||||||
1 | How do I animate custom models? | 28197816 | neoG457 | 315 | 2015-07-25 18:42:26 | <p>I know how to animate Players and NPC but I cant animate custom models. I've read the wiki article multiple times however it is no help to me because it doesn't have much detail. I'm trying to animate a tail made of 5 segments. Please help me.</p>
| 20388 | ||||||||
0 | How can I fix the hand always moving In the same direction and not moving where player Is facing? | 1961959172 | imnotaguest1121 | 186 | 2022-08-03 23:57:22 | <p>(Please respond)</p>
<p>Hello developers!</p>
<p>I made a tool Inside of a NPC that summons a hand that currently only moves, the problem Is that I am trying to get the hand to move where the player Is facing, just Its moving In the same direction, also, the reason why I rotated the part Is because If I didn't add <... | 131091 | ||||||||
0 | Attempt to call a nil value even though value exists? | 1537591455 | iggyjelly1 | 26 | 2022-11-20 09:28:07 | <p>I am replacing the default <code>Animate</code> script with a new one. I have new animations as well. The problem is that when I try to Load the animations, the <code>LocalScript</code> says <code>attempt to call a nil value</code>. <a target="_blank" href="https://ibb.co/gw20n0H">This</a> roughly what it looks like... | 132323 | 1 | 119513 | 0 | 73170429 | imKirda | 4491 | 2022-11-20 09:40:40 | <pre class="brush: lua">-- Function to load animation
function LoadAnimation(animation)
return Animator:LoadAnimation(animation)
end
-- Loaded Animations
local Idle = LoadAnimation(script.IdleAnim)
local Running = LoadAnimation(script.RunningAnim)
</pre>
<p>As you probably know, scripts run from top to bottom, that... |
0 | Ban system but it don't save, help ? | 249369044 | xJathur95x | 129 | 2018-04-19 11:39:35 | <p>(sorry if i had a bad english)</p>
<p>So i tried to make a "userdata" the money work fine but the ban no</p>
<p>Script :</p>
<pre class='brush: lua'>local V = script.Parent.Value
local Save = true
if V == true then
local DS = game:GetService("DataStoreService")
local Data = DS:GetDataStore("UserData")
ga... | 57074 | 1 | 55779 | 0 | 83240285 | sad_eyez | 162 | 2018-04-19 11:50:15 | <p>You could have a dictionary of preset banned players, and also save a table when you ban a player, I will post an examples of how I do my DataStore.</p>
<p>I use a MainModule as sort of an API so I don't have to worry about editing it to much, and I can use this same system in all my games, but this is how you would... |
0 | I am trying to make a virus but i get, attempt to index nil with 'FindFirstChild' how to fix? | 501132467 | joshsharpe07 | 2 | 2020-09-14 10:54:14 | <p>I am trying to make a code that infects players whenever they have the virus, but whenever i try to spread it , the outputs says: attempt to index nil with 'FindFirstChild'</p>
<pre class='brush: lua'>local players = game:GetService("Players")
local player = game.Players.LocalPlayer.Character
player:WaitForChild("Hu... | 113155 | 2 | 103887 | 1 | 118343046 | Elyzzia | 1023 | 2020-09-14 16:58:29 | <p>there are. more than a few things wrong with this</p>
<p>the specific error is caused by you trying to call GetPlayerFromCharacter on the LocalPlayer</p>
<p>also, this should be a server script in StarterCharacterScripts, since changes made on the client don't replicate to the server, meaning that the other player n... |
0 | Boolvalue saving datastore loads all boolvalues as true no matter what? | 178628425 | Jac_00b | 6 | 2020-09-16 00:27:08 | <p>I'm trying to make a boolvalue saving datastore to save cars. Each car has it's own boolvalue (once you buy a car it's boolvalue is set to true), and when it goes to save the values it only saves the name of the boolvalue that is true. So when it loads in the datastore, it checks for that name and since it's already... | 113209 | ||||||||
0 | Does anyone know how to make a part follow your mouse cursor? And where to put it in the script? | 6430587 | CosmicHaze | 0 | 2015-10-16 21:24:42 | <p>Does anyone know how to make a part follow your mouse cursor? And where to put it in the script?</p>
| 23588 | ||||||||
0 | Can someone explain me why this code is not working? Because I am desperate. | 61581618 | Roox4 | 6 | 2018-04-17 13:45:03 | <p>Hi guys. I would be really happy if you can explain me why this is not working.</p>
<p>this is the code:</p>
<pre class='brush: lua'><br />local door = script.Parent
local vips = {"DNF2307","Roox4"} -- those are the arrays
local check = false
function checkVip(hit)
local humanoid = hit.Parent:FindFirstChild("Hum... | 56991 | ||||||||
0 | pcall in RenderStepped causes memory leak/increase? | 331809274 | TechModel | 118 | 2022-06-24 04:21:24 | <p>Sounds dumb of me but after running this loop, the memory does increase gives me concerns. I'm trying to ensure this code does not output errors or to retry the code every render. Should I pcall without local s, e or not at all?</p>
<pre class='brush: lua'>RService.RenderStepped:Connect(function()
local s, e = p... | 130492 | ||||||||
0 | Best way of creating a custom mobile thumbstick? | 1129195252 | Wingboy0 | 57 | 2019-07-08 20:05:47 | <p>i've got a topdown shooter i'm working on, trying to make it mobile friendly.</p>
<p>for gameplay reasons i want to create 2 custom fixed position thumbsticks, one on the left side of the screen and the other on the right side of the screen, i did read the developer pages and searched wide on the internet but i can ... | 83253 | ||||||||
2 | Offset by rotation? | 10842080 | Vulcain | 10 | 2014-03-19 01:53:10 | <p>I'm terrible with math, so please help me with this.</p>
<p>Say I have a part, I want to clone it and place the clone on top of the part, but at an angle (x axis).</p>
<p>( So, I'm basically creating an arc of on top of a part. )</p>
<pre class='brush: lua'>local rotation = 15;
local part = workspace.Part:clone();
l... | 784 | ||||||||
0 | GetPropertyChangedSignal doesn't work for some reason? | 1722430189 | jeremqpmfpi | 9 | 2021-04-04 23:18:14 | <p>so i tested this script with the printed thing
and i didn't see printed in the output</p>
<p>so does anyone know how to fix this script</p>
<pre class='brush: lua'>local color1 = script.Parent.Parent.color1.Value
script.Parent.BrickColor = BrickColor.new(color1)
local function onColorChange()
print("printed")
... | 122019 | ||||||||
1 | Attempt to index nil with name and parent? | 1251627904 | CodeWon | 121 | 2021-04-16 15:06:50 | <p>The script I supposed to chose a random map and spawn it in. But I got a few errors.</p>
<p>"Attempt to index nil with 'Name' "</p>
<p>Then I changed it a little and got</p>
<p>Attempt to index nil with 'Parent' "</p>
<p>Script:</p>
<pre class='brush: lua'>local ServerStorage = game:GetService("ServerStorage")
local... | 122444 | 1 | 111561 | 1 | 1792778813 | Xapelize | 1459 | 2021-04-16 15:21:46 | <p>It is because randomMap value is a random number between 1 to how much children inside maps, BUT number does not have a name, or a parent. It's a string, not an instance. So what are you gonna do is replace line 11 to:</p>
<pre class='brush: lua'>local randomMap = Maps[math.Random(1,#Maps)]
</pre>
|
0 | Laser Gun Beam Not Shooting In Correct Direction? | 1024248310 | MarcTheRubixQb | 153 | 2023-03-09 03:13:50 | <p>This is a repost because my last post got 80 views but no one is commenting or answering so I want to get people to notice because it is a real problem I can't fix.</p>
<p>Hello developers. I am currently making a laser gun with a long laser beam that shoots out when you click. However, the laser beam doesn't go str... | 133164 | ||||||||
0 | Instance.new isn't working properly? | 101879484 | XxSHjokerxX | 18 | 2017-01-18 19:27:39 | <pre class='brush: lua'>game.Players.PlayerAdded:connect(function(plr)
local ko = Instance.new("StringValue", game.Workspace.Players)
ko.Name = plr.Name
ko.Value = plr.Name
end)
</pre>
<p>I would expect you to know what this does but just in case you don't it makes a new string value when a player joins and... | 39153 | ||||||||
1 | My script is not calling a function when finding an not empty string value? | 1400234436 | KoalaKo_XD | 27 | 2023-02-15 14:25:09 | <p>Hello!</p>
<p>I have a problem. I have a script that checks if a string value is NOT emtpy, and if it is not empty, then it will call a function. But for some strange reason, when the string value has some text inside it, it wont call the function!</p>
<p>Here is my code:</p>
<pre class="brush: lua">while wait(0.1) ... | 133075 | ||||||||
0 | how do i make this weapon only damage npcs and not players? | 105098872 | dylancrazy88 | 10 | 2021-05-04 05:13:36 | <p>local Services = {
Players = (game:FindService("Players") or game:GetService("Players")),
TweenService = (game:FindService("TweenService") or game:GetService("TweenService")),
RunService = (game:FindService("RunService") or game:GetService("RunService")),
Debris = (game:FindService("Debris") or game:GetService("Debr... | 123077 | 2 | 112161 | 0 | 532084574 | AnasBahauddin1978 | 603 | 2021-05-04 05:47:22 | <p>In the line where you are damaging the humanoid and changing the walkspeed, you could add a line like this to check if the hit is a player or not by using <a target="_blank" href="https://developer.roblox.com/en-us/api-reference/function/Players/GetPlayerFromCharacter">GetPlayerFromCharacter</a>, which returns nil i... |
1 | NPC Shirt Is Not What I Picked? | 538824226 | Brioche_Noodle | 28 | 2021-06-10 20:33:45 | <p>So Basically I Made A Walking NPC Script And I Wanted To Add Random Shirts From My Table, I Went Online To See Some Answers and saw:</p>
<p><strong>Functions and variables</strong></p>
<pre class='brush: lua'><br />shirts = {6922626706, 6706140296}
local randomshirt = math.random(1,#shirts)
local clothing = npc.Shir... | 124256 | ||||||||
1 | How to move camera infront of player in first person? | 49773669 | cowsoncows | 926 | 2018-01-26 22:04:13 | <p>I am trying to make a first person camera system where a player can see themselves(As in, their body isn't transparent. They can see their torso, legs, arms, if they look down). I've managed to get that part done using <code>LocalTransparencyModifier</code> and the <code>RenderStepped</code> event, although the came... | 52715 | ||||||||
0 | I removed a card from the script, yet the door is still able to be opened. Help? | 87219894 | paintball000006 | 0 | 2023-04-01 00:21:13 | <p>I made multiple cards and multiple doors for different levels, but when I remove "L1" from the script, it's still able to be used, but the light still turns red.</p>
<pre class='brush: lua'>if plr.Character:FindFirstChild("L1") or plr.Character:FindFirstChild("L2") or plr.Character:FindFirstChild("L3") then
</pre>
<... | 133255 | ||||||||
0 | How to use CharacterAdded? | 96574575 | MArzalAlBuchariZ | 33 | 2018-12-20 04:27:16 | <p>I'm making a death screen GUI that would appear when the player dies, but it only works 1 time. People said that using loops is bad because the function will not stay to the player after the player have died once. So I'm using CharacterAdded. Why is my script not working?</p>
<pre class="brush: lua">game.Players.Loc... | 72605 | ||||||||
3 | How can i kick a player when they die? | 403575929 | chucktam | 15 | 2020-02-16 10:47:18 | <p>i am trying to kick a player out of the server when he/she 's HP = 0 ,so they can't respawn anymore...</p>
| 94652 | 2 | 87417 | 3 | 261477936 | EnzoTDZ_YT | 275 | 2020-02-16 13:50:54 | <p>Upon the players death this will kick them</p>
<pre class='brush: lua'>--// Author: EnzoTDZ_YT
--// File: PlayerDiedKick.lua
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
Character.Humanoid.Died:Connect(function(Death)
Player:Kick("You D... |
1 | is there a way to get the children of the workspace that has the same name? | 176594891 | CrazyCats84 | 58 | 2020-08-04 17:25:01 | <p>..Trying to make a cleanup script becuase explosions can sometimes wont get deleted..basically im making a magic game, and the projectiles explosions are all called booom and booom2. is there a way to get all of the booms and boom2s to get selected and get deleted at the same time.</p>
<h2>here is what i have, its p... | 110702 | 2 | 101667 | 1 | 1775867071 | FunctionalMetatable | 490 | 2020-08-04 18:25:53 | <p>Try this, and use the code blocks next time. look at the comments embedded.</p>
<pre class='brush: lua'>local function GetChildrenFromName(parent, name)
local t = {}
for _, obj in next, parent:GetChildren() do -- loop through parents children
if obj.Name == name then -- check if the object's name... |
0 | Attempt nil to index with leaderstats error? | 1527823663 | kickoff127 | 103 | 2023-03-30 18:08:52 | <p>Why wont this script work? Most of it does but it does not change the height leaderstat to + 1 like it should.</p>
<pre class='brush: lua'>local debounce = false
script.Parent.Touched:Connect(function(hit)
local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
if hum and game:GetService("Players"):GetPlaye... | 133253 | 1 | 120292 | 1 | 2044258372 | MaleficentMaestro | 109 | 2023-03-30 18:52:26 | <p>You can't use LocalPlayer in a ServerScript. Also, try to avoid nesting, whenever you can.</p>
<p>This should work:</p>
<pre class='brush: lua'>local debounce = false
script.Parent.Touched:Connect(function(hit)
local hum = hit.Parent:FindFirstChild("Humanoid")
local plr = game.Players:GetPlayerFromCharacter(... |
0 | Wins is not a valid member of Folder? | 1316144154 | Altbotnot | 9 | 2022-09-16 19:21:47 | <p>I have a leaderboard script, and I have a leaderboard for Cash, but when I play the game, it does not show Wins and Cash it just shows Cash.</p>
<p>Script:</p>
<pre class="brush: lua">for _, player in pairs(game.Players:GetPlayers()) do
local stat = player.leaderstats.Wins --When the error appears
WinsLB:Set... | 131644 | ||||||||
0 | Will this work properly? | 36491121 | fahmisack123 | 378 | 2014-07-10 16:35:19 | <p>What this code should do, is award every player in the server 1 PP every 10 minutes:</p>
<pre class='brush: lua'>local PPS = game:GetService("PointsService")
while PPS:GetAwardablePoints() >= game.Players.NumPlayers do
for i,v in pairs (game.Players:GetChildren()) do
PPS:AwardPoints(1,v.userId)
en... | 7897 | ||||||||
0 | How can I align parts to a certain stud grid? | 5414629 | VetexGames | 10 | 2014-10-30 20:19:03 | <p>Alright so I'm trying to make a gui button that when clicked, it inserts a model that is moved to the mouse until the player clicks to place it. Everything works so far, but I'm trying to get it to align to a stud grid of 25 studs so that everything is even. The script:</p>
<pre class="brush: lua">InsertId = 1847117... | 12077 | ||||||||
0 | Monster That teleports behind you? | 603041710 | ValrusXD | 0 | 2022-09-10 15:10:42 | <p>I want to make something like(for example) the monster at a certain distance teleports behind the nearest player, and with a certain time interval (for example 30 seconds) can do it again. but to be honest, I can't figure out how to do it</p>
| 131572 | ||||||||
1 | Is there a script to make a player rejoin upon death? | 1445539196 | nohidas | 7 | 2020-11-09 07:33:53 | <p>I wrote this code today but have recently decided I would the player to rejoin the place instead of be kicked.</p>
<p>I do not know how to do this.</p>
<p>Code I wrote for kick on death:</p>
<pre class='brush: lua'>Message = "Table boss has wrecked you."
game.Players.PlayerAdded:connect(function(plyr)
repeat wai... | 115543 | 1 | 106130 | 1 | 381646902 | Feelings_La | 399 | 2020-11-09 09:01:59 | <p>I'm assuming you are trying to rejoin to a place then you can just use game:GetService("TeleportService")</p>
<pre class='brush: lua'>local TeleportService = game:GetService("TeleportService")
local placeId = -- your place id here
game.Players.PlayerAdded:Connect(function(plyr)
repeat wait() until plyr.Character... |
0 | How to set leaderstat value constantly as a client's gravity? | 894090213 | BIGM_7 | 4 | 2022-10-31 12:07:07 | <p>Hello Viewers, I'm trying to create a game where after a second gravity goes down by 1, with this I also created values to try and show each player's gravity, however upon testing my script and spending hours trying to fix it, nothing worked, sorry if I don't provide enough information but any help is appreciated.</... | 132098 | ||||||||
0 | How to loop sound? | 17101321 | Nidoxs | 190 | 2014-06-01 12:13:59 | <p>I tried this.</p>
<pre class='brush: lua'>while true do
script.Parent.Sound:play() loop
end
[[-- Sound is in script and sound is set on loop?
</pre>
| 5983 | 2 | 7950 | 0 | 18039437 | FieryEvent | 185 | 2014-06-01 12:22:12 | <p>First of all your shouldn't use while true do end without a wait() like this</p>
<pre class='brush: lua'>while true do wait(1)
-- script
end
</pre>
<p>And second your sound will never play because you're trying to make it play() forever, but first of play() function the sound loads, resuming, the sound will load fo... |
0 | How Do I Remove Roblox's Set Xbox Controller Controls? | 492019710 | AROBLOXUSER12344 | 19 | 2022-11-22 02:17:59 | <p>Hello. I was wondering about how to code custom Xbox controller controls. I already got some of the basics down, but when it comes to trying to re-code some of roblox's set controls I run into some trouble. For example: Roblox automatically sets reloading guns and tools to B on the controller. Let's say I wanted X t... | 132336 | 1 | 119526 | 0 | 123585026 | NykoVania | 198 | 2022-11-22 07:09:14 | <p>Use ContextActionService.</p>
<p><strong>Example:</strong></p>
<pre class='brush: lua'>local UserInputService = game:GetService("UserInputService")
local ContextActionService = game:GetService("ContextActionService")
ContextActionService:UnbindAction("action here")
</pre>
|
0 | Can I disable anti aliasing for low resolution images? | 159524769 | Celt_ican | 74 | 2018-01-05 01:21:37 | <p>I want to make pixilated textures. That means low-resolution images where you can see every individual pixel crystal clear. Let's say I have a 16x16 texture, that's way too small to see on Roblox, so I'll scale it up to 64x64 (but the base image remains 16x16). As far as I can tell, Roblox applies anti aliasing when... | 51603 | 1 | 51279 | 0 | 841509 | WillieTehWierdo200 | 897 | 2018-01-05 08:01:53 | <p>There's no way to disable aliasing on images in Studio, but you can take some measures to retain the sharpness of your images "pixels".</p>
<ol>
<li>Start with a high-resolution image and scale down, instead of the opposite.</li>
<li>Save images as .png instead of .jpg. The latter format inherently uses lossy compre... |
0 | How do I shutdown/reboot all the servers in roblox studio? | 266546443 | Daniel8947 | 2 | 2019-08-29 23:19:04 | <p>How do I shutdown/reboot all the servers in roblox studio?</p>
| 86712 | ||||||||
1 | How do people learn to script Roblox Lua?Where did they start from? | 206639588 | fifayy | 16 | 2020-04-24 18:24:29 | <p>I'm a new scripter and i want to master scripting so i can make my own games, I just don't know where to start?</p>
<p>Are there any good ways of learning how to script?</p>
| 100567 | ||||||||
0 | Trying to use local script on game and still acts as a server script? | 147305218 | PeterParker17386 | 16 | 2023-03-18 18:56:02 | <p>I am making a game and I am trying to make it so when you touch a sprite, it flies in the air and disappears as a tween but I am also trying to make it so the tween only happens with one person but it does not work. I have tried to put the local script in <code>StarterPlayerScripts</code> and <code>StarterCharacterS... | 133211 | ||||||||
0 | How do you change the respawn time? | 125757683 | ninja_eaglegamer | 61 | 2019-01-26 00:08:04 | <p>I want to be able to change the respawn time, but I have no idea where the value for it is or where it is used.</p>
| 75146 | ||||||||
0 | How do I make a dummy have the appearance of the local player? (every player sees their own avatar) | 1061148582 | YoMrPanda | 4 | 2023-01-23 19:04:11 | <p>Hello I just wanted to ask a really quick question, I inserted a dummy into the worksapce and I want the dummy to have the avatar of the local player. I want every local player to see their own avatar and I don't want people seeing other people's avatar. Can you help me?</p>
| 132925 | 1 | 120053 | 1 | 15438711 | pwx | 1581 | 2023-01-23 21:42:47 | <pre class="brush: lua">local Dummy = workspace:WaitForChild('Dummy')
local dummyHumanoid = Dummy:WaitForChild('Humanoid')
local Players = game:GetService('Players')
local Player = Player.LocalPlayer
local avatarDescription = Players:GetHumanoidDescriptionFromUserId(Player.UserId)
dummyHumanoid:ApplyDescription(avatarD... |
0 | How can I make a lightning strike that strikes on my Cursor when pressing E? | 563111237 | qMrSpooky | 18 | 2021-05-02 13:30:31 | <p>Just as the title, any way to make a lightning strike (or a effect that damages a living target) From Point A (A brick from my tool) to Point B (my cursor)
I heard first you gotta get the Cursor's Location</p>
<pre class='brush: lua'>local UserInputService = game:GetService("UserInputService")
local RunService = gam... | 123029 | ||||||||
0 | how do i remove lighting in my game? | 13970097 | namelessassasin | 30 | 2014-04-27 23:26:34 | <p>i would like to remove lighting in my game, do i remove the lighting service from my explorer to do this</p>
| 3756 | ||||||||
2 | Changing brickcolor problem? | 2869366 | Paldi | 109 | 2014-10-14 02:15:07 | <p>I have a script to change the color of some parts in a group but it change all of them, what i did wrong?</p>
<p>there is no errors but it just gets all the parts and i want it to only get the parts called "Color1"</p>
<pre class='brush: lua'> local h = player.Character:findFirstChild("Chest"):getChildren("Color1... | 11682 | ||||||||
0 | How to get mouse without using a tool | 11808841 | blowup999 | 659 | 2014-02-23 11:06:47 | <p>Is it possible to find a mouses position without a tool? I know with a tool you can do mouse.hit.p or mouse.Target</p>
| 249 | ||||||||
0 | I'm currently having an issue with making a reload animation play, could anybody help me fix it? | 1314599390 | NuggetHasJoined | 7 | 2021-02-09 08:58:30 | <p>I'm making a game, and the gun I've made works fine, however, the reload animation is the only thing that doesn't work. Does anybody know how I can fix this?</p>
<p>Here is the script to play the reload animation, there are variables for the reloadTrack and reloadAnim, and in the handle of the gun, there's a sound n... | 119858 | ||||||||
1 | How do you make a button do something? | 20916319 | groovydino | 2 | 2014-06-08 07:16:37 | <p>Like I want to script it.</p>
<p>EX: I pressed the "Play" button, and it deletes the message.</p>
<p>I know everything, but the ending part. (Last line) I want to know it.</p>
| 6339 | ||||||||
0 | How to Enable ProximityPrompt With Script? | 125938997 | yenen330 | 2 | 2021-10-12 11:49:47 | <pre class='brush: lua'>local Trigger = game.Workspace.Exitdoor.ProximityPrompt
Trigger:Enabled(true)
</pre>
<p>I Tried That But It Didnt Worked</p>
| 127845 | ||||||||
0 | How would I convert a google image into roblox parts? | 38437196 | fishguy100 | 135 | 2015-12-27 02:21:41 | <p>it seems like it is hard</p>
| 25655 | ||||||||
0 | VIP Gamepass Point Increase Script Error? | 5801796 | Mathboy9809 | 4 | 2018-04-19 01:07:53 | <p>So this is what I have so far.</p>
<pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
if game.MarketplaceService:PlayerOwnsAsset(player, 1609776713) then
while true do
player.leaderstats.Points.Value = player... | 57059 | ||||||||
0 | how can i make a view model to be visible when i use the tool? | 1897582897 | imaz0mbie | 1 | 2021-06-09 12:22:09 | <p>how i can do it?
me is making viewmodel aslo i dont know lua :C</p>
<p>here is script</p>
<pre class='brush: lua'>local player = game.Players.LocalPlayer
local char = script.Parent
local cam = workspace.Camera
local run = game:GetService("RunService")
local arms = game.ReplicatedFirst.Arms:Clone()
run.RenderStepped:... | 124217 | ||||||||
0 | I made this LVL script Parts of it works But it wont Stop When it Reaches the Max Lvl? | 211223681 | FilthyMonsterPlays | 8 | 2017-08-11 17:16:28 | <p>I want it to stop at lvl 2 but it will just keep on going And when it reaches lvl 2 i want it to say MAX! but it will only go up in lvl's it wont stop and i wont get any erro from it whats the problem PLZ help</p>
<pre class='brush: lua'>lvl = script.Parent.Up.LVL
local LVL = player.leaderstats.LVL
tool = script.Par... | 46593 | ||||||||
0 | How to make a Shop GUI that allows to buy WORKING ITEMS? | 1696235625 | Cubispaghettis | 1 | 2023-01-15 17:24:24 | <p>Hello, I have a scripting question. So I made a frame, which was inside of a screen GUI, inside of Starter GUI. I made textbuttons that when clicked, would check if you have the specific amount of points required, and if you did, it would give you an item/tool. I have followed a tutorial for this on Youtube, and for... | 132847 | ||||||||
15 | is there a function that can return the number of members a group has? | 76326675 | nich17 | 95 | 2015-05-12 19:39:18 | <p>i am simply curious to know if there is a function that can return the number of members that a group has and if so how would i use it??</p>
| 17476 | 1 | 20899 | 10 | 19566737 | Unclear | 1776 | 2015-05-12 23:20:13 | <p>There is probably some public API out there, but since <strong>I have no knowledge of web development</strong> and it seems you do not either, I will show you the way I would do it using only RBX.Lua.</p>
<p>When thinking of where I would find the size of a group on the website, I immediately thought of the group pa... |
1 | How do I make everyone gain money when a enemy dies? | 203253723 | xxXDuckzzXxx | 15 | 2022-11-12 22:11:35 | <p>Hey there
I'm working on a basic zombie defense game and I want to make it to when a zombie dies every player in the game gains money. I already have leaderstats and a currency set up I just don't know how to add x amount of currency to everyone's balance when a zombie dies.</p>
<p>If your curious why everyone and n... | 132257 | ||||||||
0 | bad argument #2 to 'match' (number expected, got string)? | 327713710 | DominusSpxrk | 0 | 2018-11-08 03:26:46 | <p>I need help with this, it keeps saying as an error
http://prntscr.com/lfpm1n</p>
| 70198 | ||||||||
0 | Why are the killing parts in my game acting so strangely? | 76583263 | JGBlocky | 10 | 2020-08-01 08:55:04 | <p>I made a low detailed post on this before, but it wasn't helpful enough so I'm making this one.</p>
<p>Basically I have a game prototype that I'm testing scripts for a game on. It's a round based game, and the objective is to kill every player in an FFA kinda way. Once players are dead they get moved back to the lob... | 110449 | ||||||||
1 | how to turn off respawnTime? | 99378414 | Sonnymacko | 19 | 2021-05-31 05:23:56 | <p>Hello, I've got a script that makes a GUI visible when the player dies, but my problem is that when the player presses the RespawnButton it closes the gui which is good however it opens up right after because of the players Respawn Time. Is there a way to get around this? If I set it to zero it will just reopen the ... | 123928 | ||||||||
0 | How can I make a script that takes a person's clothes/hats and clones it inside a NPC? | 67015061 | ErskinePierre | 48 | 2019-01-02 19:25:20 | <p>Trying to make an NPC that disguises as a random person ingame by cloning their clothes and hats and putting it inside said NPC? Here is what I was thinking of:</p>
<pre class='brush: lua'>m = game.Players:GetChildren()
Player = m[math.random(1,#m)]
Player.Pants:Clone().Parent = game.Workspace.NPC
Player.Shirts:Clon... | 73609 | ||||||||
0 | How do I make a clickable part that places a part above you? | 887509778 | net_h | 13 | 2020-01-13 21:33:43 | <p>So I'm watching a LUA scripting tutorial from alvin blox and I had a question because I don't think this was mentioned.
But I need to make it so if player clicks on PART then a new PART will spawn five studs above them. How is that possible?</p>
| 93006 | ||||||||
0 | How do I prevent tools from disappearing from the player's backpack after death? | 177437519 | Sensei_Developer | 298 | 2020-01-20 17:12:58 | <p>I created a shop that sold guns, and it all worked fine. The thing is, when the player dies, they lose all the guns that they bought, and only the starter gun remains in their inventory.</p>
<p>Here's my <code>LocalScript</code> inside of one of the guns:</p>
<pre class='brush: lua'>game.Players.LocalPlayer.Backpack... | 93307 | ||||||||
0 | How would I assign hotkeys for attacks,tools, etc? | 110258409 | Daiko_King | 1 | 2017-01-17 21:54:30 | <p>I'm asking this question to know what to do to assign hotkeys. For example in most fighting games, if you press Q you'd do a punch or a kick. Could any of you guys tell me a script that will help me with something like that? Many thanks!</p>
| 39128 | 2 | 41416 | 0 | 21735007 | DevKurka | 173 | 2017-01-17 21:59:49 | <p>Here is the script for this</p>
<pre class='brush: lua'>local function onInputBegan(input,gameProcessed)
if input.UserInputType == Enum.UserInputType.Keyboard then
local keyPressed = input.KeyCode
if string.upper(keyPressed) == "Q" then
. -- Function here
. end
... |
1 | How to properly use and understand Raycasting? | 355374505 | EnderGamer358 | 79 | 2018-04-25 17:41:32 | <p>:I'm making a gun script for my game that handles all the gun's functions and such, and I need the gun to cast a ray between the gun and the player's mouse position so the bullet knows where to land. The problem is I need to figure out how to use and understand rays first, where should I look or what should I do fir... | 57395 | 2 | 56087 | 1 | 537472621 | Avigant | 2374 | 2018-04-25 17:52:08 | <p>I greatly suggest re-reading the Wiki, and developing a basic understanding of vectors if you do not understand. If you don't understand something on the Wiki, try asking a very specific question, not just saying it was "no help at all". Here's some helpful links:</p>
<p>https://devforum.roblox.com/t/how-to-think-ab... |
0 | SiteDoors is not a valid member of Workspace "Workspace"? | 1933759051 | DisasterHotelGiant | 0 | 2022-09-11 18:44:12 | <pre class='brush: lua'>--[[
Author: WelpNathan
Date: 31/05/2018
Script: This script will control how the SCP reacts to touching
and other interactions.
--]]
---------------------------
-- V A R I A B L E S --
---------------------------
-- ROBLOX Services
local players = game:GetService('Pl... | 131593 | ||||||||
0 | How can you break a while loop when a part is touched? | 226832508 | MattVSNNL | 187 | 2021-05-02 22:37:53 | <p>I'm making a small basic game and I want to add if a player touches the end they win so in the round system I added a code to detect if the part is touched and if the player that touched it was in the player's table then the while loop breaks, But when I type break, It has a red line under it meaning it doesn't know... | 123045 | ||||||||
0 | Can't figure out how to run a function on the click of a TextButton? | 46292798 | Rep0man | 0 | 2014-12-08 23:05:27 | <p>Ok so when I click the text button I want the model "Ship" in Lighting to clone, and go into Workspace. I can't figure out how to run the function when I click the button!Heres my script!</p>
<pre class='brush: lua'>function onClick()
local ship = game.Lighting.Ship:Clone()
ship.Name = "TheShip"
ship.Par... | 13111 | ||||||||
1 | How do I fix "for and do loop ending with until"? | 1715522570 | BeautifulAuraLover | 371 | 2021-02-09 21:13:26 | <p>``Hello, I am very new to scripting, so thanks very much for help. I tried to make script to collect Crops number from 0 to 115. After it reaches max - 115, whole loop resets and it wait 1 minute and after it starts collecting from number 0 again. I tried everything, but always I get syntax error and I don't know wh... | 119880 | ||||||||
0 | How Can You Make A Leaderstat Saving System? | 551769533 | CodedStars | 69 | 2020-06-09 00:07:15 | <p>I've been trying to study on how this datastore system works, I'm still a bit stuck on this saving script. This is what I got.</p>
<pre class='brush: lua'>local DataStore = game:GetService("DataStoreService")
game.Players.PlayerAdded:connect(function(player)
local leader = Instance.new("Folder",player)
leader.Name... | 105806 | 1 | 97462 | 2 | 680620891 | CosmicIsGod | 139 | 2020-06-09 00:13:55 | <pre class='brush: lua'>local DataStore = game:GetService("DataStoreService")
local ds = DataStore:GetDataStore("MyDataStore")
game.Players.PlayerAdded:connect(function(player)
local leader = Instance.new("Folder",player)
leader.Name = "leaderstats"
local Cash = Instance.new("IntValue",leader)
Cash.Name = "Cash"
lo... |
0 | How could I make a 3rd person camera script similar to POLYGUNS? | 47817846 | rokedev | 71 | 2019-11-10 18:32:42 | <p>A quick note: This is <strong>NOT</strong> shift lock. You can see from the first example in the DevForum post that the character can turn towards the camera and walk towards the camera for the camera to back up, which isn't possible with shift lock.</p>
<p><a target="_blank" href="http://">https://devforum.roblox.c... | 89879 | ||||||||
0 | How do I make a boss health bar? | 824640962 | kekemama645 | 0 | 2022-09-10 15:26:16 | <p>I have made a bossbar UI but I don't know how to code it. The bosses I want are models that have a animate script and a humanoid in them, the bosses have other stuff too.</p>
<p>I want the script to work like this, when a boss from the path (ServerStorage.NPCs) spawns in workspace, a UI appears on the players screen... | 131573 | ||||||||
0 | How does math.random work? | 31057122 | iLegitus | 130 | 2014-08-26 12:36:40 | <p>So math.random is soppost to give you a random number.
But i am trying to actually control that number. ( Control as in give it A Max and Minimum )
How would i so?</p>
| 10246 | 2 | 13053 | 4 | 8139526 | Nifer2 | 174 | 2014-08-26 12:45:57 | <p>You would use it like this...</p>
<pre class='brush: lua'>local number = math.random(min, max) -- Just replace the min and max with numbers of your choice. Example:
number = math.random(1, 10)
print(number)
</pre>
|
0 | How to avoid "Script timeout: exhausted allowed execution time" ? | 728597496 | OX_X4 | 2 | 2020-07-10 19:31:40 | <p>so i have this script which removes a folder with loathes of 2x2x2 cubes and like how to i make it avoid "Script timeout: exhausted allowed execution time" ?</p>
<p>here is the script :</p>
<pre class='brush: lua'>script.Parent.MouseButton1Click:Connect(function()
if game.Workspace:WaitForChild("blocks")then
... | 108719 | 1 | 99834 | 0 | 67015061 | ErskinePierre | 48 | 2020-07-10 19:37:54 | <p>It would be better if you posted some code but i'm just going to assume its a a loop. Have you tried putting wait() inside the loop itself?</p>
|
1 | How to detect the player's proximity to a specific block? | 7163102 | iceman8k | 15 | 2014-02-27 18:36:43 | <p>I've been trying to figure out how to detect a player's proximity to a block, for purposes of radiation in a Fallout-esque game I've been making. I cannot think of how I would get the script to detect if the player is within the, say, 10-stud area around the block so the player gathers Radiation (of which I have bei... | 335 | 2 | 616 | 2 | 13416513 | Merely | 2122 | 2014-02-27 18:44:56 | <p>Use <a target="_blank" href="http://wiki.roblox.com/index.php?title=Player">Player:DistanceFromCharacter</a>. It accepts a Vector3 position.</p>
<p>For example, if you want to get the distance between the player and a block:</p>
<pre class='brush: lua'>local block = game.Workspace.RadiationPart
local distance = play... |
0 | How to transfer data between scripts? | 328978167 | Firtina001 | 0 | 2021-06-07 20:22:46 | <p>Heya, I'm trying to make a loading screen and want to link 2 variables together
like linking one script's random generated number to another script.</p>
<pre class='brush: lua'>math1 = math.random(3,5)
math2 = math.random(2,4)
math3 = math.random(4,6)
script.Parent.Visible = false
script.Parent.Text = "Establishing ... | 124177 | ||||||||
0 | Player Dying Breaks Script, Variables do not match up with new character? | 30750306 | cakelight | 0 | 2022-11-15 13:22:51 | <p>The following script is just me testing projectiles with Bezier curves. It spawns at your character's HumanoidRootPart location and travels to your mouse's position. Everything works, but when I reset or when my character dies, the localscript is using the location of the HumanoidRootPart of my "dead body". Every ti... | 132284 | ||||||||
1 | Calling a Modulescript by a String Variable? | 83165 | Emdebted | 22 | 2021-02-21 05:50:35 | <p>Hi! Sorry if this is too convoluted or doesn't make much sense, I am very new to scripting and haven't done it in a long time. I'm working on a modulescript that creates an NPC. Since NPCs can be of different types with a large number of different variables, it calls another modulescript while running based on what ... | 120454 | 1 | 109836 | 0 | 223838284 | vector3_zero | 1056 | 2021-02-21 11:59:58 | <p>You can use a dictionary indexed with the name of your templates for easy access to the correct template in the CreateCharacter function:</p>
<pre class='brush: lua'>local NPCTemplates = game.ServerScriptService.NPCTemplates
local templates = {
["Human"] = require(NPCTemplates.Human.HumanTemplate),
["Monster... |
0 | How do you make FPS arms that rotate up and down based on the camera direction? | 336467162 | TribotGamerGX | 88 | 2021-02-23 03:17:10 | <p>I made a gun in ROBLOX Studio and a gun holding animation. I want to rotate the arms of my ROBLOX character upwards or downwards based on camera direction when my tool is equipped. I want to use the ROBLOX character's arms and not group or create any FPS arms. I don't know how to start the coding process. I am curre... | 120547 | ||||||||
0 | Can someone explain why I got this error for CreatePlace? [solved] | 51714312 | Rawblocky | 217 | 2017-04-18 23:19:14 | <p>When I tried to run this, it gave me an error.</p>
<pre class="brush: lua">local place = game:GetService("AssetService"):CreatePlaceAsync('Player Battle', 743635586)
</pre>
<p>The error was:
<strong>16:09:58.346 - Game:CreatePlace received and error: HTTP 0 (HTTP 403 (HTTP/1.1 403 Forbidden))</strong>
<em>(HttpServi... | 42153 | ||||||||
0 | Getting expected end errors or expected <eof> errors, what happened? | 62087109 | Raccoonyz | 893 | 2020-01-28 02:59:04 | <p>I have been encountering a issue where I keep getting issues and I don't know what's going on at all. Help.</p>
<pre class='brush: lua'>-- plugin created by the legendary raccoon man Raccoonyz
-- enjoy!!
local toolbar = plugin:CreateToolbar("Find Part Number")
-- Add a toolbar button named "Create Empty Script"
loca... | 93714 | ||||||||
0 | Hashtags in front of variables? | 1532765 | Cuvette | 246 | 2015-03-17 03:22:24 | <p>Hey, I'm new to Lua but not to programming and just have a quick question.
I've seen a few scripts in which there is a hashtag in front of a variable, for example...</p>
<pre class='brush: lua'>if #players > 0 then
local randomplayer = players[math.random(1,#players)]
</pre>
<p>This is part of a script that selec... | 15825 | 2 | 18968 | 3 | 2267870 | Redbullusa | 1580 | 2015-03-17 03:32:31 | <p>The <a target="_blank" href="http://wiki.roblox.com/index.php?title=Tables#More_information"># operator</a> returns the amount of items in a particular table. That's why <code>#[table]</code> (in this case, <code>#players</code>)is an integer.</p>
<p>Some examples:</p>
<pre class='brush: lua'>Table1 = {"HI", "ok", "... |
0 | i am STILL confused? everything should be right? SOLVED | 518263070 | hudstir | 0 | 2022-10-05 23:58:46 | <p>THE PROBLEM HAS BEEN FIXED</p>
| 131813 | ||||||||
0 | CharacterFetch help on Try/ID script? | 919589 | Darkhope | 0 | 2018-03-28 15:03:00 | <p>Had a working script that when a player said Try/ID it would change the appearance of them to the ID of their choosing, A couple updates ago the script has stopped working at line 4</p>
<p>"http://www.roblox.com/Asset/CharacterFetch.ashx?userId=%22..string.sub(msg,5)"</p>
<p>https://gyazo.com/26a65799bf5337934075f26... | 55778 | ||||||||
0 | How would I detect player movment inside a part? | 1869093242 | kurt_russ12345 | 0 | 2021-10-12 17:34:38 | <p>I want to know how to detect player movement inside a part, but the only way I know how to do this all the players will get detected if one player move's, I would like to know if a player were to walk into a part with multiple people only that person will get detected.</p>
| 127847 | ||||||||
1 | Any possible way of saving Instances with DataStore? | 38247353 | coo1o | 227 | 2014-05-18 02:48:59 | <p>Now before you say it, I know you can't save <strong>Instances</strong> with <a target="_blank" href="http://wiki.roblox.com/index.php?title=DataStore"><strong>DataStore</strong></a> like so:</p>
<pre class='brush: lua'>game:GetService("DataStoreService"):GetDataStore("ds"):SetAsync(workspace.Part)
</pre>
<p>But I w... | 5018 | ||||||||
1 | Moving a clone of yourself HELP! | 15436391 | tkddude2 | 75 | 2014-03-02 00:04:52 | <pre class="brush: lua">while true do
local player = game.Players.LocalPlayer
local character = player.Character
local torso = character:FindFirstChild("Torso") --v on the end == value
local torsov = Vector3.new(torso.Position) --d on the beginning == distance
print(torsov)
if torso then
print("found torso")
e... | 419 | 1 | 736 | 1 | 18989219 | Thewsomeguy | 448 | 2014-03-02 01:10:19 | <p>Take a look at <a target="_blank" href="https://scriptinghelpers.org/questions/233/how-do-you-clone-someones-character">this</a> question.</p>
|
1 | Forcing TextBox to lose focus? [SOLVED] | 1002773 | Spongocardo | 1991 | 2014-09-28 17:09:50 | <p><strong>EDIT: RoboFrog's idea didn't work out for me. Anyone else got any other ideas on how to fix/solve this? Thanks in advance.</strong></p>
<p>Hi guys, I was wondering if it was possible to force a TextBox GUI object to lose focus.</p>
<p>Not really much that I can elaborate on this but I am making a chat delay ... | 11240 | 2 | 14158 | 2 | 1919723 | RoboFrog | 400 | 2014-09-28 22:48:08 | <p>Considering I'm reading this right, while the delay is active, you could always place another GUI element over the text box. I'm pretty sure you can't activate text boxes if they're under other GUI elements.</p>
<p><strong>EDIT</strong>: Also set the <code>TextBox</code>"visible" property to false.</p>
|
0 | How to reduce ViewportFrame caused lag? | 970566182 | JojogamezYT | 0 | 2021-10-07 14:30:42 | <p>I used an Xray module which uses ViewportFrames to filter the xray. But in turn it causes a bit of lag and idk why. Is there away to reduce the lag or compress the viewportFrame?</p>
| 127810 | ||||||||
1 | Change the Avatars Shirt.ShirtTemplate? | 473061959 | johnoscarbhv1 | 122 | 2021-10-11 18:39:20 | <p>So I am trying to make it so a player can enter an ID for a clothing/ shirt and then that will get put on an avatar// dummy r15</p>
<p>I get no errors but It wont change the apperance of the shirt</p>
<p>Local Script</p>
<pre class='brush: lua'>local RepS = game:GetService("ReplicatedStorage")
local TextBox = script... | 127839 | ||||||||
0 | Why server is not replicating to client? | 91834228 | benben3963 | 6 | 2017-12-23 19:42:14 | <p>Hello, I am trying to animate a plane and I am using Motor6D to do so. The plane I am using is run on a LocalScript so I used a RemoteEvent to tell a server Script to animate the plane. But the issue is that the animation is played on the server side but not replicated to each client and I have no idea how to do so.... | 50803 | ||||||||
0 | [solved]why is ray not casting while aiming? | 1787450736 | Klui36 | 45 | 2023-02-18 16:27:28 | <p>So, basically im making a sniper game, but i have one big problem. if i dont aim everything seems like normal and the serversided fastcast script works perfectly fine. But if im aiming, the caster doesnt Fire but the remoteevent is working. Any help and ideas are appreciated.</p>
<p>Please note that i am using a sco... | 133088 | ||||||||
1 | How to make gui's compress and stretch ALL THE TIME when resolution changes? | 101146721 | DemGame | 187 | 2020-11-11 03:09:01 | <p>I have a game that has a lot of gui's, but they become off-centered and no longer have edges that match up the way I want them to anymore when the resolution changes. Is there a way to make gui's become smaller in all directions as the resolution becomes smaller to prevent this?</p>
| 115619 | 1 | 106241 | 1 | 461604490 | 2Loos | 145 | 2020-11-13 01:22:45 | <p>When creating GUI, you will notice the default size is usually something like {0,100},{0,100} for frames and {0, 200},{0, 50} for <code>TextLabel</code> and <code>TextBox</code>. The first and third digits are called <code>Scale</code>. The second and fourth digits are called <code>Offset</code>. You should <strong>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.