local LightPart = workspace.Park
script.Parent.MouseButton1Click:connect(function()
if LightPart:findFirstChild(LightPart.Name..'Light') then
LightPart:findFirstChild(LightPart.Name..'Light'):Destroy()
script.Parent.Text = 'Press to turn light on'
else
local light = Instance.new("PointLight", LightPart)
light.Name = LightPart.Name..'Light'
light.Range = 30
script.Parent.Text = 'Press to turn light off'
end
end)
When I turn the light on it is white. If I try going in "Play Solo" I turn the light on and edit the colour. When I turn it on and off again it goes back to white. Can someone suggestion something I need to add on the script and where to add it.

1 comment
Wrong. Look at my answer to see what is wrong with yours