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

How do you run another script from a differnt script?

Asked by 3 years ago

I am new to Roblox coding and i need to run a script from a different script but I'm having trouble with it.

0
What I think is, use a normal script or a local script. CedCed6 32 — 3y
0
but i dont know the code to do it thedemonninja12 2 — 3y
0
Use bindable events to fire another script from one script here is a link https://www.youtube.com/watch?v=U143ae3wKpk mikey2019d 43 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

There are many ways to do this depending on what you want to achieve. If you wanna communicate between two local scripts then you should use Bindable Events/Functions. Now if you want to communicate between local and server scripts then you should use Remote Events/Functions. On the other hand Module Scripts can be used to run functions and they will run locally or on the server depending on where you required it from.

Ad

Answer this question