Hi! I'm working on my game and I added an Owner overhead GUI for myself and it worked! but I wanted to do a member overhead GUI too but it did not work. My friend tested the game while he is in my group and he says it doesn't work. The owner rank only works but the member doesn't. I tried putting both if statements in one script (the if statements are for GUIS) and they didn't work and I tried putting one if statement in one script and it still did not work. Here are the two scripts:

-- the one that worked
local part = game.ServerStorage:WaitForChild("BillboardGui")

game.Players.PlayerAdded:Connect(function(player)
	local char = player.Character
	local clonedgui = part:Clone()
    		if player.Name == "keiujir" then	
			clonedgui.TextLabel.Text = "Owner"
			clonedgui.TextLabel.TextColor3 = Color3.fromRGB(255,255,0)
			clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head

    end
end)

-- the one that did not work
local part = game.ServerStorage:WaitForChild("BillboardGui")

game.Players.PlayerAdded:Connect(function(player)
	local char = player.Character
	local clonedgui = part:Clone()
    		if player.Name ~= "keiujir" and player:IsInGroup(5903109) then	
			clonedgui.TextLabel.Text = "Member"
		clonedgui.TextLabel.TextColor3 = Color3.fromRGB(13,17,232)
		clonedgui.Adornee = game.Workspace:WaitForChild(player.Name).Head
			clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
    end
end)

3 comments

0

are there any errors that come out of the second script if so what are they?

0

Well. I do not know. I may check since i did not check out anything in the second script since i already got the owner tag.

0

There are no errors in the second script.