Before my first question gets answered, I still need to fix that sometings wrong with my mana script for my mana gui, My mana wen't over to the max mana. Last time my friend made a mana script for my mana gui but its buggy. Here it is:
while true do
wait(0.9)
script.Parent.Mana.Value = script.Parent.Mana.Value +5
script.Parent.Text = "Mana: "..script.Parent.Mana.Value.."/"..script.Parent.MaxMana.Value
end
script.Parent.Changed:Connect(function()
if script.Parent.Mana.Value >= 1000 then --if mana went over maxmana then.
script.Parent.Mana.Value = 1000
script.Parent.Text = "Mana: "..script.Parent.Mana.Value.."/"..script.Parent.MaxMana.Value
wait()
end --this is the thing that won't work,
if script.Parent.Mana.Value == 0 or script.Parent.Mana.Value <= 1 then --if mana went -100 then.
script.Parent.Mana.Value = 0
script.Parent.Text = "Mana: "..script.Parent.Mana.Value.."/"..script.Parent.MaxMana.Value
wait()
end
end)

1 comment
so and I deleted the mana script from my friend, made a fresh new script (showed the code above) but I don't like the mana wen't over to the max mana.