Help with tools

i want my items not erase when i reset my chracter

1 Like

You can do this by placing the tool inside of StarterPack. If you’re looking to do this via script, you could look into using CharacterAdded.

1 Like

but i make it so you get the item if you buy a gamepass i dont want everybody when they join to get it

1 Like

In this case, you would want to utilize CharacterAdded to listen for when the player’s character loads in.

Documentation

1 Like

but how do i get my items from my backpack

You would probably want to store the tool in either ReplicatedStorage or ServerStorage. When the CharacterAdded event is fired, clone the tool and parent it to the player’s backpack if they own the gamepass.

Hey! What you could do is check if the player has the gamepass as soon as they join the game. If they do, you will clone the tool that’s stored in the ReplicatedStorage or ServerStorage, and add it to their StarterGear. Here’s a simple example:

game.Players.PlayerAdded:Connect(function(player)
	local hasGamepass = true -- for now, we'll set it to true, in a real scenario, you'd want to check if the player actually has the gamepass
	if hasGamepass then
		local tool = game.ReplicatedStorage.Tool:Clone()
		tool.Parent = player.StarterGear
	end
end)