How would i make a script that displays your role in a group in a screen gui, the code i have doesnt work.
function onPlayerRespawned(newPlayer)
script.Parent.Text = newPlayer:GetRoleInGroup(3569513)
end
game.Players.PlayerAdded:connect(onPlayerRespawned)

1 comment
Ok i don't quite understand server-side functions completely but this helped.