client,service=nil,nil return function(z,y)if y then setfenv(1,y)end local C=true local v local x=client.UI.Make("\087\105\110\100\111\119",{Name="\067\111\111\114\100\115",Title="\067\111\111\114\100\105\110\097\116\101\115",Icon=client.MatIcons.LocationOn;Size={200;60},Position=UDim2.new(0,10,1,-120);AllowMultiple=false,NoHide=true;Walls=true;CanKeepAlive=true;OnClose=function()C=false end})if x then local z=x:Add("\084\101\120\116\076\097\098\101\108",{Text="\046\046\046";BackgroundTransparency=1;TextSize=18;Size=UDim2.new(1,0,1,0),Position=UDim2.new(0,0,0,0)})v=x.gTable x:Ready()local function y()if service.Players.LocalPlayer.Character then local z=service.Players.LocalPlayer.Character:FindFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")if z then return string.format("\088\058 \037\046\050\102\n\089\058 \037\046\050\102\n\090\058 \037\046\050\102",z.Position.X,z.Position.Y,z.Position.Z)end end return"\046\046\046"end repeat z.Text=y()task.wait(.5)until not C or not v.Active end end
client, service = nil, nil

return function(data, env)
	if env then
		setfenv(1, env)
	end

	local active = true
	local gTable

	local window = client.UI.Make("Window", {
		Name = "Coords",
		Title = "Coordinates",
		Icon = client.MatIcons.LocationOn,
		Size = { 200, 60 },
		Position = UDim2.new(0, 10, 1, -120),
		AllowMultiple = false,
		NoHide = true,
		Walls = true,
		CanKeepAlive = true,
		OnClose = function()
			active = false
		end,
	})

	if window then
		local label = window:Add("TextLabel", {
			Text = "...",
			BackgroundTransparency = 1,
			TextSize = 18,
			Size = UDim2.new(1, 0, 1, 0),
			Position = UDim2.new(0, 0, 0, 0),
		})

		gTable = window.gTable
		window:Ready()

		local function updateCoords()
			if service.Players.LocalPlayer.Character then
				local rootPart = service.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
				if rootPart then
					return string.format("X: %.2f\nY: %.2f\nZ: %.2f", rootPart.Position.X, rootPart.Position.Y, rootPart.Position.Z)
				end
			end
			return "..."
		end

		repeat
			label.Text = updateCoords()
			task.wait(0.5)
		until not active or not gTable.Active
	end
end