Help with a script!

Greetings! I have this script:

	OverHead['Player Rank'].Text = string.upper(Player:GetRoleInGroup(6784591))
	if game:GetService('MarketplaceService'):UserOwnsGamePassAsync(Player.UserId, PREMGamepassID) == true then
		OverHead['Player Name'].Text = string.upper '⭐ (Player.Name) ⭐'
	end

However, when I join the game, it shows as: :star: (Player.Name) :star:, and not :star: itilva8630 :star:.

Any idea on how I can fix this?

I’m new to scripting, apologies!

OverHead['Player Rank'].Text = string.upper(Player:GetRoleInGroup(6784591))
	if game:GetService('MarketplaceService'):UserOwnsGamePassAsync(Player.UserId, PREMGamepassID) == true then
		OverHead['Player Name'].Text = string.upper( "⭐" .. Player.Name.. "⭐")
	end

Try this.

1 Like

Thank you so much! :slight_smile:

Why would you need string.upper…? It has no need in this function and you can simply use a variable or remove the line. It adds to lag (Very small amounts) and it is unneeded in the script.