Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local Frame = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local Generator = Instance.new("TextButton")
- local UICorner_2 = Instance.new("UICorner")
- local FrameLabel = Instance.new("TextLabel")
- local UICorner_3 = Instance.new("UICorner")
- local Month = Instance.new("TextLabel")
- local UICorner_4 = Instance.new("UICorner")
- local Day = Instance.new("TextLabel")
- local UICorner_5 = Instance.new("UICorner")
- local Year = Instance.new("TextLabel")
- local UICorner_6 = Instance.new("UICorner")
- local Comma = Instance.new("TextLabel")
- local UICorner_7 = Instance.new("UICorner")
- local Slash = Instance.new("TextLabel")
- local UICorner_8 = Instance.new("UICorner")
- local Slash_2 = Instance.new("TextLabel")
- local UICorner_9 = Instance.new("UICorner")
- local YearNAL = Instance.new("TextLabel")
- local UICorner_10 = Instance.new("UICorner")
- local DayNAL = Instance.new("TextLabel")
- local UICorner_11 = Instance.new("UICorner")
- local MonthNal = Instance.new("TextLabel")
- local UICorner_12 = Instance.new("UICorner")
- local CloseButton = Instance.new("TextButton")
- local UICorner_13 = Instance.new("UICorner")
- --Properties:
- Frame.Parent = game.StarterGui.DateRandomizer
- Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame.Position = UDim2.new(0.200826436, 0, 0.16236341, 0)
- Frame.Size = UDim2.new(0, 724, 0, 502)
- UICorner.Parent = Frame
- Generator.Name = "Generator"
- Generator.Parent = Frame
- Generator.BackgroundColor3 = Color3.fromRGB(136, 136, 136)
- Generator.Position = UDim2.new(0.33011049, 0, 0.665338635, 0)
- Generator.Size = UDim2.new(0, 245, 0, 54)
- Generator.Font = Enum.Font.SourceSansLight
- Generator.Text = "Generate Random Date"
- Generator.TextColor3 = Color3.fromRGB(255, 255, 255)
- Generator.TextScaled = true
- Generator.TextSize = 14.000
- Generator.TextWrapped = true
- UICorner_2.Parent = Generator
- FrameLabel.Name = "FrameLabel"
- FrameLabel.Parent = Frame
- FrameLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- FrameLabel.Position = UDim2.new(0.12016575, 0, 0, 0)
- FrameLabel.Size = UDim2.new(0, 547, 0, 74)
- FrameLabel.Font = Enum.Font.SourceSansLight
- FrameLabel.Text = "Random Date Generator"
- FrameLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
- FrameLabel.TextScaled = true
- FrameLabel.TextSize = 14.000
- FrameLabel.TextWrapped = true
- UICorner_3.Parent = FrameLabel
- Month.Name = "Month"
- Month.Parent = Frame
- Month.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Month.Position = UDim2.new(0.190607741, 0, 0.245019913, 0)
- Month.Size = UDim2.new(0, 150, 0, 74)
- Month.Font = Enum.Font.SourceSansLight
- Month.Text = "1"
- Month.TextColor3 = Color3.fromRGB(0, 0, 0)
- Month.TextScaled = true
- Month.TextSize = 14.000
- Month.TextWrapped = true
- UICorner_4.Parent = Month
- Day.Name = "Day"
- Day.Parent = Frame
- Day.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Day.Position = UDim2.new(0.436464101, 0, 0.247011945, 0)
- Day.Size = UDim2.new(0, 90, 0, 74)
- Day.Font = Enum.Font.SourceSansLight
- Day.Text = "24"
- Day.TextColor3 = Color3.fromRGB(0, 0, 0)
- Day.TextScaled = true
- Day.TextSize = 14.000
- Day.TextWrapped = true
- UICorner_5.Parent = Day
- Year.Name = "Year"
- Year.Parent = Frame
- Year.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Year.Position = UDim2.new(0.613259614, 0, 0.245019898, 0)
- Year.Size = UDim2.new(0, 164, 0, 74)
- Year.Font = Enum.Font.SourceSansLight
- Year.Text = "2009"
- Year.TextColor3 = Color3.fromRGB(0, 0, 0)
- Year.TextScaled = true
- Year.TextSize = 14.000
- Year.TextWrapped = true
- UICorner_6.Parent = Year
- Comma.Name = "Comma"
- Comma.Parent = Frame
- Comma.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Comma.Position = UDim2.new(0.555248618, 0, 0.430278867, 0)
- Comma.Size = UDim2.new(0, 16, 0, 74)
- Comma.Font = Enum.Font.SourceSansLight
- Comma.Text = ","
- Comma.TextColor3 = Color3.fromRGB(0, 0, 0)
- Comma.TextScaled = true
- Comma.TextSize = 14.000
- Comma.TextWrapped = true
- UICorner_7.Parent = Comma
- Slash.Name = "Slash"
- Slash.Parent = Frame
- Slash.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Slash.Position = UDim2.new(0.569060743, 0, 0.245019928, 0)
- Slash.Size = UDim2.new(0, 32, 0, 74)
- Slash.Font = Enum.Font.SourceSansLight
- Slash.Text = "/"
- Slash.TextColor3 = Color3.fromRGB(0, 0, 0)
- Slash.TextScaled = true
- Slash.TextSize = 14.000
- Slash.TextWrapped = true
- UICorner_8.Parent = Slash
- Slash_2.Name = "Slash"
- Slash_2.Parent = Frame
- Slash_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Slash_2.Position = UDim2.new(0.361878484, 0, 0.245019928, 0)
- Slash_2.Size = UDim2.new(0, 32, 0, 74)
- Slash_2.Font = Enum.Font.SourceSansLight
- Slash_2.Text = "/"
- Slash_2.TextColor3 = Color3.fromRGB(0, 0, 0)
- Slash_2.TextScaled = true
- Slash_2.TextSize = 14.000
- Slash_2.TextWrapped = true
- UICorner_9.Parent = Slash_2
- YearNAL.Name = "YearNAL"
- YearNAL.Parent = Frame
- YearNAL.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- YearNAL.Position = UDim2.new(0.584254146, 0, 0.426294804, 0)
- YearNAL.Size = UDim2.new(0, 164, 0, 74)
- YearNAL.Font = Enum.Font.SourceSansLight
- YearNAL.Text = "2009"
- YearNAL.TextColor3 = Color3.fromRGB(0, 0, 0)
- YearNAL.TextScaled = true
- YearNAL.TextSize = 14.000
- YearNAL.TextWrapped = true
- UICorner_10.Parent = YearNAL
- DayNAL.Name = "DayNAL"
- DayNAL.Parent = Frame
- DayNAL.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- DayNAL.Position = UDim2.new(0.43784532, 0, 0.430278897, 0)
- DayNAL.Size = UDim2.new(0, 90, 0, 74)
- DayNAL.Font = Enum.Font.SourceSansLight
- DayNAL.Text = "24"
- DayNAL.TextColor3 = Color3.fromRGB(0, 0, 0)
- DayNAL.TextScaled = true
- DayNAL.TextSize = 14.000
- DayNAL.TextWrapped = true
- UICorner_11.Parent = DayNAL
- MonthNal.Name = "MonthNal"
- MonthNal.Parent = Frame
- MonthNal.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- MonthNal.Position = UDim2.new(0.220994473, 0, 0.430278897, 0)
- MonthNal.Size = UDim2.new(0, 150, 0, 74)
- MonthNal.Font = Enum.Font.SourceSansLight
- MonthNal.Text = "Jan"
- MonthNal.TextColor3 = Color3.fromRGB(0, 0, 0)
- MonthNal.TextScaled = true
- MonthNal.TextSize = 14.000
- MonthNal.TextWrapped = true
- UICorner_12.Parent = MonthNal
- CloseButton.Name = "CloseButton"
- CloseButton.Parent = Frame
- CloseButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- CloseButton.Position = UDim2.new(0.897790074, 0, 0, 0)
- CloseButton.Size = UDim2.new(0, 74, 0, 74)
- CloseButton.Font = Enum.Font.SourceSansLight
- CloseButton.Text = "X"
- CloseButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- CloseButton.TextScaled = true
- CloseButton.TextSize = 14.000
- CloseButton.TextWrapped = true
- UICorner_13.Parent = CloseButton
- -- Scripts:
- local function NQIYVD_fake_script() -- Generator.Script
- local script = Instance.new('LocalScript', Generator)
- script.Parent.MouseButton1Click:Connect(function()
- local MonthRandomizer = math.random(1, 12)
- local DayRandomizer = math.random(1, 31)
- local DayFEBrandomizer = math.random(1, 28)
- local DayFEBLEAPrandomizer = math.random(1, 29)
- local YearRandomizer = math.random(1600, 2100)
- local MonthText = script.Parent.Parent.Month.Text
- local DayText = script.Parent.Parent.Day.Text
- local YearText = script.Parent.Parent.Year.Text
- local January = 1
- local February = 2
- local March = 3
- local April = 4
- local May = 5
- local June = 6
- local July = 7
- local August = 8
- local September = 9
- local October = 10
- local November = 11
- local December = 12
- script.Parent.Parent.Day.Text = DayRandomizer
- script.Parent.Parent.Month.Text = MonthRandomizer
- script.Parent.Parent.Year.Text = YearRandomizer
- -------------------- SEPARATOR ---------------------
- script.Parent.Parent.DayNAL.Text = DayRandomizer
- script.Parent.Parent.MonthNal.Text = MonthRandomizer
- script.Parent.Parent.YearNAL.Text = YearRandomizer
- local JanuaryTEXT = "Jan"
- local FebruaryTEXT = "Feb"
- local MarchTEXT = "Mar"
- local AprilTEXT = "Apr"
- local MayTEXT = "May"
- local JuneTEXT = "Jun"
- local JulyTEXT = "Jul"
- local AugustTEXT = "Aug"
- local SeptemberTEXT = "Sept"
- local OctoberTEXT = "Oct"
- local NovemberTEXT = "Nov"
- local DecemberTEXT = "Dec"
- if MonthRandomizer == 1 then
- script.Parent.Parent.MonthNal.Text = JanuaryTEXT
- end
- if MonthRandomizer == 2 then
- script.Parent.Parent.MonthNal.Text = FebruaryTEXT
- if MonthText == FebruaryTEXT then
- DayText = DayFEBrandomizer
- end
- end
- if MonthRandomizer == 3 then
- script.Parent.Parent.MonthNal.Text = MarchTEXT
- end
- if MonthRandomizer == 4 then
- script.Parent.Parent.MonthNal.Text = AprilTEXT
- end
- if MonthRandomizer == 5 then
- script.Parent.Parent.MonthNal.Text = MayTEXT
- end
- if MonthRandomizer == 6 then
- script.Parent.Parent.MonthNal.Text = JuneTEXT
- end
- if MonthRandomizer == 7 then
- script.Parent.Parent.MonthNal.Text = JulyTEXT
- end
- if MonthRandomizer == 8 then
- script.Parent.Parent.MonthNal.Text = AugustTEXT
- end
- if MonthRandomizer == 9 then
- script.Parent.Parent.MonthNal.Text = SeptemberTEXT
- end
- if MonthRandomizer == 10 then
- script.Parent.Parent.MonthNal.Text = OctoberTEXT
- end
- if MonthRandomizer == 11 then
- script.Parent.Parent.MonthNal.Text = NovemberTEXT
- end
- if MonthRandomizer == 12 then
- script.Parent.Parent.MonthNal.Text = DecemberTEXT
- end
- end)
- end
- coroutine.wrap(NQIYVD_fake_script)()
- local function AMBD_fake_script() -- Frame.Dragify
- local script = Instance.new('LocalScript', Frame)
- local Frame = script.Parent
- Frame.Active = true
- Frame.Selectable = true
- Frame.Draggable = true
- end
- coroutine.wrap(AMBD_fake_script)()
- local function SZUQP_fake_script() -- CloseButton.CloseScript
- local script = Instance.new('LocalScript', CloseButton)
- local Frame = script.Parent.Parent
- script.Parent.MouseButton1Click:Connect(function()
- Frame.Visible = false
- script.Parent.Parent.Parent.OpenButton.Visible = true
- end)
- end
- coroutine.wrap(SZUQP_fake_script)()
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local OpenButton = Instance.new("TextButton")
- local UICorner = Instance.new("UICorner")
- --Properties:
- OpenButton.Name = "OpenButton"
- OpenButton.Parent = game.StarterGui.DateRandomizer
- OpenButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- OpenButton.Position = UDim2.new(-0.000630140305, 0, 0.452094853, 0)
- OpenButton.Size = UDim2.new(0, 164, 0, 47)
- OpenButton.Visible = false
- OpenButton.Font = Enum.Font.SourceSansLight
- OpenButton.Text = "Open"
- OpenButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- OpenButton.TextScaled = true
- OpenButton.TextSize = 14.000
- OpenButton.TextWrapped = true
- UICorner.Parent = OpenButton
- -- Scripts:
- local function UWWQQ_fake_script() -- OpenButton.OpenScript
- local script = Instance.new('LocalScript', OpenButton)
- local Frame = script.Parent.Parent.Frame
- script.Parent.MouseButton1Click:Connect(function()
- Frame.Visible = true
- script.Parent.Visible = false
- end)
- end
- coroutine.wrap(UWWQQ_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement