local animation = Instance.new("Animation")
animation.AnimationId = "http://roblox.com/Asset?ID=2017727992"
local player = game.Players.LocalPlayer
local char = player.Character
if not player.Character then
repeat wait () until player.Character
end
local animTrack = player.char.Humanoid:Load animation(animation)
function touch(hit)
animTrack:Play()
end
game.Workspace.Base.Touched:connect(touch)
What this is supposed to do is play a swimming animation when the player touches the ocean, in which Base in the workspace is the ocean, and yes it is a part. Nothing appears in the output log as an error, but the animation doesn't play. I even tested it with another part and it didn't work. I asked my friend who can script and he said the animation needs to the load the current character. As of now, I cant test any scripts so I have to be on mobile. I would appreciate any feedback.

1 comment
doesnt work. no errors appear in the output log but the animation doesnt play