Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

im tring to make a xp bar and respawn but it don t work can someone help?

Asked by 4 years ago
local du = workspace.Dummy
local hu = du.Humanoid
local xp = du.Xp.Value
local Text = script.Parent.Text
local frame = script.Parent.Parent.Size


if hu.Health<1 then
    script.Parent.text.Value = script.Parent.text.Value + xp
    wait(0.1)
    Text = script.Parent.text.Value
    frame = Vector2.new(0.40, xp / 10 +0.5)
    wait (3)
    hu.Health = 100
end

thats the script i don t get errors or anything idk why but i already tried with function humanoid.dead but it don t work as well

Answer this question