#How the fricking frodackle do I get the player on server side

1 messages · Page 1 of 1 (latest)

lunar arrow
#

I'm making this script for a lil game of mine, and as you can see, it searches for the player.
Now I do know that I can't use LocalPlayer on the server, but I also don't know what's there to be used.

wraith idol
#

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)

urban rose
lunar arrow
#

ok ty

urban rose
#

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

lunar arrow
#

oh dont worry i got it figured out

#

but while youre here...

#

could you tell me with another thing?

urban rose
lunar arrow
#

one sec

lunar arrow
# urban rose What?

in another script i try to get the text out of a text label, but with this setup, it doesnt detect it

lunar arrow
urban rose
#

Like the property name

lunar arrow
#

wait what

#

NO WAY I WROTE IT WORONG

urban rose
#

💀

#

Happens to the best of us

lunar arrow
#

oh well, thanks for the advice c:

urban rose
#

I accidentally once wrote VIsible and used like an hour to figure out what was wrong

violet pollenBOT
#

studio** You are now Level 4! **studio