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

How Do I Make The Script That Work Only When A Player Become A Morph?

Asked by
ImfaoXD 158
8 years ago

I Try To Make An Eyes Blink Script That Doesn't Work When The Morph Is In Workspace, But Work In Lighting If And Only When A Player Successfully Choose A Morph. Can You Help Me?

Here Is The Script That I Need Help With:

print("light loaded")

local light = script.Parent

while true do

1 light.Transparency = 0 2

3 wait(.15) 4

5 light.Transparency = 1 6

7 wait(1.8) end

1 answer

Log in to vote
0
Answered by 8 years ago

The scale of Transparency is 0-1 which decides if the Part is transparent or not. This also means that putting 1000000000 in the Transparency value would be the same as putting 1. One of the problem you had was wait() where you put a numeric value after the parenthesis(brackets).

local light = script.Parent.
while true do
light.Transparency = 0.2--I think you wanted 0.2 in here instead of 02 or 2.
wait(0.15)
light.Transparency = 1--There's no point in putting 16 in here since its will get you the same result as one.
wait(1.8)
end
Ad

Answer this question