I have done it correctly it doesnt appear that I'm an owner of a game I did put everything correctly but the script is not doing what I wanted it to. This is my script:
local billboardgui = game:GetService("ServerStorage"):WaitForChild("BillBoardGui")
local clonedgui = billboardgui:Clone()
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded(function(char)
if player.Name == "oliwier1232" then
clonedgui.TextLabel.Text = "Game Creator"
clonedgui.TextLabel.TextColor3 = Color3.fromRGB(36, 154, 165)
clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
end
if player.Name == "My friends name" then -- I did put my friends name on it didn't work
clonedgui.TextLabel.Text = "Admin Helper"
clonedgui.TextLabel.TextColor3 = Color3.fromRGB(38, 255, 23)
clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
end
if player.Name == "My friends name" then -- I did put my friends name it didn't work
clonedgui.TextLabel.Text = "Admin Helper"
clonedgui.TextLabel.TextColor3 = Color3.fromRGB(0, 12, 255)
clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
end
if player.Name == "my friends name" then -- I did put my friends name it didn't work
clonedgui.TextLabel.Text = "Admin Helper"
clonedgui.TextLabel.TextColor3 = Color3.fromRGB(28, 244, 255)
clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
end
if player.Name == "my friends name" then -- I did put my friends name it didn't work
clonedgui.TextLabel.Text = "Admin Helper"
clonedgui.TextLabel.TextColor3 = Color3.fromRGB(255, 140, 250)
clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
end
end)
end)

1 comment
You might also need to set the https://wiki.roblox.com/index.php?title=API:Class/BillboardGui/Adornee