local RunService = game:GetService("RunService") local player = game:GetService("Players").LocalPlayer local bounds = workspace:WaitForChild("MapBounds") local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui")) gui.ResetOnSpawn = false local map = Instance.new("Frame", gui) map.AnchorPoint = Vector2.new(1, 0) map.Position = UDim2.new(1, -24, 0, 64) map.Size = UDim2.fromOffset(132, 132) map.BackgroundColor3 = Color3.fromRGB(17, 39, 67) local dot = Instance.new("Frame", map) dot.AnchorPoint = Vector2.new(0.5, 0.5) dot.Size = UDim2.fromOffset(9, 9) dot.BackgroundColor3 = Color3.fromRGB(66, 255, 208) RunService.RenderStepped:Connect(function() local root = player.Character and player.Character:FindFirstChild("HumanoidRootPart") dot.Visible = root ~= nil if not root then return end local p = bounds.CFrame:PointToObjectSpace(root.Position) dot.Position = UDim2.fromScale(math.clamp(0.5 + p.X / bounds.Size.X, 0.04, 0.96), math.clamp(0.5 + p.Z / bounds.Size.Z, 0.04, 0.96)) end)