Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.