Overhead GUI problem(No output errors)

local groupId = 6237332
local marketPlaceService = game:GetService("MarketplaceService")
local TweenService = game:GetService("TweenService")
local rainbowGamepassID = 10589450
local premiumGamepassID = 10045519
local texteroo = "Premium"

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(Character)
		local guiClone = script.BillboardGui:Clone()
		guiClone.Parent = Character.Head 
		
		local informationLabel = guiClone.TextLabel 
		
		local playerRank = player:GetRoleInGroup(groupId)
		if  marketPlaceService:UserOwnsGamePassAsync(player.UserId,premiumGamepassID) or player.Name == "U_npuggedDev" then
			informationLabel.Text = texteroo.."\n"..player.Name.."\n"..playerRank
		else
			informationLabel.Text = "\n"..player.Name.."\n"..playerRank
		end
		if marketPlaceService:UserOwnsGamePassAsync(player.UserId,rainbowGamepassID) or player.Name == "U_npluggedDev" then
			while true do
				local color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
				local colorTween = TweenService:Create(informationLabel,TweenInfo.new(3),{TextColor3 = color})
				colorTween:Play()
				wait(3)
			end
		end
		
	end)
end)

this isnt showing the premium thing. There isnt any output errors.

1 Like

This is pretty long so what I can tell you is:

When things like this happen add prints to your if and else statements and you should be able to locate the problem.