Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I make a script execute another script?

Asked by 6 years ago

Hola, necesito un script para llamar a otro o más que ese script que se está ejecutando. Llamar a otro script.

Please look everywhere and nothing


On the other hand, sorry if I write badly ... I speak Spanish

2 answers

Log in to vote
0
Answered by
Webm07 43
6 years ago

Use events to fire other scripts

Script: script.Parent.Event:Fire() --Depends on where you put your event

Another script

function X()

end

script.Parent.Event.Event:connect(X)

You can modify the script to fit your needs Remember to insert the event first The icon is a lighting bolt.

Hope this helped!

Ad
Log in to vote
0
Answered by 6 years ago

You could make your script that is going to be exicuted only work when a variable in that script is a certain number and then in another script increase the variable to "exicute" it.

Answer this question