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

How do you make one script activate another script?

Asked by 9 years ago

I have a script that when you shoot a target it actives another script that gives you the point but how do you make the first script activate another script..?

1 answer

Log in to vote
0
Answered by 9 years ago

You can just use the "Disabled" value of the script. While disabled, the script will not run, and when you enable it then it will run from the start.

A script like:

local ScriptToActivate = workspace.Script

ScriptToActivate.Disabled = false --It will run

Although the "ScriptToActivate" would have to be disabled in the first place, which can be done via the properties window.

0
Thanks! ATRGuestServices 5 — 9y
Ad

Answer this question