Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there a way i can get the humanoid without the script being in the StarterCharacterScripts?

Asked by 3 years ago

I just dont want to make it hard for me

2 answers

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

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

Ad
Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

dis one way to get humanoid

game.Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)
        local Humanoid = character:WaitForChild('Humanoid')
    end)
end)

Answer this question