Answered by
4 years ago Edited 4 years ago
You can add a target part to your custom character and do a click detector on that part,
after that you can do this in a LocalScript
in the player GUI:
1 | game.Players.LocalPlayer.Character.TargetPart.ClickDetector.MouseClick:Connect( function () |
Animation:
( This is not replicated )
1 | game.Players.LocalPlayer.Character.TargetPart.ClickDetector.MouseClick:Connect( function () |
3 | local player = game.Players.LocalPlayer |
5 | local load = player.Character.Humanoid:LoadAnimation(animationid) |