So I'm new to scripting and I tried to do a script but it unfortunately did not work. Here is what I did:
local part = game.Workspace.Camera1.Light while true do part.transparency = .5 wait(1) part.transpareny = 1 wait(1) end
So I wanted the part to change transparency every second but this script does not seem to work. Nothing shows anything wrong in the output. What did I do wrong? The script is under the Game.Workspace.Camera1.Light.Script
Another Question: Can I also change the brightness of the light every second along with the transparency? Thank you :)
local part = game.Workspace.Camera1.Light while true do part.Transparency = .5 wait(1) part.Transparency = 1 wait(1) end
First of all you had "part.transparency = .5" The t Need's to be capital.
2nd Of all you had "part.transpareny = 1
Tell me if that worked for you.
PointLights still shine reguardless of the transparency of the part. You need to set PointLight.Enabled
to either true or false, or you could set PointLight.Range
.
local part = game.Workspace.Camera1.Light while true do part.Range = 8 wait(1) part.Range = 0 wait(1) end