So I have this script that is supposed to work... I made it off of roblox's animation editor, and yes, i did export it to roblox
anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://1147622378"
-----------------------
Mouse.Button1Down:Connect(function()
local s = plyr.Character.Humanoid:LoadAnimation(anim)
s:Play()
print("played")
end)
no errors are displayed, but "Played" is displayed. Im making an animation for a viewmodel...

3 comments
I double checked, and yes this is the right id from the roblox page
was
Mouseorplyrdefined?yes, like i said no errors were displayed so you could of obiously assume that i did define them