Hello, I have been working on a script that allows me to be able to give a certain player an item and also make it so when they die it comes back, however the script I made won't work. Here is the script, please help.
local humanoid = game.ServerStorage.GodlyBow.Parent:FindFirstChildWhichIsA('Humanoid')
game.Players.PlayerAdded:Connect(function(plr)
local character = game.Workspace:WaitForChild(plr.Name)
if plr.Name == "ButterDoesFly" then
local g = game.ServerStorage.GodlyBow:Clone() -- GodlyBow Is my tool
g.Parent = plr.Backpack
else
if humanoid and humanoid.Health > 0 == true then
repeat
end
end
end)
