How to trigger animation when button is clicked?
Not really a scripting question, but I have a script that plays an animation, but no one else can actually "do" the animation, because they do not own the animation. Is there a way to work around this? Here's my code btw:
01 | script.Parent.Jump.MouseButton 1 Click:Connect( function () |
02 | animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(game.Workspace.JumpAnim) |
06 | script.Parent.Cheer.MouseButton 1 Click:Connect( function () |
07 | animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(game.Workspace.CheerAnim) |
11 | script.Parent.Wave.MouseButton 1 Click:Connect( function () |
12 | animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(game.Workspace.WaveAnim) |
16 | script.Parent.Kick.MouseButton 1 Click:Connect( function () |
17 | animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(game.Workspace.KickAnim) |
21 | script.Parent.Float.MouseButton 1 Click:Connect( function () |
22 | animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(game.Workspace.FloatAnim) |