local player = game:GetService("Players").LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Name = "TimerGui" screenGui.ResetOnSpawn = false screenGui.Parent = playerGui local dragFrame = Instance.new("Frame") dragFrame.Size = UDim2.new(0, 300, 0, 100) dragFrame.Position = UDim2.new(0.5, -150, 0.1, 0) dragFrame.BackgroundTransparency = 1 dragFrame.Active = true dragFrame.Draggable = true dragFrame.Parent = screenGui local timerLabel = Instance.new("TextLabel") timerLabel.Size = UDim2.new(1, 0, 1, 0) timerLabel.Position = UDim2.new(0, 0, 0, 0) timerLabel.BackgroundTransparency = 1 timerLabel.TextColor3 = Color3.fromRGB(255, 255, 255) timerLabel.Font = Enum.Font.SourceSansBold timerLabel.TextSize = 48 timerLabel.TextScaled = true timerLabel.TextXAlignment = Enum.TextXAlignment.Center timerLabel.TextYAlignment = Enum.TextYAlignment.Center timerLabel.Parent = dragFrame local countdownValue = player:WaitForChild("PlayerData"):WaitForChild("Misc"):WaitForChild("TimeUntilTimeWraith") local function updateTimer() local minutes = math.floor(countdownValue.Value / 60) local seconds = countdownValue.Value % 60 timerLabel.Text = string.format("%d:%02d", minutes, seconds) if countdownValue.Value <= 60 and countdownValue.Value > 0 then timerLabel.TextColor3 = Color3.fromRGB(255, 0, 0) else timerLabel.TextColor3 = Color3.fromRGB(255, 255, 255) end end countdownValue:GetPropertyChangedSignal("Value"):Connect(updateTimer) updateTimer()