local e=require(script.distance_fading)local M=require(((game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")):WaitForChild("\076\117\097\116\114\105")):WaitForChild("\115\101\114\118\105\099\101\115"))local v=require(M.replicatedStorage.luatri_config)e.setup()task.synchronize()if v.SERIAL_MODE then M.run.Heartbeat:Connect(e.onHeartbeat)else M.run.Heartbeat:ConnectParallel(e.onHeartbeat)end
local fader = require(script.distance_fading)
local svc = require(game:GetService("ReplicatedStorage"):WaitForChild("Luatri"):WaitForChild("services"))
local cfg = require(svc.replicatedStorage.luatri_config)

fader.setup()

task.synchronize()

if cfg.SERIAL_MODE then
    svc.run.Heartbeat:Connect(fader.onHeartbeat)
else
    svc.run.Heartbeat:ConnectParallel(fader.onHeartbeat)
end