I don't know how to play an animation when RMB is activated/ clicked. Please help. Thank you! <3
--LocalScript local plr = game.Players.LocalPlayer; local mouse = plr:GetMouse() --we got the mouse local ID = "put id of animation here" --make sure you only put the numbers mouse.Button2Up:Connect(function() --When we right click local anim = Instance.new("Animation") --makes an animation anim.AnimationId = "rbxassetid".. tostring(ID) --sets the ID local track = plr.Character.Humanoid:LoadAnimation(anim) --loads the track to the player's humanoid track:Play() --plays the animation end)
Please make an attempt to solve your problem, this isn't a request site.