Universal Script 📌
82 Views
60 Executions

Ambient Hook for Brighter Days

Universal Script 📌
xyvk
xyvk10K executions
5 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Changes Ambience and bypasses detections Could make nights brigher

Updates

  1. Script edited: Update script

View Raw
local EnableAmbience = true
local SpoofColor = Color3.new(1, 1, 1)

local Lighting = game:GetService("Lighting")
	-- Lighting does not need to be clonerefed because: Find out later brah
local Ambience = Lighting.Ambient

local OldIndex
OldIndex = hookmetamethod(game, "__index", newcclosure(function(Object, Property)
    if not EnableAmbience then
        return OldIndex(Object, Property)
    end

    if Object == Lighting and Property == "Ambient" then
        return Ambience
    end

    return OldIndex(Object, Property)
end))

Lighting:GetPropertyChangedSignal("Ambient"):Connect(function()
    local Current = OldIndex(Lighting, "Ambient")

    if Current ~= SpoofColor then
        Ambience = Current
    end
end)

Lighting.Ambient = SpoofColor

-- print(Lighting.Ambient)
	-- Returns the original game value


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!