Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why i cant disable the billboard gui so the title rank does not overwrite the other ranks?

i dont know what to do to make the other billboardgui does not show up at specified requirement and overwrited. you can check at line 43

local billboardgui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")
local billboards = game:GetService("ServerStorage"):WaitForChild("Billboards")
local billboardgui1 = game:GetService("ServerStorage"):WaitForChild("BillboardGui1")
local billboardgui2 = game:GetService("ServerStorage"):WaitForChild("BillboardGui2")

game.Players.PlayerAdded:Connect(function(player)
	
	player.CharacterAdded:Connect(function(character)
		
		local cloneguis = billboards:Clone()
		cloneguis.TextLabel.Text = player.Name
		cloneguis.TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
		cloneguis.Parent = game.Workspace:WaitForChild(player.Name).Head
		
		if game:GetService("MarketplaceService"):PlayerOwnsAsset(player,10995771) then
		local clonegui = billboardgui:Clone()
		clonegui.TextLabel.Text = "[VIP] Member"
		clonegui.TextLabel.TextColor3 = Color3.fromRGB(255, 255, 0)
		clonegui.Parent = game.Workspace:WaitForChild(player.Name).Head
		end
		
		if player.Name == "BlackBooks" then
		local clonegui = billboardgui:Clone()
		clonegui.TextLabel.Text = "[Game Owner]"
		clonegui.TextLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
			clonegui.Parent = game.Workspace:FindFirstChild(player.Name).Head
			
		end
		
		if player.Name == "SleepInBlack" then
		local clonegui = billboardgui:Clone()
		clonegui.TextLabel.Text = "[Owner's Partner]"
		clonegui.TextLabel.TextColor3 = Color3.fromRGB(255, 94, 94)
		clonegui.Parent = game.Workspace:WaitForChild(player.Name).Head
		end
		
		local cloneguid = billboardgui1:Clone()
		cloneguid.TextLabel.Text = "Pemula"
		cloneguid.TextLabel.TextColor3 = Color3.fromRGB(0, 255, 0)
		cloneguid.Parent = game.Workspace:WaitForChild(player.Name).Head
		
		
		if player.leaderstats.Kepintaran.Value >= 1 then
			if character.Head:FindFirstChild("BillboardGui") and character.Head:FindFirstChild("BillboardGui1") then
				game.Workspace(player.Name).Head.BillboardGui2.Enabled = false
				game.Workspace(player.Name).Head.BillboardGui1.Enabled = false
				else
					local clonegui = billboardgui2:Clone()
				clonegui.TextLabel.Text = "Pelajar Baru"
				clonegui.TextLabel.TextColor3 = Color3.fromRGB(204, 142, 105)
				clonegui.Parent = game.Workspace:WaitForChild(player.Name).Head
				player.leaderstats.Rank.Value = "Pelajar Baru"
				end
			end
	end)
end)

3 comments

0

What do you mean by overwrite

0

the title is on top of other tilte

0

You can move the Game owner and Partner Slightly higher, make a script with those two and the the others

1 answer

✓ Accepted answer

Move the game owner and game owner partner slightly higher and type this script Make sure the Owner and partner are at the same height, same goes for pemula and pelajar baru

local billboardgui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")
local billboards = game:GetService("ServerStorage"):WaitForChild("Billboards")
local billboardgui1 = game:GetService("ServerStorage"):WaitForChild("BillboardGui1")
local billboardgui2 = game:GetService("ServerStorage"):WaitForChild("BillboardGui2")
	 
game.Players.PlayerAdded:Connect(function(player)
	if player.Name ~= "BlackBooks" then
		if player.Name ~= "SleepInBlack" then
			print("Random Player")
		else
		        local clonegui = billboardgui:Clone()
		        clonegui.TextLabel.Text = "[Owner's Partner]"
	        	clonegui.TextLabel.TextColor3 = Color3.fromRGB(255, 94, 94)
		        clonegui.Parent = player.Character.Head or player:WaitForChild("Character").Head
	        end

	else
		local clonegui = billboardgui:Clone()
	        clonegui.TextLabel.Text = "[Game Owner]"
	        clonegui.TextLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
		clonegui.Parent = player.Character.Head or player:WaitForChild("Character").Head
	end
end)

Under that type this script

game.Players.PlayerAdded:Connect(function(player)
	local cloneguid = billboardgui1:Clone()
        cloneguid.TextLabel.Text = "Pemula"
        cloneguid.TextLabel.TextColor3 = Color3.fromRGB(0, 255, 0)
        cloneguid.Parent = player.Character.Head or player:WaitForChild("Character").Head
end)

I am not sure about the pemalu and pelajar baru

2 comments

0

i think i got the solution. Thankyou so much for your answer

0

You are welcome ????

This discussion is preserved as it was. New answers, comments, and votes are closed.