✓ Accepted answer
You could see if it is correct by yourself
For crying out loud, that script is only for a player called "Player", and if there is no player called that, it breaks.
At least, however, you showed us a script so you actually attempted to do this. Now here's one thing you should always remember: Clone(), local and for are some of your best friends.
while true do
wait(60)
for _,player in pairs(game.Players:GetPlayers()) do
local GunD = game.ServerStorage.Deagle:Clone()
GunD.Parent = player.StarterGear
end
wait(40)
for _,player in pairs(game.Players:GetPlayers()) do
player.StarterGear:FindFirstChild("Deagle"):Destroy()
player.Character:FindFirstChild("Deagle"):Destroy()
end
end
1 comment
Why not test it and if you have any errors correct them yourself?