local player = game.Players.LocalPlayer local function createClock() local character = player.Character or player.CharacterAdded:Wait() local head = character:WaitForChild("Head") -- إزالة الـ GUI السابق إذا وُجد local existingGui = head:FindFirstChild("GermanyClock") if existingGui then existingGui:Destroy() end local gui = Instance.new("BillboardGui") gui.Name = "GermanyClock" gui.Size = UDim2.new(0, 200, 0, 50) gui.StudsOffset = Vector3.new(0, 2.5, 0) gui.AlwaysOnTop = true gui.Parent = head local label = Instance.new("TextLabel") label.Size = UDim2.new(1, 0, 1, 0) label.BackgroundTransparency = 1 label.TextColor3 = Color3.fromRGB(255, 255, 255) label.TextScaled = true label.Font = Enum.Font.SourceSansBold label.Text = "..." label.Parent = gui local TimezoneOffset = 2 -- توقيت ألمانيا (UTC+2) -- استخدام متغير للتحقق من استمرار التحديث local running = true gui.AncestryChanged:Connect(function(_, parent) if not parent then running = false end end) while running do local now = os.time() local gmt = os.date("!*t", now) gmt.hour = gmt.hour + TimezoneOffset if gmt.hour >= 24 then gmt.hour = gmt.hour - 24 end local timeString = string.format("%02d:%02d:%02d", gmt.hour, gmt.min, gmt.sec) label.Text = player.Name .. ": " .. timeString wait(1) end end createClock() player.CharacterAdded:Connect(createClock)