I have a script that changes the walking animation of a player when they join the game however I would like it so when a player clicks a gui it changes the walking animation rather than the player already spawning in with the custom animation. How would I do this?
Here is the current script I have:
game.Players.PlayerAdded:connect(function(player)
while not player.Character do wait() end
local character = player.Character
local animateScript = character.Animate
animateScript.run.RunAnim.AnimationId = 'http://www.roblox.com/asset/?id=3714190073'
end
