question_score stringclasses 21
values | title stringlengths 6 119 | question_userid stringlengths 4 10 | question_user stringlengths 3 20 | question_user_score stringclasses 496
values | question_datetime stringdate 2014-02-01 23:57:31 2023-04-02 01:40:15 | question stringlengths 0 11k | question_id stringlengths 1 6 | answer_count stringclasses 8
values | answer_id stringlengths 0 6 | answer_score stringclasses 18
values | answer_userid stringclasses 946
values | answer_user stringclasses 963
values | answer_user_score stringclasses 692
values | answer_datetime stringlengths 0 19 | answer stringlengths 0 10.7k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | how do you change CustomPhysicalProperties through script? | 71739181 | Noonekirby | 162 | 2019-01-21 01:41:03 | <p>I have my part set to choose a random material and I can control what happens with each material(fabric makes you jump higher, i.e) but I wanted to set ice to be slippery using CustomPhysicalProperties. however, when I did, the output displayed this:
PhysicalProperties.Friction cannot be assigned to</p>
<p>here is m... | 74852 | ||||||||
0 | Is there a way of using SetPrimaryPartCFrame without affecting rotation? | 1532765 | Cuvette | 246 | 2019-03-02 23:22:25 | <p>I'm trying to use SetPrimaryPartCFrame to move a model without affecting it's current rotation values and anything there after. Is there a method or way to just move it's x,y,z without changing it's rotation or anything?</p>
<p>I've got it moving to where the mouse is, but it completely resets the way is was rotated... | 77129 | ||||||||
1 | Attempt to index nil with 'WaitForChild' ? | 714312166 | PrismaticFruits | 842 | 2020-04-26 14:01:01 | <p>I am trying to make a thing that if when someone joins or dies, if they are a developer or have the VIP gamepass then it will give them double WalkSpeed and double JumpPower.</p>
<p>Here is my full normal script in workspace:</p>
<pre class='brush: lua'>local ms = game:GetService("MarketplaceService")
local id = 914... | 100808 | 1 | 93081 | 3 | 36340323 | Mayk728 | 855 | 2020-04-26 14:18:48 | <p>it's because the character hasn't loaded yet when the script tried looking for it. also, you tried to set the walkspeed of the humanoid after the player has respawned, which will also cause error, because the old humanoid doesn't exist after respawning. i've added <code>plr.CharacterAdded</code> so that it fires eac... |
0 | What's the difference between Mouse.Hit and Humanoid.TargetPoint? | 4032400 | ipiano | 120 | 2014-08-05 05:14:03 | <p>I've been working a bit with RemoteEvents, and I noticed that there doesn't seem to be a way to send the CFrame value from Mouse.Hit in a LocalScript to a Server script via a RemoteEvent. (If this IS possible, please enlighten me!)</p>
<p>So I looked into how the Roblox Weapons work, and noticed that they don't use ... | 9201 | 2 | 11795 | 1 | 1002773 | Spongocardo | 1991 | 2014-08-05 09:39:02 | <p>The TargetPoint property is a property which shows where the Humanoid is trying to walk to and using in that in... let's say a rocket launcher script, the rocket would fire where the humanoid is walking to.</p>
<p>The Hit property is different to the TargetPoint property because it shows where the mouse is pointing ... |
0 | Why won't this simple script work? | 68741341 | DavidWhitmore | 0 | 2015-05-10 19:39:25 | <p>What is wrong with the following that even when someone else that is not me sit's on the seat they still get the gui?</p>
<pre class="brush: lua">gui = game.Lighting.Control
function getGUI(u)
print("hit")
local h = u.Parent:FindFirstChild("Humanoid")
if h ~= nil then
print("human")
local user = game.Players:GetPlay... | 17429 | ||||||||
0 | Whats the difference between a NumberValue and an IntValue? | 39609842 | bosswalrusalt | 5 | 2014-04-16 00:59:56 | <p>Whats the difference between a NumberValue and an IntValue?</p>
| 1989 | ||||||||
1 | Merely's GUI Rap | 1099844 | LuigiGiannella | 10 | 2014-02-17 09:46:19 | <p>I know how this works,but I don't want to copy his style I'm trying to figure out how to make it I'm just a bit confused some feedback,or help would be greatly appreciated</p>
| 30 | 2 | 57 | 3 | 53253272 | XxPhantom69xX | 25 | 2014-02-17 09:54:27 | <p>Hello, Merely uses an external program for obtaining RAP and limited ID's, he has the program write info to a model which is loaded into the game. <strong>Not sure if you couldn't use Model to script plugin</strong></p>
|
0 | When I Was Playing My Game With My Friend, Friend Said That He Has No Viewmodel, What I Do? | 600684309 | Hiktius | 7 | 2023-03-09 02:27:23 | <p>Well Its Just Make Arm Visible When First Person And Not Like Viewmodel But</p>
<p>When My Friend Open Developer Console, It Says</p>
<p>Infinite yield possible on 'Workspace.[FriendName]:WaitForChild("Right Arm")'
Stack Begin
Script 'Workspace.[FriendName].Arms' , Line 5
Stack End</p>
<p>I'm Not That Good With Scri... | 133163 | ||||||||
0 | Changing the transparency of several parts? | 149094523 | Crimsonknightzone | 38 | 2021-02-22 01:39:21 | <p>I have been trying to make a script the causes a wall of parts to flicker (Like a forcefield), however:
A. They are all the same name
B. There are more then 20 parts
C. It would create thousands of lines of code.
Can you guys help me out? Is there some sort of function I can use?</p>
<pre class='brush: lua'>local UI... | 120490 | 1 | 109869 | 1 | 1085356580 | LeedleLeeRocket | 1094 | 2021-02-22 02:46:06 | <p>You almost got it. You just needed a for loop to go through ATObject's children.</p>
<pre class="brush: lua">local ATFIELD = game.Workspace.ATObject:GetChildren()
for index,child in pairs(ATFIELD) do
child.Transparency = 1
end
</pre>
|
0 | How to I check if an ID init64 is a valid PlaceID? | 64291305 | uhTeddy | 101 | 2018-05-05 18:18:30 | <p>If there is a possible way for a script to see if a number init64 is a valid PlaceID please let me know because it is needed.</p>
| 57992 | 1 | 56630 | 0 | 108632294 | brokenVectors | 525 | 2018-05-05 18:35:08 | <pre class='brush: lua'>function IsGameValid(id)
local isgame
local success,message = pcall(function()
local gameid = game:GetService('MarketplaceService'):GetProductInfo(id)
isgame = gameid.AssetTypeId == 9
end)
return success and isgame
end
</pre>
<p>This function returns whether the given ID is a game.... |
0 | regiving a item, after respawn? | 1109584924 | Ijeremyl | 0 | 2020-05-19 16:08:57 | <p>this is what i got so far, and its working but there is just one problem
whenever someone respawn they'll lose the item and are forced to rejoin
and I also got 1 major flaw, that it sometimes doesn't run on flooded servers</p>
<pre class='brush: lua'>local MarketplaceService = game:GetService("MarketplaceService")
l... | 103684 | ||||||||
0 | How do I choose one player and give them a sword? | 59261264 | FamousDoge | 0 | 2014-06-04 13:33:21 | <p>How do I create a script that chooses one random player and gives them a sword, more health and walkspeed?</p>
<p>Also, it needs to teleport them to a position.</p>
| 6155 | ||||||||
0 | How do I make text Appear when a Player dies? (Not Print function) | 16930058 | Seeker5123 | 15 | 2015-04-08 21:42:32 | <p>How do I make this text appear as a Gui?</p>
<pre class='brush: lua'>game.PlayersPlayerAdded:connect(function(plr)
print(plr.Name .. " has Joined the game")
plr.CharacterAdded:connect(function(chr)
chr:WaitForChild("Humanoid").Died:connect(function()
print(plr.Name .. " was killed
end)
... | 16505 | ||||||||
0 | Help with ModuleScript Error? | 1279544 | lordrex12345 | 25 | 2016-05-14 03:29:19 | <p>Hello,
below is a module script I am using to calculate a vehicles "Health." I am receiving an error that is also shown below. I've attempted to resolve it but to no avail so any help you guys could provide is appreciated,
Thanks</p>
<pre class='brush: lua'>wait(.1)
local HealthHandler = {}
local Player = game.Playe... | 30554 | ||||||||
0 | UI opens but doesn't close. What am I doing wrong? [SOLVED] | 1169362290 | iiMxtt_Destinyii | 62 | 2021-01-24 21:12:57 | <p>What have I done wrong in this LocalScript? It is supposed to open and close a GUI however, the UI only opens and does not close.</p>
<pre class='brush: lua'>game:GetService("UserInputService").InputBegan:Connect(function(Input, IsTyping)
local open = false
local close = true
if IsTyping then return end
... | 119142 | 1 | 108861 | 1 | 150334552 | vincentthecat1 | 199 | 2021-01-25 09:13:41 | <p>This requires none of that and should work. (make sure the script is in the said UI, and that's is a local script but in general, it should work.)</p>
<pre class='brush: lua'>function keyPressed(input)
if input.KeyCode == Enum.KeyCode.M then
if script.Parent.Visible = true then
script.Parent.... |
0 | How to check if something is not in a table? | 8458929 | Aaronoles | 55 | 2014-04-16 23:03:39 | <p>See, what I'm trying to do is have a block be swung like a sword, and check if it's already hit that person to prevent from dealing mass amounts of damage.</p>
<p>Here is the basic script, without dealing any damage.</p>
<pre class='brush: lua'>sword = script.Parent
mainpart = sword.Blade
hitplayers = {}
mainpart.To... | 2301 | ||||||||
1 | Im trying to get the mouse target and it has a error? | 98600858 | cjkizzy286 | 24 | 2020-06-27 16:52:17 | <p>i keep getting a error when i try to get the mouse</p>
<pre class='brush: lua'>local player = game.Players.LocalPlayer
local mouse = player:GetMouse() -- the error is here
</pre>
<p>the error message is :
17:45:02.409 - Workspace.Script:2: attempt to index nil with 'GetMouse'</p>
| 107587 | ||||||||
0 | How to remove a proximity prompt attached to player humanoidrootpart? | 1932296367 | AltairCelestia | 2 | 2022-06-19 15:23:44 | <p>This is not my script but as you can see on the script " c.HumanoidRootPart.ProximityPrompt:Destroy()" is present. The original code in this part is "ProximityPrompt:Destroy()" but still wont work.</p>
<p>what I want to you to fix is that, if the player was revived then proximity prompt will be remove</p>
<pre class... | 130405 | ||||||||
0 | How can I have a seat that that rotates on button held? | 1588728281 | robbyfalls | 0 | 2023-01-13 19:51:45 | <p>I'm having a hard time figuring out how to rotate a Seat part on an axis while being seated when I hold a button.
For example: When i press "A" I want the part to rotate to the left until I stop pressing "A".
How would I best go about doing this in the most simple way?</p>
| 132825 | ||||||||
0 | script to give player a starter shirt and hat ? | 40847996 | edgaar | 0 | 2014-04-16 13:04:11 | <p>Please help me, how to make it ?</p>
| 2141 | ||||||||
0 | Shirt Vip Help WANTED NOT A T-SHIRT VIP DOOR SHIRT? | 39064167 | SirKitten2000 | 0 | 2014-04-12 22:04:20 | <p>hello im trying to make a shirt vip but im confused on how i can make it ive tryed many times but it just doesnt seem to work i want to make a vip door for a shirt this is the script can you tell me if somethings wrong with it or how i can fix it SCRIPT HERE</p>
<p>print ("VIP Shirt Door Script Loaded")</p>
<p>permi... | 1257 | ||||||||
1 | [Solved] Developer Console not showing server logs? | 11808841 | blowup999 | 659 | 2017-07-17 00:19:43 | <p>I've tried a few of my game places and a couple group places and I can't get the Server Logs to open in any of them, whereas they used to work. I had the owner of the group try the developer console in the places also and it didn't work for him either.</p>
<p>It's allowing me to see Client Logs and Memory but it won... | 45382 | ||||||||
0 | Can I use .OnServerEvent() from a ModuleScript? | 3807724 | Le_Teapots | 913 | 2018-05-29 17:25:53 | <p>For example, considering the following code is inside a <strong>ModuleScript</strong>:</p>
<pre class='brush: lua'>local RemoteEvent = Instance.new("RemoteEvent", game.Workspace)
RemoteEvent.OnServerEvent:Connect(function()
print("Hello")
end)
</pre>
<p>Will it print <em>"Hello"</em> when I call :FireServer() on... | 59239 | ||||||||
0 | How to reset wait() once HealthChanged is fired multiple? | 331809274 | TechModel | 88 | 2021-09-20 02:21:03 | <p>Hello! This is something I'm not sure what this is called or how to do fix this, but how this works is a gui that appears and dissapears when it is health changed. But seeing that as it continues to be damaged for more than 3 seconds, the gui starts flashing instead of resetting the 3 seconds before disabling the he... | 127569 | ||||||||
0 | .Touched not working with local parts etc.. | 49776603 | TomsGames | 225 | 2014-02-21 10:39:17 | <p>I've posted this on the scripting helpers forums, I'll post the whole post here as requested last time.</p>
<p>Right...</p>
<p>I just reworked the movement system of my game. It took me 2 days. I don't want to find out now that it STILL does not work! >.<</p>
<p>This is the game:</p>
<p><a href="http://www.roblox... | 194 | ||||||||
1 | How do I move a model by using a for loop? | 161262344 | sean_thecoolman | 190 | 2019-08-04 15:50:14 | <p>Code I have so far:</p>
<pre class='brush: lua'>for i = 0.0001,10*100e+999 do
game.Workspace.Rocket:MoveTo(38, 67.171+i, -168.25)
wait(0.01)
end
</pre>
<p>Trying to use the loop above would give me an error that goes like:</p>
<p><em>Unable to cast double Vector3</em></p>
<p>What am I... | 85077 | 1 | 78998 | 0 | 129265755 | Vinceberget | 1148 | 2019-08-04 19:24:47 | <p>You're supposed to input a <code>Vector3</code> and not three seperate values.</p>
<pre class='brush: lua'>for i = 0.0001,10*100e+999 do
game.Workspace.Rocket:MoveTo(Vector3.new(38, 67.171+i, -168.25))
wait(0.01)
end
</pre>
|
0 | How do you use the touched function and get the player in Players, not in Workspace? | 40688038 | ComedyPumpkin | 66 | 2016-09-18 00:03:43 | <pre class='brush: lua'>local sp = script.Parent
sp.Touched:connect(function(part)
local character = part.Parent
local leaderstats = character.leaderstats
local value = leaderstats.Level
if character and leaderstats and value then
value = 2
end
end)
</pre>
| 35682 | 2 | 38194 | 1 | 48094638 | iamnoamesa | 674 | 2016-09-18 01:06:24 | <p>You can use the "GetPlayerFromCharacter" to retrieve the player through character, and the ".Character" to retrieve the character through the player. I will explain by fixing your script.</p>
<pre class='brush: lua'>local sp = script.Parent
sp.Touched:connect(function(part)
if part.Parent:FindFirstChild("Humanoid") ... |
0 | How do I make the Gui appears when my mouse hovered it? | 1792778813 | Xapelize | 2326 | 2019-09-28 07:48:11 | <h1>Please note this is a old post, so the time when I posted this I was a noob, please don't complain</h1>
<p>Ok, I checked the script, that wasn't any error, but I have no idea why the script doesn't work.</p>
<pre class='brush: lua'>script.Parent.ClickDetector.MouseHoverLeave:Connect(function(Player)
game.Starter... | 88041 | ||||||||
0 | Mouse is not a valid member of Vector3? | 471191021 | Sabertooth11123 | 38 | 2021-04-26 04:00:37 | <p>Very confused on why I'm getting this error, I'm trying to make a tool make a part from replicatedstorage clone to workspace when clicked on with it activated and then its cframe will be constantly moving forward in the spot your mouse clicks on, but for some reason I keep getting that error. Heres the script:</p>
<... | 122812 | 1 | 111916 | 1 | 1288500822 | Finty_james | 269 | 2021-04-26 17:04:24 | <p>Mouse doesnt have a Vector3. Mouse Probably uses CFrame. For a reminder, Vector3 is the code snippet that can edit positions of this in 3d space, not 2d. Plus, You should use a localscript because only the client can access its own mouse. Sorry if it sounded rude ;-;</p>
|
0 | A button in roblox studio won't work but it used to. is this a glitch? All Help Apprieciated | 353324287 | terraria265 | 5 | 2021-06-10 08:57:08 | <p>So I have a game I am working on and it was completely fine until today it wouldn't let m save or publish only save to file so I did that then I went back on and the button stopped working, it was a key part in the game. Here is the script:</p>
<pre class='brush: lua'>local player = game.Players.LocalPlayer
script.P... | 124242 | ||||||||
1 | How to make the lighting darker so hard to see | 45082675 | christianbrouse | 5 | 2014-02-26 01:47:34 | <p>I have tried so much but nothing I do works i'm not really new to scripting I've just never changed the lighting before... Need help please!!</p>
| 305 | ||||||||
0 | Any help with a cooldown for keybind power? | 364796628 | Funnyskyswagway3 | 24 | 2021-05-04 20:57:58 | <p>Not really sure how cooldowns work so I thought a simple wait would work but it doesn't so any help?</p>
<pre class='brush: lua'>local RP = game:GetService("ReplicatedStorage")
local UIS = game:GetService("UserInputService")
local HealthDrainDevent = RP:WaitForChild("HealthDrainEvent")
local player = game.Players.Lo... | 123098 | ||||||||
1 | Expected 'end' (to close 'function' at line 4), got <eof> ? | 478599146 | milgamer5 | 5 | 2020-08-10 08:03:42 | <pre class='brush: lua'>local billboardgui =
game:GetService("ServerStorage"):WaitForChild("BillboardGui")
game.Players.PlayerAdded:Connec(function(player)
player.CharacterAdded:Connect(function(character)
if player.Name == "milgamer5" then
local clonedgui = billboardgui:Clone()
clonedgui.TextLabel.Text =... | 111095 | ||||||||
0 | I don't see errors in the output but what's wrong with this script? | 102544472 | CedCed6 | 30 | 2021-06-09 22:45:32 | <p><strong>I created a cylinder button in the workspace and added proximity prompt and it triggers a tweenposition frame but when I pressed the button, I don't see the frame on my screen...</strong></p>
<p>Frame Properties:
Visible: Yes, Original position: 0.5, 0, -2, 0, Zindex: 3</p>
<pre class='brush: lua'>local spaw... | 124235 | ||||||||
0 | Get Character from Player? | 102613161 | GeezuzFusion | 200 | 2016-03-05 21:51:15 | <p>I want to know hot get the Character from a player</p>
<p>is there a way to do this?</p>
<p>Instead of the ':GetPlayerFromCharacter()' method is there like an opposite of that? Like
'GetCharacterFromPlayer()'?</p>
| 28155 | 2 | 31614 | 1 | 25516360 | Zerio920 | 285 | 2016-03-05 21:54:15 | <p>I'll give you the code I use for this:</p>
<pre class="brush: lua">local player = --etc
if not player.Character then
print("waiting for character")
player.CharacterAdded:wait();
char = player.Character
else
char = player.Character
end
</pre>
|
0 | How do you make a OnTouched Badge script? | 64104783 | TheLUAII | 0 | 2014-07-04 21:00:23 | <p>How do you make a platform, and it will give you a badge when your character touches it?</p>
<p>Question #1</p>
| 7665 | ||||||||
1 | How Do I Find A position Of A Model? | 16319587 | mrnoobypoopy | 5 | 2014-04-15 15:31:12 | <p>How Can I Find A position
Of A Model Or Map Or Part?</p>
| 1678 | ||||||||
0 | What's the REAL method for changing the player's character? | 676151371 | rubixxman | 4 | 2021-10-17 02:49:14 | <p>I'm currently making a creeper chaos game, and I want to change the player's character into a creeper. But the problem is whenever I try to change the character using (player.Character = Creeper), it's not working. Then I tried methods I heard from other people, but those ones don't work either! I did this before, b... | 127894 | ||||||||
0 | help me im making a game but there is a bug which i dont know how to fix it?(its server script) | 879928211 | JustGodex | 10 | 2023-03-24 14:03:29 | <p>im making a game where you get a pet same avatar as you but when other player joins he doesnt get pet and the 1st players pet gets changed to the 2nd players avatar</p>
<p>Code:</p>
<pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(plr)
local char = game.ServerStorage:WaitForChild("Pet")
loca... | 133236 | ||||||||
0 | How Would I Expand On This Script And Make It A Double Cash Gamepass? | 124136116 | ricelicker | 52 | 2020-05-16 03:53:50 | <p>I Have A Simulator Game Where You Collect Coins And Sell Them For Cash, Currently, I Am Trying To Make A Double Points Gamepass. I Have Very Limited Knowledge With Roblox Lua And Money Systems So Please Excuse My Mistakes.</p>
<pre class='brush: lua'>game:GetService("MarketplaceService"):PromptGamePassPurchase(playe... | 103311 | 1 | 95377 | 1 | 336467162 | TribotGamerGX | 169 | 2020-05-16 05:53:43 | <pre class='brush: lua'>local owns = game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, id)
</pre>
<p>Make that into a variable, it will return true or false depending if the User owns the game pass.</p>
<pre class='brush: lua'>local CurrentMultiplier = 1
if owns then
CurrentMultiplier = 2
e... |
0 | Why is my leaderstats script is saying there is a nil value? | 1073917569 | Puppy_lovertheawsome | 32 | 2022-11-13 08:44:26 | <p>I have made a script that I think should show the players speed in the leaderstats. But the script does not even work. The error is: <strong>"ServerScriptService.Script:3: attempt to call a nil value"</strong>
Here's they script:</p>
<pre class='brush: lua'>game.Players.PlayerAdded:Connect(function(player)
local... | 132265 | 2 | 119448 | 0 | 559514967 | T3_MasterGamer | 1017 | 2022-11-13 10:27:44 | <p>There are so many errors in this script. In line 3 and 6, <strong>always</strong> use <code>Instance.new()</code> <strong>not</strong> <code>Instance.New()</code>. In line 7 you're naming an IntValue an instance instead of a <em><strong>string</strong> (string is a group of words inside two quotation marks; they usu... |
1 | How can I check which direction the camera is facing relative to the humanoid root part? | 1085356580 | LeedleLeeRocket | 1198 | 2020-09-14 01:46:04 | <p>I'm making a cover system and I want to make it so that if the camera is facing behind the humanoid root part then when the player aims, it will stop the crouching animation and have the camera stand up to look over the cover. I searched my question up and found a post. I tried the code but I seemed to only update w... | 113146 | 1 | 103872 | 1 | 158811 | TGazza | 834 | 2020-09-14 04:58:02 | <p>Everything seems to be working. Might be something else causing the problems.</p>
<p>I've re-wrote the above code so its a little bit more readable:</p>
<pre class='brush: lua'>local RunService = game:GetService("RunService")
local Player = game.Players.LocalPlayer
local character = Player.Character ~= nil and Playe... |
0 | Make a raycast stop before a boundary without using any basepart? | 1017846707 | Overseer_Prince | 189 | 2023-01-12 23:34:48 | <p>So I was wondering if I could get a raycast to stop or get the position of the raycast in the stopped place without using any parts to do this</p>
<p>so basically if a raycast is used and it passes the 40 on y axis</p>
<p>i want it to stop and i want to get a way to get the postion of the raycast without USING Parts... | 132820 | ||||||||
0 | Is there a way to have any variable have a 'Changed' event? | 5206310 | alibix123 | 175 | 2016-06-16 16:08:54 | <p>Something like:</p>
<pre class="brush: lua">x = "something"
x.Changed:connect(function(newValue)
-- do stuff
end)
</pre>
| 31858 | ||||||||
3 | Random table choice? | 4376147 | NotSoNorm | 777 | 2014-06-01 03:19:59 | <p>I have a table but I don't understand how to pick a random number from it, How?</p>
<pre class='brush: lua'>local Table =
{143737549,
142312040,
}
local Table
</pre>
| 5969 | ||||||||
0 | Why is my npc stuttering while using pathfinding? | 143096970 | Rayguyban2 | 54 | 2021-02-22 02:57:37 | <p>I really don't know why its stuttering and have no clue the only thing I noticed is that it stops for like half a second after it reaches its waypoint which I confirmed by adding an instance for the position of the waypoint, does anyone know how to fix this? The code below is used as lets say a zombie to go and smar... | 120497 | ||||||||
0 | How do I make a object break on impact? | 1138575840 | ithallo_brasil345 | 2 | 2022-11-20 03:04:59 | <p>Hi! i was making a game like half life 2 (or garry's mod if u dont know half life) and i tried to do a mecanic that if a part fall on a impact it will break but i failed it because i'm new to script
i have a script that grabs stuff (LiKe GaRrY's MoD) so i want to make glasses and boxes to fall and break it
i would a... | 132322 | ||||||||
0 | How to combine orientation and cframe? | 338950628 | RedcommanderV2 | 1256 | 2018-01-21 15:48:12 | <pre class='brush: lua'>local TweenService = game:GetService("TweenService")
local tweeningInformation = TweenInfo.new( 4, Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
local C1 = workspace:WaitForChild("Cameras")
local cam = C1:WaitForChild("StartCamera")
local red = true
local Pos1 = {}
Pos1.CFrame = CF... | 52437 | ||||||||
1 | How do I use Script.Source properly?? | 1406209964 | ElectricZooo | 55 | 2020-11-25 23:17:06 | <p>I'm creating a Plugin for roblox studio that writes a simple script and puts it in ServerScriptStorage. However, I'm having trouble getting it to work the way I want it too.
This is what I have so far...</p>
<pre class='brush: lua'>Script.Source = [====[ local ["game.Workspce.Part.Name"] = game.Workspace.Part
pr... | 116336 | 1 | 106750 | 1 | 87736336 | exxtremestuffs | 380 | 2020-11-26 04:24:51 | <p>I wouldn't recommend doing this, because dynamically naming variables like this can easily cause problems, however you could do this using <code>getfenv()</code> like so:</p>
<pre class='brush: lua'>getfenv()[workspace.Part.Name] = workspace.Part
print(Part) --> Part
</pre>
<p>which would define a variable within... |
0 | How to make an un hackable shop system? | 676151371 | rubixxman | 4 | 2021-07-14 15:26:23 | <p>So I'm making a new game that might have a shop system in it, and like all shops, it'll use a remote function. But since the client can access remote functions someone could hack the shop,
and buy everything they please in it if they wanted. All I need is the method to stop players from hacking my future shop system... | 125326 | 1 | 114078 | 0 | 45273210 | Mordevifer | 106 | 2021-07-14 16:34:41 | <p>Exploiters will always try and exploit your game, it's pretty much ROBLOX's fault for not having more measures against it, however since you mentioned you shop is going to use <code>Remote Functions</code> you could do these things:</p>
<p>1.- Have a cooldown, if someone is firing the remote function with a <code>wh... |
0 | Case is not a valid member of Model "tumtindy.Case". Whats happening? | 1561550920 | tumtindy | 36 | 2022-10-26 09:45:21 | <p>Case is not a valid member of Model "tumtindy.Case" is my error,</p>
<p>I am pretty new to scripting, so this might be an obvious mistake but for me it is not.
I am trying to make my model called "Sword" be visible inside of my "Case" which is attached to the HumanoidRootPart. (This is for R6)</p>
<pre class="brush:... | 132045 | 3 | 119256 | 0 | 295727993 | Lakodex | 711 | 2022-10-28 00:23:09 | <p>Case is not a valid member of Model is basically an error that describes to you that It is not a member, of model. Or Inside of it.</p>
<p>You require the exact path to the object unless the object is removed. A reason the object could be removed is NoCollide off, Anchored off, not welded to anything (for first 2), ... |
0 | How add a cooldown for an ability script that works in conjunction with a module script? | 364796628 | Funnyskyswagway3 | 30 | 2022-09-10 01:09:21 | <p>Basically what I wrote in the question is what I need help on. I tried to add a cooldown in the module script then get it from the local script but I get this error</p>
<blockquote>
<p>21:01:18.542 Players.Funnyskyswagway3.PlayerScripts.Keybinds:10: attempt to index nil with ‘Cooldown’ - Client - Keybinds:10</p>
</b... | 131565 | ||||||||
1 | attempt to call a table value? | 539909602 | Retallack445 | 42 | 2020-11-21 23:38:44 | <p>I am trying to make a module that makes an instant <code>New Frame</code> but this is the error i get every single time i run my code: <code>Workspace.ROS_API:55: attempt to call a table value</code></p>
<p>my code:</p>
<pre class='brush: lua'>function module.create_app(parent)
local main_frame = Instance.new('F... | 116128 | 2 | 106570 | 2 | 101726627 | cherrythetree | 95 | 2020-11-21 23:46:40 | <p>It's a very simple error. You are trying to call UDim2 which is a table, replace it with UDim2.new</p>
<pre class='brush: lua'>function module.create_app(parent)
local main_frame = Instance.new("Frame")
local top_frame = Instance.new("Frame")
main_frame.Size = UDim2.new(0, 1084, 0, 673)
main_frame.Po... |
0 | Console system doesn't work and gives no errors? | 126239619 | YeBeaseT21 | 0 | 2021-06-08 05:00:39 | <p>I want to make a system that checks whether the player has the specific item, and if the player does, then the console would "work". However, the code didn't give me errors and it doesn't work.</p>
<p>Also, I don't really know how to exactly make a system that only destroys the tool if the player pressed the proximi... | 124188 | ||||||||
0 | Pathfinding wants to go up first? | 145938002 | General_ChaosTv | 2 | 2022-05-20 01:33:05 | <p>Hi I'm new to Pathfinding and I just learned about it in a video by TheDevKing. I followed his tutorial which did worked but I needed to create a few lines of code myself because he is using a character and I'm using a object. I used TweenService instead of MoveTo which would suit my problewm. It works now but there... | 130051 | ||||||||
0 | My debounce not work? Work only my first function | 1159597643 | GuerraReturns | 122 | 2020-01-06 19:30:22 | <p>Hi guys, sorry for bad english.</p>
<p>This script work only the first time, after stop working, like an infinite Debounce</p>
<p>This is only a little part of my script. Work only the first function (?Maybe because i use the same debounce?) Is better if i use the _G. debounce?</p>
<pre class='brush: lua'>local Pher... | 92668 | 1 | 85741 | 3 | 223838284 | vector3_zero | 1056 | 2020-01-06 20:42:28 | <p>You shouldn't reset the debounce inside of a conditional, as if the conditional ever fails (which I expect it is in this case) then your debounce will be stuck as true forever.</p>
<p>In all three OnTouch functions, move the debounce reset outside of the conditional like this:</p>
<pre class='brush: lua'>local funct... |
2 | Broken Spawning script? | 22019140 | Futureof3 | 10 | 2014-02-26 02:57:04 | <pre class="brush: lua">local SpawnPoints = {Vector3.new(150.9, 13.9, -65.9),Vector3.new(141.7, 42.9, 22.5), Vector3.new(-38.3, 37.3, -119.7), Vector3.new(-72.3, 6.9, -159.5), Vector3.new(141.9, 5.5, -128.3), Vector3.new(172.1, 6.3, 60.9), Vector3.new(-64.3, 5.7, 56.1), Vector3.new(-32.5, 5.1, 17.9), Vector3.new(-65.7,... | 309 | ||||||||
0 | How to script blast yourself with rocket launcher? | 1429856890 | YourMajjesty | 0 | 2022-05-06 02:11:36 | <p>Roblox studio already has a premade team based FPS game and in it you have a rocket Launcher. But I want it so that if you shot at the ground, it would blast you up into the air. How would I go about scripting that? Can someone give me a script that'll work so I can learn and see how it's done?</p>
| 129923 | ||||||||
2 | Unbinding keys[UNANSWERED]? | 29251132 | HexC3D | 830 | 2014-06-16 22:47:50 | <p>For a while I was wondering how to disable some of the Humanoid Controller Keys . Every time I bind or unbind keys, the whole Roblox Studios Crashes.</p>
<p><strong>EDIT1:</strong> Also I don't want to disable all the Controls, is there a way to to disable certain Controls?</p>
<p><strong>EDIT2:</strong></p>
<pre cl... | 6792 | ||||||||
1 | How to fix math.random not randomizing part's BrickColor? | 393944663 | R0jym | 14 | 2022-05-02 08:38:01 | <p>Hello there, I made a script in which the part named "painter" randomizes the color of another part named "Cover" with the math.random script, however upon trying it the Cover only appears as color Gold with the Paper aswell colored as Gold even though my script clearly says that the Paper should be white, how do I ... | 129891 | ||||||||
6 | Where and how did all the scripting experts of Roblox learn to script? | 104096111 | UnboundedFury | 30 | 2017-04-11 16:37:21 | <p>I'm wondering this because I've been trying to learn how to script using the wiki tutorials, but I'm not getting anywhere. I know how to make basic loops and change brick properties, but that's about it. I don't know anything about all these new methods and functions and instances and other vaguely explained things.... | 41887 | ||||||||
0 | Data Save That Saves All Hats Located In Backpack? | 549599492 | SooGloezNoob | 28 | 2018-04-19 01:00:20 | <p>I have a folder located within the players backpack, designed for storing hats that you can then equip from a GUI. I don't know how to make it so when you leave, or reset, you keep the hats in the folder.... Can anyone help?</p>
| 57057 | ||||||||
0 | How do you make a brick that changes the bool value and exchanges for money script? | 574012679 | Lolbit_exe | 24 | 2020-11-21 17:02:19 | <p>I am making a game similar to cook burgers but more like work at a pizza place and I have tried to make a script that changes the color of a brick, changes the bool value, and if the bool value is true deletes the part and exchanges it for money. The color works fine, but the bool value changer and money brick don't... | 116106 | ||||||||
1 | What is wrong with the color change in this door? | 43561529 | BritishGotSwag | 30 | 2014-05-08 01:47:40 | <pre class='brush: lua'>local Door = script.Parent -- Door is part's parent now
function onTouch()--Sets start of function
Door.CanCollide = false -- Allows you to go through the door
Door.Transparency = 0.5 -- Makes the door transparent(duh)
Door.BrickColor:Random() -- Makes the door change color, problem ... | 4506 | 2 | 6084 | 1 | 4338714 | OniiCh_n | 410 | 2014-05-08 02:31:58 | <p><code>:Random()</code> doesn't work here.</p>
<p>This should work.</p>
<pre class='brush: lua'>local Door = script.Parent -- Door is part's parent now
function onTouch()--Sets start of function
Door.CanCollide = false -- Allows you to go through the door
Door.Transparency = 0.5 -- Makes the door transparent(... |
21 | How would I recognize if Text reaches the AbsoluteSize of a TextBox? | 74087102 | Ziffixture | 6913 | 2019-01-23 04:10:57 | <p>Hello!</p>
<p>I'm attempting to rebirth an old custom chat project! I've come quite far and am now just implementing a few extra bells & whistles.</p>
<p>I'm having an issue with the latest addition, though. I am trying to integrate the default chat's feature of appropriately resizing the <code>TextLabel</code> ... | 75001 | 1 | 70537 | 5 | 140284 | clc02 | 553 | 2019-01-23 04:37:08 | <p>What's happening is you're trying to see how big a piece of text will be inside a given frame, and if it goes beyond the size of the frame you'll make a new line.</p>
<p>The problem is the text size will never be any bigger than the frame you're testing it against, as it'll just not put the text up if it extends pas... |
0 | how do I check If a player is moving? | 1574810503 | therealjimmybob | 22 | 2022-01-01 19:35:35 | <p>I actually have no idea</p>
| 128625 | 2 | 116467 | 0 | 1837667233 | BirthWormSaiiy | 48 | 2022-01-01 20:47:49 | <pre class='brush: lua'>local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.Character:Wait()
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
local Velocity = HumanoidRootPart.Velocity.Magnitude
while wait(0.01) do
if Player.Character.HumanoidRootPart.Velocity.Magnitu... |
0 | If I look at the door and press the letter 'E' something happens! Can anyone help me? | 539328020 | horvathmf | 0 | 2022-08-01 22:23:39 | <p>Without proximity prompt door system like Granny!</p>
| 131050 | ||||||||
2 | How do you add to a value in a leaderboard? | 12132870 | Prioxis | 673 | 2014-04-26 20:48:19 | <p>So i'm making a GUI that if you put in a certain text it'll reward you with points sadly it sets the value to what I put it as in the script how to I make it to where its adding to the value?</p>
<pre class='brush: lua'> function clicked()
if script.Parent.Parent.TextBox.Text == "ROFL"
then
script.Parent.Pa... | 3624 | 2 | 5028 | 1 | 33035751 | NecoBoss | 194 | 2014-04-26 21:05:20 | <p>I believe it would look something like this .</p>
<pre class='brush: lua'>Player.leaderstats.Points.Value = Player.leaderstats.Points.Value + 1
</pre>
|
0 | Value of my IntValue object changes but when I reference it in a scrip it still shows 0? | 30792501 | Zrxiis | 26 | 2020-03-26 00:24:12 | <p>I put strength, intelligence, defense, and health stat values in a folder in the player call playerstats and in another local script when a player levels up and adds points to that stat its suppose to go up which it does when I check the value, but when I try to save it using a script in serverscriptservice the valu... | 97089 | ||||||||
0 | How to make sure a character lives while morphing | 29783818 | RobustPhysics | 25 | 2014-03-11 05:00:44 | <p>For my Bleach RPG, characters will morph into a built model upon spawning. Some of these models include having largely sized limbs and Torso's. Since I'm resizing the limbs to morph the character, each Motor in the Torso will temporarily have a Part1 of nil. In order to counter this, I first anchor the limb and then... | 628 | ||||||||
0 | How do I make it so StarterCharacter has custom anims? | 563111237 | qMrSpooky | 18 | 2021-05-01 22:13:49 | <p>Hey! So I've been trying to make a mage or something close to it and I can't seem to find a way to make my Mage StarterCharacter have different animations from the other characters (Run/walk, jump, idle, etc)</p>
<pre class='brush: lua'>local animNames = {
idle = {
{ id = "http://www.roblox.com/asset/?i... | 123008 | ||||||||
2 | How do I make audio play when a player clicks a block (using clickdetectors)? | 38498021 | capinbuilda | 15 | 2014-06-02 22:41:35 | <p>I need a player to be able to click a block, and then it plays audio. How do I do this?</p>
| 6090 | 3 | 60322 | 1 | 666308958 | lilnarcan | 40 | 2018-07-05 14:36:31 | <pre class='brush: lua'>a = false
script.Parent.ClickDetector.MouseClick:connect(function(player)
if a == false then
game.Workspace.Audio:Play()
a = true
else
game.Workspace.Audio:Stop()
a = false
end
end)
</pre>
|
0 | Why is the lerp function not moving part2 too 0.75? | 1139499518 | Ferceplay78y | 0 | 2023-02-21 00:21:58 | <p>local part = game.Workspace.P1
local part2 = game.Workspace.P2
function PartChange(player)
task.wait(5)
part2.CFrame = part.CFrame:Lerp(part.CFrame,0.75)
end
PartChange()</p>
| 133097 | ||||||||
0 | How to use games icon in game as a decal? ( easy ) | 99934304 | 14dark14 | 169 | 2020-09-11 19:25:43 | <pre class='brush: lua'>local image = script.Parent.Image
local player = game:GetService("Players").LocalPlayer
local place_id = 920587237
image = place_id -- error
function telept()
game:GetService("TeleportService"):Teleport(place_id,player)
end
script.Parent.MouseButton1Click:Connect(telept)
</pre>
<p><code>Imag... | 113034 | 1 | 103757 | 1 | 161262344 | sean_thecoolman | 190 | 2020-09-11 20:09:42 | <p>No no no, you can't use a place ID for a decal/image.
This is because that ID is being used for a place, and not a decal.</p>
<p>Take the game icon and make it a decal. Then use that decal's ID.</p>
|
0 | How would i do this specific Shift lock? | 634155711 | Oblivious_Blitz | 1 | 2020-03-26 01:43:49 | <p>For my game, I'm trying to force a shift lock that controls the camera but also only makes the character look at the camera center when right-click is down. How would I do this? I have tried this but this just puts the cursor at the center and makes the Character face 1 particular direction</p>
<pre class='brush: lu... | 97098 | ||||||||
0 | Newbie and unsure on how localplayer works? need help learning! | 1791906 | powerman1 | 0 | 2023-02-06 00:50:41 | <p>I don't know what I'm doing wrong but I can't get this code to work however I do it. Please help!</p>
<pre class='brush: lua'>local player = game:GetService("Players").LocalPlayer.name
game:GetService("Workspace").player.Object:Destroy()
</pre>
<p>No I cannot do game:GetService("Workspace").localplayer</p>
| 133028 | ||||||||
2 | Sound not playing from SoundService? | 15619704 | NinjoOnline | 1147 | 2016-07-10 04:32:22 | <pre class='brush: lua'>local soundService = game:GetService("SoundService")
local click = soundService:WaitForChild("Click")
local button = script.Parent
button.MouseButton1Down:connect(function()
click:Play()
print("Played")
end)
</pre>
<p>It prints "Played" but no sound comes out. I have this error
<code>Sou... | 32901 | 1 | 35954 | 0 | 33340680 | shasta342 | 37 | 2016-07-14 19:18:21 | <p>Try putting the sound in Workspace :)</p>
|
1 | My ROBLOX studio Local scripts won't ever fire is there any reason why? | 2063686834 | 25MouseSensitivity | 59 | 2022-09-16 13:53:21 | <p>So basically whenever I try to run a local script it won't work even if I just put</p>
<pre class='brush: lua'>print("Hello World!")
</pre>
<p>Nothing would show up in the command prompt is there any reason why?</p>
| 131639 | 2 | 118884 | 2 | 1792778813 | Xapelize | 2586 | 2022-09-16 13:54:35 | <p>LocalScripts doesn't run if it's inside workspace. Try putting it somewhere else like StarterPlayerScripts</p>
|
1 | Delete all welds | 49776603 | TomsGames | 225 | 2014-03-14 18:49:12 | <pre class='brush: lua'>g = game.ReplicatedStorage.PlayGreenJeep.Parts:GetChildren()
for i = 1, #g do
f = g[i]:GetChildren()
if f ~= nil then
for i = 1, #f do
if f[i]:IsA("ManualWeld") then
f[i]:destroy()
end
end
end
end
</pre>
<p>This method apparently do... | 684 | 2 | 1102 | 2 | 4030068 | jobro13 | 980 | 2014-03-14 18:56:59 | <p>Because it only finds the welds in the "top level". :GetChildren() returns a table of all <em>children</em>, not all <em>descendants</em> which is exactly what you need. You can solve this problem by either creating a table with all children, or by creating a way to loop directly over all children.</p>
<p>In most ca... |
0 | GUI that only certain people can see? | 51440452 | masterhalo55 | 75 | 2014-04-13 03:44:41 | <p>How do i script a GUI so that only certain people can see it?</p>
| 1270 | ||||||||
0 | How to use DeveloperProducts? | 36797975 | jBuildz17 | 20 | 2014-02-28 23:02:29 | <p>I have a game, and I want it to occasionally offer the player an upgrade which gives them a more powerful sword for one life. How would I how about doing this?</p>
| 371 | ||||||||
0 | how to force a player to walk forward? | 253462901 | pwgth | 11 | 2021-05-10 15:50:25 | <p>okay, so say I have a tool, when I click with the tool out, it forces me to walk forward(and only forward) at a speed faster than usual.
this is the kind of thing I'm wanting to make,
got any ideas on how I can do this?</p>
| 123307 | ||||||||
0 | How do I detect when a player touches a part? | 416031643 | MinecraftButterfly87 | 10 | 2020-02-02 18:08:45 | <p>I want to make something where when a player walks into a certain area, a part stops being transparent. How do I do this? I'm new to scripting, so could you please send the whole script? Thanks in advance.</p>
| 94010 | ||||||||
0 | Value doesnt wanna update? | 356967107 | Ludzik78 | 81 | 2021-04-05 16:43:06 | <p>Im currently making a power based game and i have trouble with one thing, that is that the TotalPower doesnt wanna update.
My code:</p>
<pre class='brush: lua'>local TargetPart = script.Parent.Parent.TargetPart
local req = 1e+12
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid")... | 122039 | ||||||||
0 | Why is this not working? | 14420992 | mnaj22 | 44 | 2015-05-03 21:35:56 | <pre class="brush: lua">x = script.Parent
function clicked()
if script.Value.Value == 0 then
print("Click")
script.Value.Value = 1
for re = 1, 10 do -- What do I put in replace of 10?
x.CFrame = x.CFrame *CFrame.Angles(0, 0.1, 0)
wait(0.01)
end
script.Value.Value = 2
end
end
script.Parent.ClickDetector.MouseCli... | 17254 | 1 | 20635 | 0 | 55088775 | NotsoPenguin | 705 | 2015-05-03 21:44:00 | <p>First thing you are using two connections for the same event. And I am not sure why you have the same script twice? But this script will rotate the brick 90 degrees.</p>
<pre class="brush: lua">local Speed = 10 --Higher is slower
function clicked()
for re = 1, Speed do
script.Parent.CFrame = script.Paren... |
0 | Hotline Miami style gun? | 234143140 | MexheCo | 46 | 2018-12-12 03:16:02 | <p>I want to create a gun that shoots in the style of Hotline Miami. By this, I mean a gun similar to the one in <a target="_blank" href="https://www.youtube.com/watch?v=sK3pP2y1j1I">this video.</a></p>
<p>My script right now draws a ray from the gun's handle to the mouse's location. My problem is that I don't want it ... | 72148 | 1 | 68341 | 1 | 393921810 | TheluaBanana | 946 | 2018-12-12 04:59:21 | <p>uhh since im lazy to add an actual tool(im sorry!) ive made this LocalScript that u should put in the StarterPack:</p>
<pre class='brush: lua'>local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
local root
plr.CharacterAdded:Connect(function(char)
wait(.1)
root = char:FindFirstChild("HumanoidRo... |
0 | Part BrickColor scripts are not working, Is it possible to fix? | 1593155829 | OreyTheOre | 19 | 2021-02-22 08:33:46 | <p>So i was making this script:</p>
<pre class='brush: lua'>game.Players.PlayerAdded:Connect(function()
script.Parent.Chest1.FaceMask.BrickColor = BrickColor.new("Institutional white")
script.Parent.Chest1.FaceMask2.BrickColor = BrickColor.new("Institutional white")
script.Parent.Chest1.Eye.BrickColor = Bri... | 120502 | ||||||||
0 | My output says Argument 1 missing or nil from a remoteevent , help? | 59833205 | bailley5 | 114 | 2020-07-23 07:26:24 | <p>so I am trying to make it so when a player clicks it adds a value to leaderstats,
I am using a RemoteEvent on line 16 to connect with the server, The error also comes from the remote event.</p>
<pre class='brush: lua'><br />local Tool = script.Parent;
local Player = game.Players.LocalPlayer
enabled = true
function o... | 109756 | ||||||||
0 | How to store a highest variable and add to leaderboard stat? | 400010521 | NightminerYT | 0 | 2022-05-12 23:31:15 | <p>So, I've got a game where you fling yourself off a ramp. I've got some code to detect magnitude and put it into a leaderstat, but I want to find the highest magnitude before death, and then add that to the leaderstat. Sort of like a currency system. Below is the code for the magnitude stat that I currently have.</p>... | 129983 | ||||||||
0 | How do i remove all the children of viewport? | 357035682 | mikey2019d | 38 | 2020-08-01 15:27:18 | <p>So I am making a gun previewing script. When you click the weapon it will display it in the viewport. It displays the weapons as expected but I am not able to remove the children</p>
<p>here is my code so far</p>
<pre class='brush: lua'>--August 1 2020
--Test script for the viewport frame
--
--Made by:Mikey2019d
---... | 110475 | 1 | 101468 | 1 | 91099528 | iiMegabyteGaming | 317 | 2020-08-01 15:30:57 | <p><code>:GetChildren()</code> returns a table of children. Since it's a table, you can't do <code>:ClearAllChildren</code> on it (it'd look like <code>{"index"}:ClearAllChildren()</code> which wont work). I believe you want to do
<code>ViewPort:ClearAllChildren()</code></p>
|
0 | How do I make a GUI appear on a different persons screen? | 424755598 | Mystical_Un1verse | 4 | 2022-05-05 05:32:26 | <p>I want to make it so player1 can open a GUI that shows info on player2 and player1 can click on a button that will make a GUI appear on player2's screen.</p>
| 129916 | ||||||||
0 | How do I fix my copy and paste problem? | 25568705 | guestnot99 | 112 | 2014-05-17 23:34:25 | <p>I have a problem with the copying and pasteing objects and models in roblox studio.</p>
<p>Here is the situation. When I cut out a block in the workspace and highlight a different block the block that I cut should have been transfered above the different block.</p>
<p>But when I play it suddenly re exsisted back to ... | 5011 | ||||||||
0 | [Solved]How to remove tool from inventory after being used?? | 433962773 | theking66hayday | 324 | 2022-10-30 15:46:06 | <p>Hi I made a firework system, but I want to know how I remove it from a players inventory when they use it once.</p>
| 132086 | ||||||||
0 | How does one create a randomizer game? Me and my friend need help. | 40759526 | PynMan | 0 | 2021-05-05 00:33:33 | <p>We are both new to scripting and decided to attempt to create a game which gives a random gun sword and miscellaneous item on each spawn. We have tried pretty much every tutorial we could find and none seem to work if anyone knows how to help us with this I would be very grateful. :)</p>
| 123110 | ||||||||
1 | If a player owns a gamepass, is there a way to change the value of an Int value? | 413309360 | fishboy141516 | 12 | 2023-01-15 19:35:21 | <p>recently, I've been making a game. Over time, water drains out of a tree and you have to refill it.
however, I wanted to make a gamepass that gives the tree infinite water. Right now, the script refuses to work for some reason even though there is no errors. Can anyone help?</p>
<p>SCRIPT:
local Players = game:GetSe... | 132851 | ||||||||
0 | Script Doesnt Change Transparency Of PlayerGui Then Kick Player? | 1680108820 | JmoneyPlayzOfficial | 49 | 2023-03-08 07:45:18 | <p><em>again idk what to title this</em></p>
<p>what this script is supposed to do is it'll get the player added, and it will detect the value of the second value, if the value is below 10, it will slowly make the sound in <code>Workspace</code> louder and will slowly change the transparency in <code>PlayerGui</code>, ... | 133159 | ||||||||
3 | How to reference a player using a text box? | 566296650 | raid6n | 2309 | 2019-09-21 17:16:09 | <p>**Hello! I am currently having trouble with my script.</p>
<p>This is what it looks like:</p>
<pre class='brush: lua'>local function Name(name)
for _, player in pairs(game:GetService("Players"):GetPlayers()) do
if player.Name:lower() == name:lower() then
return player
end
end
end
script.Parent... | 87751 | 1 | 81327 | 0 | 50163782 | n7e | 5118 | 2019-09-21 17:48:10 | <p>Here's the script, but I'm not sure why you are getting the player object. Either way, you can get the player object by doing this:</p>
<pre class='brush: lua'>player = game.Players:FindFirstChild(nameOfPlayerGoesHere)
</pre>
<p>Instead of having the function.</p>
<p>Here's the code anyway:</p>
<pre class='brush: lu... |
4 | Should I use spawn(f) or coroutine.wrap(f)? | 111034902 | MightyQuestionAsker | 297 | 2016-08-10 20:36:40 | <p>I'm pretty sure I have the differences between the two understood, but correct me if I'm wrong:</p>
<ul>
<li><strong>Spawn</strong></li>
</ul>
<p>Basically a faster way to <em>create</em> a coroutine, along with calling <code>coroutine.yield</code> before it executes.</p>
<ul>
<li><strong>Coroutine.wrap</strong></li... | 34385 | 1 | 37062 | 2 | 386992 | BlueTaslem | 18071 | 2016-08-11 05:17:02 | <h1>In a sentence: use <code>spawn</code></h1>
<p>If your code does not use <code>coroutine.yield</code>, you do not have business using the <code>coroutine</code> library.</p>
<p>Use <code>spawn</code>.</p>
<hr/>
<h1>Why</h1>
<p>Lua is single-threaded. Only one piece of code runs at a time.</p>
<p>A coroutine can sign... |
0 | Can I resize mobile buttons (ContextActionService)? | 481508551 | Theroofypidgeot | 21 | 2019-03-02 15:17:23 | <p>Hello,
lately, I've been experimenting with ContextActionService using the wiki. It went fairly well until I encountered a problem. I couldn't find how to resize mobile buttons. How would I do this?</p>
<p>Is it even possible to do this?</p>
| 77090 | ||||||||
0 | How do I make this happen locally? | 37745860 | BunjiBloxxer | 51 | 2022-10-24 23:09:46 | <p>This script makes a part's (pointPart's) color change from blue to green, makes 2 models transparent, adds one point to the leaderboard when someone touches pointPart, and makes it so nobody can get a leaderstat point by touching pointPart again. I want to make the color change and the transparency change locally, n... | 132030 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.