local ReplicatedStorage = game:GetService(“ReplicatedStorage”)
local VolumetricLighting = ReplicatedStorage:WaitForChild(“VolumetricLighting”)
local Lighting = game:GetService(“Lighting”)
local RunService = game:GetService(“RunService”)
local Workspace = game:GetService(“Workspace”)
local Players = game:GetService(“Players”)
local LocalPlayer = Players.LocalPlayer
local function CreateVolumetricLight()
local newLight = Instance.new(“PointLight”)
newLight.Range = 500
newLight.Color = Color3.new(0.5, 0.5, 0.5)
newLight.Shadows = true
newLight.Brightness = 1
newLight.Enabled = false
local volumetric = Instance.new("BillboardGui")
volumetric.Size = UDim2.new(0, 500, 0, 500)
volumetric.LightInfluence = 1
volumetric.Enabled = true
volumetric.StudsOffset = Vector3.new(0, 100, 0)
volumetric.AlwaysOnTop = true
local image = Instance.new("ImageLabel")
image.Size = UDim2.new(1, 0, 1, 0)
image.BackgroundTransparency = 1
image.Image = "rbxassetid://1991493051"
image.ImageColor3 = Color3.new(1, 1, 1)
image.ImageTransparency = 0
image.Parent = volumetric
volumetric.Parent = newLight
return newLight
end
local function CreateLighting()
local newLighting = Instance.new(“PointLight”)
newLighting.Range = 500
newLighting.Color = Color3.new(1, 1, 1)
newLighting.Shadows = true
newLighting.Brightness = 1
newLighting.Enabled = true
return newLighting
end
local function RemoveLights()
for _, item in pairs