Hi, I am having an issue were if a new ski lift is added while an other one is running it removes at the same when the other ski lift removes. I am wondering if there was a way that I could make it so that issue does not happen?
--script 1
system = script.Parent
model = system.Lift --
backup = model:Clone()
regen = system.Regen
function checkRegen()
if regen.Value == 1 then
wait(1)
model = backup:Clone()
model.Parent = system
model:MakeJoints()
end
end
regen.Changed:connect(checkRegen)
This script Deletes the ski lift once it reaches the top of the line
wait(66)
game.Workspace.LiftSpawner.Lift:remove()
The problem is that if there is a ski lift at the top and one half way up they would both delete. I was wondering if anyone knew how to make the ski lift at the top despawn and keep the other one running until it got to the top? (remove() works the same as Destroy())
The problem is that when the script runs, there will be many models called “Lift”. The script will see that there are many models called “Lift”, so instead of breaking, it just chooses the first one it finds.
So, for me to figure out what you should do, tell me, where is this script?
wait(66)
game.Workspace.LiftSpawner.Lift:remove()
Is it inside the “Lift” model?
If the answer to the question above is “Yes.”, then change the script into this: