local hum = script.Parent.Parent.ShopOwner.Humanoid local anim = hum:LoadAnimation(script.Parent.Parent.ShopOwner.WaveAnim) function onTouch(part) local humanoid = part.Parent:FindFirstChild("Humanoid") anim:Play() end script.Parent.Touched:connect(onTouch)
local hum = script.Parent.Parent.ShopOwner.Humanoid local db = true local amountOFdbSECS = 3 --change it to the amount you want local anim = hum:LoadAnimation(script.Parent.Parent.ShopOwner.WaveAnim) function onTouch(part) if db == true then db = false local humanoid = part.Parent:FindFirstChild("Humanoid") anim:Play() end wait(amountOFdbSECS) db = true end script.Parent.Touched:Connect(onTouch)