local G local r={}function r.Setup(t,r)G=r G.Text.FocusLost:Connect(function()local r=math.clamp(tonumber(G.Text.Text),20,t.Modules.Entity.EntitySettings.CacheRemoveDist-1)if r then G.Text.Text=r t.Modules.Entity.EntitySettings.MaxRenderDist=r else G.Text.Text=t.Modules.Entity.EntitySettings.MaxRenderDist end end)end return r

local Frame

local RenderDist = {}

function RenderDist:Setup(UI)
    Frame = UI
    
    Frame.Text.FocusLost:Connect(function()
        local text = math.clamp(tonumber(Frame.Text.Text), 20, self.Modules.Entity.EntitySettings.CacheRemoveDist - 1)
        if (text) then
            Frame.Text.Text = text
            self.Modules.Entity.EntitySettings.MaxRenderDist = text
        else 
            Frame.Text.Text = self.Modules.Entity.EntitySettings.MaxRenderDist
        end
    end)
end 

return RenderDist
