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

Is It Possible To Make An Eyes Blink Script That's Only Work When A Player Is In The Morph?

Asked by
ImfaoXD 158
8 years ago

How can I make an eyes blink script that only work when a player is in the morph? I don't want the game to be lag because of the morph being outside of work space with all the script running. I want to put the morph inside of lighting and make the eyes blink script to work only when a player successfully become a morph. But the morph is place in lighting. Not in work space. So how can I do that? Is it possible?

1 answer

Log in to vote
0
Answered by 8 years ago

Scripts in Lighting do not run. Same goes for ReplicatedStorage (which is where you're supposed to put models like that).

If they did run automatically, you would have two options:

  1. Set .Disabled = true for all the scripts you don't want to run automatically. When you spawn the model into the workspace, set .Disabled = false.
  2. Inside the script, don't do anything if the script is not a descendent of the workspace.
Ad

Answer this question