Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Uhh so i did lanturn and it doesn't work for some reason any help ?

Asked by 5 years ago
Edited 5 years ago

its kind of similar to roblox tutorial :P

local lightpart = script.Parent
local PointLight = lightpart.PointLight

while true do
    wait(0.1)
    if game.Lighthing:GetMinutesAfterMidNight() > 6 * 60 then
        lightpart.Material = Enum.Material.Plastic
        lightpart = BrickColor.new("Black")
        PointLight.Enabled = false
    end
    if game.Lighthing:GetMinutesAfterMidNight() > 18 * 60 then
        lightpart.Material = Enum.Material.Neon
        PointLight.Enabled = true
    end
end

photo of lanturn workspace https://imgur.com/a/6Mog72j

0
It should be "lightpart.BrickColor = BrickColor.new ("Black") " Gameplay28 139 — 5y

Answer this question