Answered by
8 years ago Edited 8 years ago
I'm confused as to whether you are just trying to set your rank or everyone who joins. If you're just setting your rank then it'd be something like this:
1 | local textLabel = script.Parent:WaitForChild( 'TextLabel' ) |
2 | local player = game.Players.LocalPlayer |
3 | textLabel.Text = player:GetRoleInGroup( 919349 ) |
If you're trying to set it for everything, (then you'd need to use ChildAdded as PlayerAdded doesn't work in LocalScripts) - edit. I guess PlayerAdded works in LocalScripts now. It'd be something like this, but with your script so that it doesn't change the same TextLabel, but makes a new one and sets it.
01 | local textLabel = script.Parent:WaitForChild( 'TextLabel' ) |
03 | local function setText(player) |
04 | textLabel.Text = player:GetRoleInGroup( 919349 ) |
07 | game.Players.PlayerAdded:connect( function (player) |
12 | for i,v in pairs (game.Players:GetPlayers()) do |