local Players = game:GetService("Players") local RunService = game:GetService("RunService") local player = Players.LocalPlayer local camera = workspace.CurrentCamera local function setupFlower(name) local flower = workspace:FindFirstChild(name, true) if not flower then return end -- Red highlight local highlight = Instance.new("Highlight") highlight.Name = "RedFlowerHighlight" highlight.FillColor = Color3.fromRGB(255, 0, 0) highlight.OutlineColor = Color3.fromRGB(255, 0, 0) highlight.FillTransparency = 0.75 highlight.OutlineTransparency = 0 highlight.Adornee = flower highlight.Parent = flower -- Billboard local billboard = Instance.new("BillboardGui") billboard.Name = "FlowerTracker" billboard.Adornee = flower billboard.AlwaysOnTop = true billboard.Size = UDim2.fromOffset(150, 55) billboard.StudsOffset = Vector3.new(0, 4, 0) billboard.Parent = flower -- Flower name local nameText = Instance.new("TextLabel") nameText.BackgroundTransparency = 1 nameText.Size = UDim2.new(1, 0, 0.5, 0) nameText.Position = UDim2.new(0, 0, 0, 0) nameText.Text = name nameText.TextColor3 = Color3.fromRGB(50, 255, 0) nameText.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) nameText.TextStrokeTransparency = 0 nameText.Font = Enum.Font.GothamBold nameText.TextScaled = true nameText.Parent = billboard -- Distance text local distanceText = Instance.new("TextLabel") distanceText.BackgroundTransparency = 1 distanceText.Size = UDim2.new(1, 0, 0.5, 0) distanceText.Position = UDim2.new(0, 0, 0.5, 0) distanceText.TextColor3 = Color3.fromRGB(50, 255, 0) distanceText.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) distanceText.TextStrokeTransparency = 0 distanceText.Font = Enum.Font.GothamBold distanceText.TextScaled = true distanceText.Parent = billboard -- Update distance and size RunService.RenderStepped:Connect(function() if not flower.Parent then return end local flowerPosition = flower:GetPivot().Position local distance = (camera.CFrame.Position - flowerPosition).Magnitude distanceText.Text = math.floor(distance) .. " studs away" -- Farther = bigger, closer = smaller local size = math.clamp(2500 / distance, 40, 250) billboard.Size = UDim2.fromOffset(size, size * 0.37) end) end setupFlower("Flower1") setupFlower("Flower2")