Ok so basically when they touch it will give thema random weapon out of serverstorage but it wont work.
RespawnTime = 1200
Debounce = false
script.Parent.Touched:connect(function (Hit)
local HumanoidIsFound = Hit.Parent:FindFirstChild("Humanoid")
local PlayerIsFound = game.Players:GetPlayerFromCharacter(Hit.Parent)
if Hit.Parent and HumanoidIsFound and HumanoidIsFound.Health > 0 and PlayerIsFound then
if not Debounce then
Debounce = true
local Weapon = game.ServerStorage(math.random())
if Weapon then
local newWeapon = Weapon:Clone()
newWeapon.Parent = PlayerIsFound.Backpack
else
Debounce = false
return
end
wait(RespawnTime)
Debounce = false
end
end
end)
