EthanMcBloxxer

[ROBLOX] Time of Day Display (TODD)

Aug 2nd, 2020 (edited)
234
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Time of Day Display (TODD) by EthanMcBloxxer (#2089)
  2. -- No distributing. Pairable with CoorHUD.
  3. local c=Instance.new("ScreenGui")local l=Instance.new("ImageButton")local j=Instance.new("TextLabel")local m=Instance.new("ImageLabel")local d=Instance.new("Frame")local i=Instance.new("TextButton")local g=Instance.new("TextButton")local h=Instance.new("ImageLabel")local f=Instance.new("TextLabel")local k="%X"local e local b=" AM"local a="12"c.Name="CoreOS"c.Parent=game.Players.LocalPlayer:WaitForChild("PlayerGui")c.ZIndexBehavior=Enum.ZIndexBehavior.Sibling h.Name="DateBackground"h.Parent=c h.BackgroundColor3=Color3.fromRGB(255,255,255)h.BackgroundTransparency=1.000 h.BorderSizePixel=0 h.Position=UDim2.new(0.82,0,0,-32)h.Size=UDim2.new(0.09,0,0,32)h.Image="rbxassetid://2790389767"h.ImageColor3=Color3.fromRGB(0,0,0)h.ImageTransparency=0.500 h.ScaleType=Enum.ScaleType.Slice h.SliceCenter=Rect.new(8,8,248,248)f.Name="Date"f.Parent=h f.BackgroundColor3=Color3.fromRGB(255,255,255)f.BackgroundTransparency=1.000 f.BorderColor3=Color3.fromRGB(27,42,53)f.Size=UDim2.new(1,0,1,0)f.Font=Enum.Font.Gotham f.Text=os.date("%A, %B %d",os.time())f.TextColor3=Color3.fromRGB(244,244,244)f.TextSize=14.000 l.Name="BackgroundButton"l.Parent=c l.BackgroundColor3=Color3.fromRGB(255,255,255)l.BackgroundTransparency=1.000 l.BorderSizePixel=0 l.Position=UDim2.new(0,104,0,-32)l.Size=UDim2.new(0,77,0,32)l.Image="rbxassetid://2790389767"l.ImageColor3=Color3.fromRGB(0,0,0)l.ImageTransparency=0.500 l.ScaleType=Enum.ScaleType.Slice l.SliceCenter=Rect.new(8,8,248,248)l.MouseEnter:connect(function()l.ImageTransparency=0.6 end)l.MouseLeave:connect(function()l.ImageTransparency=0.5 end)j.Name="TimeText"j.Parent=l j.BackgroundColor3=Color3.fromRGB(255,255,255)j.BackgroundTransparency=1.000 j.BorderSizePixel=0 j.Position=UDim2.new(0,0,0,0)j.Size=UDim2.new(0.8,0,0.5,0)j.Font=Enum.Font.Gotham j.TextColor3=Color3.fromRGB(244,244,244)j.TextScaled=true j.TextSize=14.000 j.TextWrapped=true m.Name="ChangeFormatFrame"m.Parent=c m.BackgroundColor3=Color3.fromRGB(255,255,255)m.BackgroundTransparency=1.000 m.BorderSizePixel=0 m.Position=UDim2.new(0,184,0,-94)m.Size=UDim2.new(0,77,0,32)m.Image="rbxassetid://2790389767"m.ImageColor3=Color3.fromRGB(0,0,0)m.ImageTransparency=0.500 m.ScaleType=Enum.ScaleType.Slice m.SliceCenter=Rect.new(8,8,248,248)m.MouseEnter:connect(function()m.ImageTransparency=0.6 end)m.MouseLeave:connect(function()m.ImageTransparency=0.5 end)d.Name="FullTimeDivider"d.Parent=m d.BackgroundColor3=Color3.fromRGB(244,244,244)d.BackgroundTransparency=0.900 d.BorderSizePixel=0 d.Position=UDim2.new(0.5,0,0,0)d.Size=UDim2.new(0.025,0,1,0)i.Name="24"i.Parent=m i.BackgroundColor3=Color3.fromRGB(255,255,255)i.BackgroundTransparency=1.000 i.Position=UDim2.new(0.524,0,0.07,0)i.Size=UDim2.new(0.476,0,0.812,0)i.Font=Enum.Font.SourceSans i.Text="24\nHour"i.TextColor3=Color3.fromRGB(244,244,244)i.TextScaled=true i.TextSize=14.000 i.TextWrapped=true g.Name="12"g.Parent=m g.BackgroundColor3=Color3.fromRGB(255,255,255)g.BackgroundTransparency=1.000 g.Position=UDim2.new(0,0,0.07,0)g.Size=UDim2.new(0.5,0,0.812,0)g.Font=Enum.Font.SourceSans g.Text="12\nHour"g.TextColor3=Color3.fromRGB(244,244,244)g.TextScaled=true g.TextSize=14.000 g.TextWrapped=true l.MouseButton1Down:connect(function()if m.Position==UDim2.new(0,144,0,-32)then m:TweenPosition(UDim2.new(0,144,0,-94),"In","Sine",0.6)elseif m.Position==UDim2.new(0,194,0,-32)then m:TweenPosition(UDim2.new(0,194,0,-94),"In","Sine",0.6)end if game.StarterGui:GetCoreGuiEnabled("Chat")==false then m:TweenPosition(UDim2.new(0,144,0,-32),"Out","Sine",0.6)else m:TweenPosition(UDim2.new(0,194,0,-32),"Out","Sine",0.6)end end)i.MouseButton1Down:connect(function()a="24"if m.Position==UDim2.new(0,144,0,-32)then m:TweenPosition(UDim2.new(0,144,0,-94),"Out","Sine",1)elseif m.Position==UDim2.new(0,194,0,-32)then m:TweenPosition(UDim2.new(0,194,0,-94),"Out","Sine",0.6)end end)g.MouseButton1Down:connect(function()a="12"if m.Position==UDim2.new(0,144,0,-32)then m:TweenPosition(UDim2.new(0,144,0,-94),"Out","Sine",0.6)elseif m.Position==UDim2.new(0,194,0,-32)then m:TweenPosition(UDim2.new(0,194,0,-94),"Out","Sine",0.6)end end)wait(0.001)while true do if f.Text~=os.date("%A, %B %d",os.time())then f.Text=os.date("%A",os.time())end if game.StarterGui:GetCoreGuiEnabled("Chat")==false and m.Position==UDim2.new(0,184,0,-94)then m.Position=UDim2.new(0,154,0,-94)elseif game.StarterGui:GetCoreGuiEnabled("Chat")==true and m.Position==UDim2.new(0,154,0,-94)then m.Position=UDim2.new(0,184,0,-94)end if a=="12"then if game.StarterGui:GetCoreGuiEnabled("Chat")==false then l.Position=UDim2.new(0,58,0,-32)else l.Position=UDim2.new(0,104,0,-32)end j.Position=UDim2.new(0.095,0,0.25,0)k=os.date(k,os.time())k=string.sub(k,0,-4)e=string.sub(k,0,-4)e=tonumber(e)k=string.reverse(k)k=string.sub(k,0,2)k=string.reverse(k)if e>12 then e=e-12 b=" PM"end j.Text=e..":"..k..b k="%X"e=nil b=" AM"elseif a=="24"then if game.StarterGui:GetCoreGuiEnabled("Chat")==false then l.Position=UDim2.new(0,58,0,-32)else l.Position=UDim2.new(0,104,0,-32)end j.Position=UDim2.new(0.077,0,0.22,0)k=os.date(k,os.time())k=string.sub(k,0,-4)print(k)j.Text=k k="%X"e=nil b=" AM"end wait()end
RAW Paste Data