The script is basically like this
Button.MouseButton1Click:Connect(function()
if not On then
Button.Image = "rbxassetid://5283175424"
CastShadow(false)
local Light = Instance.new("PointLight")
Light.Brightness = 1
Light.Range = 15
Light.Shadows = true
Light.Color = Color3.new(255, 255, 0) -- Basically a New Yeller color.
Light.Parent = Head
On = true
else
Button.Image = "rbxassetid://5283174905"
local Light = Head:FindFirstChild("PointLight")
if Light then
Light:Destroy()
end
On = false
CastShadow(true)
end
end)
However, When i run it in game. The point light instanced got this properties
This is run in Future ligthing technology. However this bug also occur in shadow map. While it just isn’t noticeable because of the shadow map technology