I am currently making a tycoon game and I didn't know what to do like if I wanted to upgrade a conveyor so it would delete the current one and a new one would appear that is faster. Or a better question to ask would be how to like upgrade the conveyors to where it increases the speed of the conveyor.
✓ ANSWER ACCEPTED
How to make something dissapear??
1 answer
✓ Accepted answer
Destroy it.
Destroy is a member method of the Instance class which brutally annihilates the target Instance. In this case, this means that you can Destroy the old conveyor and add in the new one.
But how do I add the new conveyor?
Just Clone it and then change the Parent to Workspace. Then make sure that it's in the right position. An alternative is to make it visible by setting the Transparency to 0 and then the CanCollide to true, if it is already in position but intangible by default.
1 comment
0
I did that and it works like when I walk on it I go faster but my drops do not go faster, is that whats supposed to happen or did i do something wrong??
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
game.Workspace.Part:Destroy() will destroy the part
Thanks so much! I was trying that but it wouldn't work but I must've been doing it wrong lol!