I have made a script to clone this script into a NumberValue, however, it never runs. It is disabled, cloned from Lighting into a value, then enabled so it can run. Here is the script:
--ServerScript
while true do
wait(5)
if script.Parent.Value >= 1 then
script.Parent.Value = script.Parent.Value - 1
else
repeat
wait(2)
script.Parent.Parent.DogeHealth.Value = script.Parent.Parent.DogeHealth.Value - 1
until script.Parent.Parent.DogeHealth.Value == 0
end
end
while true do
wait(5)
if script.Parent.Parent.DogeHealth.Value == 0 then
local Player = script.Parent.Parent.Parent
game.workspace[Player.Name.."Dog"].DogeMesh.VertexColor = Vector3.new(255,0,0)
game.workspace[Player.Name.."Dog"].Anchored = true
else
local Player = script.Parent.Parent.Parent.Name
game.workspace[Player.Name.."Dog"].VertexColor = Vector3.new(255,255,255)
game.workspace[Player.Name.."Dog"].Anchored = false
end
end

2 comments
Oh. I thought they would run seperatly. Thanks!
Wait, it still is not working. I don't know whats wrong with it.