Answered by
5 years ago Edited 5 years ago
Hello! There are a few ways you could go about this actually.
The first method is using Humanoid:LoadCharacter()
1 | local Player = game:GetService( "Players" ).LocalPlayer |
2 | local humanoid = Player.Character:FindFirstChild( "Humanoid" ) |
4 | humanoid:LoadCharacter() |
The second method you can use is changing the humanoids health to 0
1 | local Player = game:GetService( "Players" ).LocalPlayer |
2 | local humanoid = Player.Character:FindFirstChild( "Humanoid" ) |
The last method that I know of is using the humanoid TakeDamage function
1 | local Player = game:GetService( "Players" ).LocalPlayer |
2 | local humanoid = Player.Character:FindFirstChild( "Humanoid" ) |
4 | humanoid:TakeDamage( 100 ) |
I hope this was able to help you! Any questions? Comment down below, and I'll be glad to help!
Don't forget to mark as the solution if this helps you!