I made a overhead GUI.
It’s a GUI thats over the players head.
The code use to work before I put the elseif statements. Maybe I did it wrong?
Heres the code.
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
local GuiClone = script.OverheadGui:Clone()
GuiClone.Parent = Character.Head
local InformationLabel = GuiClone.InformationLabel
if Player.leaderstats.Wins.Value >= 100 then
InformationLabel.TextColor3 = Color3.new(0.87451, 0, 0)
InformationLabel.Text = Player.DisplayName .. " - GOAT"
elseif Player.leaderstats.Wins.Value >= 75 then
InformationLabel.TextColor3 = Color3.new(0.552941, 0, 0.831373)
InformationLabel.Text = Player.DisplayName .. " - Pro"
elseif Player.leaderstats.Wins.Value >= 60 then
InformationLabel.TextColor3 = Color3.new(0.552941, 0, 0.831373)
InformationLabel.Text = Player.DisplayName .. " - Insane"
elseif Player.leaderstats.Wins.Value >= 50 then
InformationLabel.TextColor3 = Color3.new(0.552941, 0, 0.831373)
InformationLabel.Text = Player.DisplayName .. " - Elite"
elseif Player.leaderstats.Wins.Value >= 35 then
InformationLabel.TextColor3 = Color3.new(0, 0, 1)
InformationLabel.Text = Player.DisplayName .. " - Incredibe"
elseif Player.leaderstats.Wins.Value >= 25 then
InformationLabel.TextColor3 = Color3.new(0, 0, 1)
InformationLabel.Text = Player.DisplayName .. " - Awesome"
elseif Player.leaderstats.Wins.Value >= 10 then
InformationLabel.TextColor3 = Color3.new(0, 0, 1)
InformationLabel.Text = Player.DisplayName .. " - Amazing"
elseif Player.leaderstats.Wins.Value >= 5 then
InformationLabel.TextColor3 = Color3.new(0, 0, 0)
InformationLabel.Text = Player.DisplayName .. " - Meh"
elseif Player.leaderstats.Wins.Value >= 0 then
InformationLabel.TextColor3 = Color3.new(0, 0, 0)
InformationLabel.Text = Player.DisplayName .. " - Beginner"
else
print("Something Wrong Happened")
end
end)
end)
There’s no overhead GUI over your head.
The else print does not print either.
No errors.
My leaderstats in 6 win btw.