how do I make an Item doesn't get taken away when you die?
COMMUNITY QUESTION
How do I make an Item that saves when you die?
2 answers
Every player automatically has a StarterGear container. Any tool parented to here will automatically be given each time the player spawns.
Here's a solution for your problem it is very simple :
-- Variables
local Tool = script.Parent
local Player = game.Players.LocalPlayer
local Backpack = Player:FindFirstChild("Backpack")
-- Creating a function that basically gives the player the tool :
function MoveScript()
wait() -- Waiting a bit so it doesn't say "Something unexpected tried to change the parent"
Tool.Parent = Backpack -- Setting the parent to the backpack
end
-- Calling The Function :
MoveScript()
1 comment
0
Why?
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
So, TLDR; Tool.Parent = Player.StarterGear
would I use a local script?
you'd use serverscript and playeradded
please accept answer if it solved your problem :)