Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make an Item that saves when you die?

how do I make an Item doesn't get taken away 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.

4 comments

0

So, TLDR; Tool.Parent = Player.StarterGear

0

would I use a local script?

0

you'd use serverscript and playeradded

0

please accept answer if it solved your problem :)

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.