local N local f={}function f.Setup(z,f)N=f N.Text.FocusLost:Connect(function()local f=math.clamp(tonumber(N.Text.Text),20,z.Modules.Entity.EntitySettings.CacheRemoveDist-1)if f then N.Text.Text=f z.Modules.Entity.EntitySettings.MaxRenderDist=f else N.Text.Text=z.Modules.Entity.EntitySettings.MaxRenderDist end end)end return f
--Obj
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
