Hi, how do i get a player id from the only player in the server i dont seem to know how
thanks
Are you only planning to have one player in the game?
yes
)random words to fill the char limit)
Just do
local id = game:GetService("Players"):GetPlayers()[1].UserId
-- This gets the first player returned from the `GetPlayers()` method, then gets their userid
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.