|
| 16 Jun 2012 10:49 AM |
| Make it so if a certain script doesn't exist then another one becomes enabled? |
|
|
| Report Abuse |
|
NeonBlox
|
  |
| Joined: 19 Oct 2008 |
| Total Posts: 1462 |
|
|
| 16 Jun 2012 10:59 AM |
if not game.Workspace:FindFirstChild("ScriptName") then --If it can't find it. game.Workspace.ScriptTwo.Enabled = true -- Make a different one enabled. end
The above code assumes the parent of both the scripts is workspace, you will have to change the "ScriptName" and "ScriptTwo" as well. If you want it to run repeatedly, enclose the code in a while loop. |
|
|
| Report Abuse |
|
| |