-- if u want to use the script
local anim = script.Animation
local humanoid = script.Parent.Humanoid
local animTrack = humanoid:LoadAnimation(anim)
local debounce = nil
game.Workspace.Part.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player and debounce == nil then
debounce = true
animTrack:Play()
wait(1)
debounce = nil
end
end)