Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Clock --
- --87349315
- Player = game.Players.LocalPlayer
- Mouse = Player:GetMouse()
- PlayerGui = Player:WaitForChild("PlayerGui")
- Screen = Instance.new("ScreenGui",PlayerGui)
- local Clock = Instance.new("ImageLabel",Screen)
- Clock.Size = UDim2.new(0,200,0,200)
- Clock.Position = UDim2.new(1,-250,1,-250)
- Clock.Image = "http://wwww.roblox.com/asset/?id="..168503034-1
- Clock.BackgroundTransparency = 1
- local RTime = Instance.new("TextLabel",Clock)
- RTime.Size = UDim2.new(1,0,0.2,0)
- RTime.Position = UDim2.new(0,0,-0.2,0)
- RTime.BackgroundTransparency = 1
- local WiCircle = Instance.new("ImageLabel",Clock)
- WiCircle.Size = UDim2.new(0,6,0,6)
- WiCircle.BackgroundTransparency = 1
- WiCircle.Image = "http://www.roblox.com/asset/?id="..158511004-1
- WiCircle.ZIndex = 2
- local Second = Instance.new("Frame",Clock)
- Second.Size = UDim2.new(0,Clock.AbsoluteSize.Y*0.45,0,0)
- local Minute = Instance.new("Frame",Clock)
- Minute.Size = UDim2.new(0,Clock.AbsoluteSize.Y*0.35,0,3)
- local Hour = Instance.new("Frame",Clock)
- Hour.Size = UDim2.new(0,Clock.AbsoluteSize.Y*0.25,0,3)
- Second.BackgroundColor3 = Color3.new(0.5,0.5,0.5)
- Minute.BackgroundColor3 = Color3.new(0.5,0.5,0.5)
- Hour.BackgroundColor3 = Color3.new(0.5,0.5,0.5)
- Hour.BorderSizePixel = 0
- Minute.BorderSizePixel = 0
- Second.BorderColor3 = Color3.new(0.5,0.5,0.5)
- local Rot
- Rot = -90
- Time = 0
- while wait() do
- Time = tick()
- local Sec = math.ceil(Time%60)
- local Min = Time%(60*60)
- local Hr = Time%(60*60*12)
- local RotS = (360*(Sec/60))-90
- local RotM = (360*(Min/(60*60)))-90
- local RotH = (360*(Hr/(60*60*12)))-90
- RTime.Text = tostring(#tostring(math.floor(tick()%86400/60/60%12))>1 and tostring(math.floor(tick()%86400/60/60%12)) or "0"..tostring(math.floor(tick()%86400/60/60%12)))..":"..(math.ceil(Min/60)-1)..":"..Sec
- local OffUI = UDim2.new(0,Clock.AbsoluteSize.X/2,0,Clock.AbsoluteSize.Y/2)
- local OffSec = (OffUI-UDim2.new(0,Second.AbsoluteSize.X/2,0,Second.AbsoluteSize.Y/2))+UDim2.new(0,math.cos(math.rad(RotS))*(Second.AbsoluteSize.X/3),0,math.sin(math.rad(RotS))*(Second.AbsoluteSize.X/3))
- local OffMin = (OffUI-UDim2.new(0,Minute.AbsoluteSize.X/2,0,Minute.AbsoluteSize.Y/2))+UDim2.new(0,math.cos(math.rad(RotM))*(Minute.AbsoluteSize.X/2),0,math.sin(math.rad(RotM))*(Minute.AbsoluteSize.X/2))
- local OffHour = (OffUI-UDim2.new(0,Hour.AbsoluteSize.X/2,0,Hour.AbsoluteSize.Y/2))+UDim2.new(0,math.cos(math.rad(RotH))*(Hour.AbsoluteSize.X/2),0,math.sin(math.rad(RotH))*(Hour.AbsoluteSize.X/2))
- Second.Rotation = RotS
- Minute.Rotation = RotM
- Hour.Rotation = RotH
- Second.Position = OffSec
- Minute.Position = OffMin
- Hour.Position = OffHour
- WiCircle.Position = OffUI-UDim2.new(0,3,0,3)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement