I want to make a Light that flickers between being on and off. I currently have a Part with a PointLight and a Script inside of it. The Script is not inside the PointLight.
Here is the code:
local LightPart = game.workspace.LightPart
local PointLight = game.Workspace.LightPart.PointLight
while true do
wait(.1)
LightPart.Material.Enum = SmoothPlastic
PointLight.Enabled = false
wait(.1)
LightPart.Material.Enum = Neon
PointLight.Enabled = true
end

1 comment
I’m sending you a friends req on Roblox accept it and we can go into studio together