Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
TweenService = :()
UserInputService = :()
Lighting = :()
player = Players.LocalPlayer
pGui = player:()
screenGui = .()
screenGui.Name =
screenGui.ResetOnSpawn =
screenGui.Parent = pGui
openBtn = .()
openBtn.Size = .(, , , )
openBtn.Position = .(, , , -)
openBtn.Text =
openBtn.BackgroundColor3 = .(, , )
openBtn.TextColor3 = .(, , )
openBtn.Font = .Font.GothamBold
openBtn.Parent = screenGui
btnCorner = .()
btnCorner.CornerRadius = .(, )
btnCorner.Parent = openBtn
menuFrame = .()
menuFrame.Size = .(, , , )
menuFrame.Position = .(, -, , -)
menuFrame.BackgroundColor3 = .(, , )
menuFrame.BackgroundTransparency =
menuFrame.Visible =
menuFrame.Parent = screenGui
uiCorner = .()
uiCorner.CornerRadius = .(, )
uiCorner.Parent = menuFrame
uiStroke = .()
uiStroke.Thickness =
uiStroke.Color = .(, , )
uiStroke.Parent = menuFrame
titleLabel = .()
titleLabel.Size = .(, , , )
titleLabel.Position = .(, , , )
titleLabel.BackgroundTransparency =
titleLabel.Text =
titleLabel.TextColor3 = .(, , )
titleLabel.TextSize =
titleLabel.Font = .Font.GothamBold
titleLabel.TextTransparency =
titleLabel.Parent = menuFrame
stdLabel = .()
stdLabel.Size = .(, , , )
stdLabel.Position = .(, , , )
stdLabel.BackgroundTransparency =
stdLabel.TextColor3 = .(, , )
stdLabel.TextSize =
stdLabel.Font = .Font.GothamBold
stdLabel.TextTransparency =
stdLabel.Parent = menuFrame
milLabel = .()
milLabel.Size = .(, , , )
milLabel.Position = .(, , , )
milLabel.BackgroundTransparency =
milLabel.TextColor3 = .(, , )
milLabel.TextSize =
milLabel.Font = .Font.Code
milLabel.TextTransparency =
milLabel.Parent = menuFrame
()
clockTime = Lighting.ClockTime
(clockTime) ~=
totalMinutes = clockTime *
hours = .(totalMinutes / ) %
minutes = .(totalMinutes % )
ampm = hours >=
h12 = hours %
h12 == h12 =
stdLabel.Text = .(, h12, minutes, ampm)
milLabel.Text = .(, hours, minutes)
isOpen =
tInfo = TweenInfo.(, .EasingStyle.Quart, .EasingDirection.Out)
()
isOpen = isOpen
isOpen menuFrame.Visible =
targetAlpha = isOpen
bgAlpha = isOpen
TweenService:(menuFrame, tInfo, {BackgroundTransparency = bgAlpha}):()
TweenService:(titleLabel, tInfo, {TextTransparency = targetAlpha}):()
TweenService:(stdLabel, tInfo, {TextTransparency = targetAlpha}):()
TweenService:(milLabel, tInfo, {TextTransparency = targetAlpha}):()
isOpen
.(, ()
isOpen menuFrame.Visible =
)
openBtn.MouseButton1Click:(toggle)
UserInputService.InputBegan:((io, gpe)
gpe io.KeyCode == .KeyCode.L ()
)
RunService.RenderStepped:(updateClocks)
dragging, dragInput, dragStart, startPos
menuFrame.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
dragging =
dragStart = input.Position
startPos = menuFrame.Position
)
UserInputService.InputChanged:((input)
dragging input.UserInputType == .UserInputType.MouseMovement
delta = input.Position - dragStart
menuFrame.Position = .(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
)
UserInputService.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1 dragging =
)
i used AI to fix beach99’s AI lard. here’s the link to the original that doesn’t work: https://scriptblox.com/script/ERA-De-Pride-Isle-Sanatorium-Clock-Gui-98111