Is there a way to make a script go after another script

Hello!

I am a new developer and, I am currently making a game but, I need help. How do you make a script go after another one? For Example, I have a script that makes platforms move up but after the platforms finish I want another script to go. Could anyone help?

Thanks

3 Likes

You can use changing the Disabled property on the scripts. Once one of them finishes, change the disabled property to the opposite of what it currently is on the script, and do the same for the other script.

Make sure you do it on the other script first, because you will be disabling the script that changes the other one to be enabled, making the other one not get enabled and not work.

3 Likes

Enable or Disable scripts manually, or you can use a BindableEvent | Roblox Creator Documentation and have the first script fire the event and the second script listen. For this implementation I’d just try disabling and enabling the second script manually and see where that takes you.

2 Likes

Thanks! These helped a lot! :+1: :+1: :+1: