So, it seems the only way to make a script sense a Numbervalue is by constantly checking. However doing this seems to loop the script over and over, which is a problem since it deletes and copys.
no errors in output. I assume the reason it isnt working is because it creates multiple copies of 1 model so the script dosent know which one to delete.
TL:DR only way to detect number change is a loop to constantly check but I need it to only run the script once if the number is that value.
local AI = script.Parent.Parent.Timer.PositionNumber
local Lighting = game.ServerStorage
local World = game.Workspace
local Footstep = script.Parent.Parent.Timer.RemoteFunction.Footstep.Sound
while true do
wait()
if AI.Value == 1 then
script.Parent.Transparency = 1
Lighting.Walk1:Clone().Parent = game.Workspace
World.Neutral:Destroy()
Footstep:Play()
end
end

2 comments
im sorry, but that is not what im trying to do. adding 1 to the counter would make it the next phase, but I want randomization only.
oh ok