Hello Developers. Recently, I made an Interview Center for myself, not a group, and tried adding an OverheadGui on characters. A friend recommended me a script, which I reviewed of course, he also used it on at his place. But it somehow doesn’t work me, on 2 of my places. When another friend of mine joins, they get an Overhead unlike me. Which is kinda weird to me. I have seen some global unknowns which I’ve fixed already. I tried putting the script in a showcase, and it still didn’t work. Why is it only me, who doesn’t get the OverheadGui above my head?
Script:
local billboardgui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
if player.UserId == 179630308 then
local clonedgui = billboardgui:Clone()
clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
clonedgui.TextLabel.Text = "Crashstyler747 | Owner"
clonedgui.TextLabel.TextColor3 = Color3.fromRGB(255,255,0)
end
if player.UserId == 149953103 then
local clonedgui = billboardgui:Clone()
clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
clonedgui.TextLabel.Text = "Swaggyist | Co-Owner"
clonedgui.TextLabel.TextColor3 = Color3.fromRGB(255,255,0)
end
if player.UserId == 103100262 then
local clonedgui = billboardgui:Clone()
clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
clonedgui.TextLabel.Text = "Le_Waffles | Head Supervisor"
clonedgui.TextLabel.TextColor3 = Color3.fromRGB(0, 0, 255)
end
if player.UserId == 150389464 then
local clonedgui = billboardgui:Clone()
clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
clonedgui.TextLabel.Text = "Kodinx | Head Supervisor"
clonedgui.TextLabel.TextColor3 = Color3.fromRGB(0, 0, 255)
end
if player.UserId == 88316593 then
local clonedgui = billboardgui:Clone()
clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
clonedgui.TextLabel.Text = "tige1111 | Head Supervisor"
clonedgui.TextLabel.TextColor3 = Color3.fromRGB(0, 0, 255)
end
-- All special titles
if character.Head:FindFirstChild("BillboardGui") then
else
if player:IsInGroup(4125860) then
local clonedgui = billboardgui:Clone()
clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
clonedgui.TextLabel.Text = "Member"
clonedgui.TextLabel.TextColor3 = Color3.fromRGB(14, 14, 14)
end
end
--Group member title
if character.Head:FindFirstChild("BillboardGui") then
else
local clonedgui = billboardgui:Clone()
clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
clonedgui.TextLabel.Text = "Visitor"
clonedgui.TextLabel.TextColor3 = Color3.fromRGB(247, 247, 247)
end
--All others
end)
I tried to do it without download and then I downloaded it, well I’ll try it with a friend or a random person to check if your OverheadGui works for them, because it doesn’t work for me. IT’s strange that it only doesn’t work for me.
You have to follow the format given there. Please do not just ask “this script is broken, how do I fix it?” if you haven’t written the script to begin with. This is for scripting support, i.e. to help you learn how to fix the code, not just fixing the code in itself.