With this script, you can buy a bunch of gravitycoils (I DO NOT WANT THIS). I want it where you have to wait 10 secs before getting another one.
script.Parent.Touched:connect(function(hit)
local hum = hit.Parent:WaitForChild("Humanoid")
local tool = game.ServerStorage:WaitForChild("GravityCoil")
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
local stats = plr:WaitForChild("leaderstats").Tags
local d = false
if d == false then
if stats.Value >= 50 then
d = true
if hum then
tool:Clone().Parent = plr.Backpack
--stats.Value = stats.Value - 10
end
wait(10)
d = false
end
end
end)
