So im working on a game with team create , but i need that GUI to show up our ranks into the game , but this script just wont work , i did the bilboard gu , i did the text and how it was going to look , i put it into the ReplicatedStorage but still doesnt work , somebody help?
local billboardgui = game:GetService("ServerStorage"):Waitforchild("BillboardGui")
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
if player.Name == "MrJPgSwag" then
local clonedgui = billboardgui:Clone()
clonedgui.TextLabel.Text = "OWNER"
clonedgui.TextLabel.TextColor3 = Color3.fromRGB(165,7,163)
clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
end
end)

3 comments
The "end" has to be lined up with "if player.Name"
And the player.Character has to be lined up with end)
Still doesnt work