I'm trying to figure out how to make a scoreboard that doesn't stop counting until you die.
wait()
local a = 0
local c = script.Parent.Text
game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(char)
if char:FindFirstChild("Humanoid").Health >= 100 then
while true do
a = a+1
c = "High Score: "..a
end
elseif char:FindFirstChild("Humanoid").Health == 0 then
script.Parent.Text = a
end
end)
end)

1 comment
You should explain your answer. Otherwise, OP won't learn anything.