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

Light becomes enabled based on Brick transparency?

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

0

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

1 answer

✓ Accepted answer

It is because Transparency is measured from 0 - 1. So if you want to have a percentage of that just use decimals. Transparency = .8 . Hope this helps and have a great day scripting

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