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

why is this sheild Value not going up every time its lower than the max sheild value?

Asked by
Tizzel40 243 Moderation Voter
5 years ago

here it is...……

game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)

    script.Parent = character:WaitForChild("ShieldPoints")
    wait(4)
print(script.Parent.Name)
script.Parent.Changed:Connect(function()

while true do
        wait(2)
        print("ha")
        if script.Parent.Value < script.Parent.MaxShieldPoints.Value then

            script.Parent.Value = script.Parent.Value + 1



            end


        end
end)
end)
end)
0
A little mini regeneration script Tizzel40 243 — 5y

Answer this question