#How the fricking frodackle do I get the player on server side
1 messages · Page 1 of 1 (latest)
the first argument u pass to the server automatically is player
when u connect the function just add player in the parameters
function(player: Player)
You have to use game.Players.PlayerAdded:Connect(function(player)
end)
That detects when a player joins the game
ok ty
You do:
game.Players.PlayerAdded:Connect(function(player) -- This gets the player local character = player.Character or player.CharacterAdded:Wait() -- Waits for the character to be added local humanoid:Humanoid = character:WaitForChild("Humanoid") -- Specify that it's a humanoid end)
@lunar arrow
oh dont worry i got it figured out
but while youre here...
could you tell me with another thing?
What?
one sec
in another script i try to get the text out of a text label, but with this setup, it doesnt detect it
?
What errors does it show?
oh well, thanks for the advice c:
I accidentally once wrote VIsible and used like an hour to figure out what was wrong
** You are now Level 4! **