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

Part Light Enabling?

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

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

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