i made a part touch script that when you touch the part the animation is going to start but it doesnt work heres my script:
local animation = Instance.new("Animation")
animation.AnimationId = "https://www.roblox.com/Asset?ID=01480845354"
local trackanimation = nil
local playability = true
function playanimation(AnimationSource)
if playability==true then
local plr = game.Players.LocalPlayer
trackanimation = plr.Character.Humanoid:LoadAnimation(animation)
trackanimation.KeyframeReached:connect(function(kf)
print('Working')
end)
trackanimation:Play()
end
end
script.Parent.Touched:connect(playanimation)

1 comment
just use this as a normal script