I just dont want to make it hard for me
✓ ANSWER ACCEPTED
Is there a way i can get the humanoid without the script being in the StarterCharacterScripts?
2 answers
✓ Accepted answer
#Local Script 1 Way
local Humanoid = game.Players.LocalPlayer.Character:WaitForChild("Humanoid")
#Local Script 2 Way
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(chr)
local Humanoid = chr:WaitForChild("Humanoid")
end)
end)
#Server Script
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(chr)
local Humanoid = chr:WaitForChild("Humanoid")
end)
end)
That's every way you can use to get a player's humanoid without using StarterCharacterScripts.
You can ask more question on my discord:
#Blue Duck#8902
dis one way to get humanoid
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local Humanoid = character:WaitForChild('Humanoid')
end)
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
