I am making a group rank bot (I have done most of the api stuff) but I need the local player's user ID
here's the script I got rn:
local UserId = game.Players.LocalPlayer.PlayerID
You almost had it
local UserId = game.Players.LocalPlayer.UserId