I am trying to make a over head gui so if someone picks a team the team name will be over there head and on the game leaderboard this is what i got atm
valor = game.StarterGui.Choose.Frame.Valor
mystic = game.StarterGui.Choose.Frame.Mystic
instinct = game.StarterGui.Choose.Frame.Instinct
remove = game.StarterGui.Choose
game.Players.PlayerAdded:connect(onPlayerRespawned)
function onPlayerRespawned(newPlayer)
wait(1)
if
valor.clickedon then do
gui = Instance.new("BillboardGui")
gui.Parent=newPlayer.Character.Head
gui.Adornee=newPlayer.Character.Head
gui.Size=UDim2.new(3,0,2,0)
gui.StudsOffset=Vector3.new(0,2,0)
words = Instance.new("TextLabel")
words.Text = Team Valor
words.Position=UDim2.new(-0.125,0,-0.25,0)
words.BackgroundTransparency = 1
words.Parent=gui
wait(1)
valor.Visible = Disable
end
end
end
function onPlayerEntered(newPlayer)
newPlayer.Changed:connect(function (property)
if (property == "Character") then
onPlayerRespawned(newPlayer)
end
end)
end
game.Players.PlayerAdded:connect(onPlayerEntered)
Please can you fix it c;

1 comment
Can you include some infomation about the problem?