This is my first time making a game, so keep in mind I have no clue how to script and how to fix this. I am making a dance game in Roblox where when you click on a tool the character does the animation. I used a script I found that is:
script.Parent.Selected:connect(function(m) m.Button1Down:connect(function() hum = game.Players.LocalPlayer.Character.Humanoid anim_feet = hum:LoadAnimation(script.Parent.Animation) current = anim_feet current:Play() end) end)
This script works fine in Roblox Studio, but when I go into my game in Roblox, it doesn't work. Is there a way to fix this script to make it work in Roblox? I'd be very thankful if someone could help me out.

2 comments
That still doesn't seem to be working for me.
any errors in the output?