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

Part Light Enabling?

Asked by 9 years ago

What I am trying to do is when 2 Parts are a certain Size the Light is not Enabled. But if they aren't that size, it is enabled. Not working :/ And help here?

C1 = script.Parent.C1
C2 = script.Parent.C2
Light = script.Parent.Light.SurfaceL

if C1 and C2.Size == Vector3(3.53, 8.06, 0.2) then
    Light.Enabled = false
else
    Light.Enabled = true
end

1 answer

Log in to vote
-1
Answered by 9 years ago
C1 = script.Parent.C1
C2 = script.Parent.C2
Light = script.Parent.Light.SurfaceL

if C1.Size.X == 3.53 and C2.Size.X == 3.53 then
    Light.Enabled = false
else
    Light.Enabled = true
end

Ad

Answer this question