The error is on line 1 : I think you want to have access to change the value property of "ZombiesLeft". What you're actually doing is that you're setting the value to the number of zombies left. By doing this you will get the number of ZombiesLeft. However, you will not be able to change it. The correct way of doing this is :
local zombiesleft = workspace.RoundSYSTEM.ZombiesLeft
while true do
wait(0.001)
script.Parent:WaitForChild("Humanoid").Died:Connect(function()
print('Zombie Died')
zombiesleft.Value -= 1
script:Destroy()
end)
end
Now it might work !
Hope this helped :)
2 comments
does it print "Zombie Died"
yes it does