im stupid and i don't know how to do that, i also don't even know if it works soooo
If anyone knows, please answer, I'd appreciate it a lot
im stupid and i don't know how to do that, i also don't even know if it works soooo
If anyone knows, please answer, I'd appreciate it a lot
specific player
local Players = game:GetService("Players")
-- get specific player
local player = Players:FindFirstChild("InsertPlayerNameHere")
-- to get the character
local character = player.Character
-- to get the humanoid from character
local humanoid = character:WaitForChild("Humanoid")
every player that joined the game
local Players = game:GetService("Players")
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.
3 comments
I am stupid. Sorry for wasting your time like this, but what i meant was to get the character and Humanoid of any player using a server script, not just a specific one. Again sorry for not stating my question correctly and therefore wasting your time
you're not wasting my time don't worry, and you're not stupid. i added another script that gets the character and humanoid of any player in serverscript
thank you so much you have saved me a lot of time