oof, Idk why the freak it isnt working. You can tell what im trying to do based off the script that I failed to make :P
while true do
if script.Parent.Transparency >= 8
script.Parent.SpotLight.Enabled = true
else script.Parent.SpotLight.Enabled = false
end
end

1 comment
Also an infinite loop should have a wait somewhere in it.