ReplicatedStorage
ReplicatedStorage is a place where maps, tools, RemoteEvents, etc. are stored. For example, you can clone tools like this:
local tool = game.ReplicatedStorage.Tool:Clone()
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
tool.Parent = game.Players.LocalPlayer.Backpack
if hit.Parent.Humanoid.Health == 0 then
local resetscript = script:Clone()
restartscript.Parent = script.Parent
end
end
end)
This script will clone the tool and make the clone's parent the StarterPack. It also resets itself so it can give the tool to the player again after they die.
Create Your Own Website With Webador