Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Part0 = Instance.new("Part")
- UICorner0 = Instance.new("UICorner")
- SurfaceGui1 = Instance.new("SurfaceGui")
- Frame2 = Instance.new("Frame")
- TextButton3 = Instance.new("TextButton")
- Script4 = Instance.new("Script")
- TextLabel5 = Instance.new("TextLabel")
- TextLabel6 = Instance.new("TextLabel")
- TextLabel7 = Instance.new("TextLabel")
- TextLabel8 = Instance.new("TextLabel")
- TextLabel9 = Instance.new("TextLabel")
- Folder10 = Instance.new("Folder")
- TextLabel11 = Instance.new("TextLabel")
- TextLabel12 = Instance.new("TextLabel")
- TextLabel13 = Instance.new("TextLabel")
- TextLabel14 = Instance.new("TextLabel")
- TextLabel15 = Instance.new("TextLabel")
- Script16 = Instance.new("Script")
- TextLabel17 = Instance.new("TextLabel")
- Part0.Name = "Hold"
- Part0.Parent = mas
- Part0.CFrame = CFrame.new(3, 5.99999714, -5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part0.Position = Vector3.new(0, 6, 15)
- Part0.Size = Vector3.new(18, 12, 1)
- Part0.Anchored = true
- Part0.BackSurface = Enum.SurfaceType.Studs
- Part0.BottomSurface = Enum.SurfaceType.Studs
- Part0.FrontSurface = Enum.SurfaceType.Studs
- Part0.LeftSurface = Enum.SurfaceType.Studs
- Part0.RightSurface = Enum.SurfaceType.Studs
- SurfaceGui1.Parent = Part0
- SurfaceGui1.ClipsDescendants = true
- SurfaceGui1.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- SurfaceGui1.Adornee = Part0
- Frame2.Parent = SurfaceGui1
- Frame2.Size = UDim2.new(0, 900, 0, 600)
- Frame2.Active = true
- Frame2.BackgroundColor = BrickColor.new("Institutional white")
- Frame2.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame2.BorderColor = BrickColor.new("Institutional white")
- Frame2.BorderColor3 = Color3.new(1, 1, 1)
- Frame2.Draggable = true
- Frame2.Selectable = true
- TextButton3.Name = "Generator"
- TextButton3.Parent = Frame2
- TextButton3.Position = UDim2.new(0.36500001, 0, 0.701666653, 0)
- TextButton3.Size = UDim2.new(0, 250, 0, 100)
- TextButton3.BackgroundColor = BrickColor.new("Silver flip/flop")
- TextButton3.BackgroundColor3 = Color3.new(0.533333, 0.533333, 0.533333)
- TextButton3.Font = Enum.Font.SourceSansLight
- TextButton3.FontSize = Enum.FontSize.Size14
- TextButton3.Text = "Generate Random Date"
- TextButton3.TextColor = BrickColor.new("Institutional white")
- TextButton3.TextColor3 = Color3.new(1, 1, 1)
- TextButton3.TextScaled = true
- TextButton3.TextSize = 14
- TextButton3.TextWrap = true
- TextButton3.TextWrapped = true
- Script4.Name = "ClickScript"
- Script4.Parent = TextButton3
- UICorner0.Parent = TextButton3
- SurfaceGui1.SizingMode = Enum.SurfaceGuiSizingMode.PixelsPerStud
- table.insert(cors,sandbox(Script4,function()
- function onClicked()
- 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 MonthTextNAL = script.Parent.Parent.NalFolder.MonthNal.Text
- local DayTextNAL = script.Parent.Parent.NalFolder.DayNAL.Text
- local YearTextNal = script.Parent.Parent.NalFolder.YearNAL.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.NalFolder.DayNAL.Text = DayRandomizer
- script.Parent.Parent.NalFolder.MonthNal.Text = MonthRandomizer
- script.Parent.Parent.NalFolder.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.NalFolder.MonthNal.Text = JanuaryTEXT
- end
- if MonthRandomizer == 2 then
- script.Parent.Parent.NalFolder.MonthNal.Text = FebruaryTEXT
- if MonthText == FebruaryTEXT then
- DayText = DayFEBrandomizer
- if YearRandomizer % 4 == 0 then
- if YearRandomizer % 100 == 0 then
- if YearRandomizer % 400 == 0 then
- end
- end
- else
- end
- end
- end
- if MonthRandomizer == 3 then
- script.Parent.Parent.NalFolder.MonthNal.Text = MarchTEXT
- end
- if MonthRandomizer == 4 then
- script.Parent.Parent.NalFolder.MonthNal.Text = AprilTEXT
- end
- if MonthRandomizer == 5 then
- script.Parent.Parent.NalFolder.MonthNal.Text = MayTEXT
- end
- if MonthRandomizer == 6 then
- script.Parent.Parent.NalFolder.MonthNal.Text = JuneTEXT
- end
- if MonthRandomizer == 7 then
- script.Parent.Parent.NalFolder.MonthNal.Text = JulyTEXT
- end
- if MonthRandomizer == 8 then
- script.Parent.Parent.NalFolder.MonthNal.Text = AugustTEXT
- end
- if MonthRandomizer == 9 then
- script.Parent.Parent.NalFolder.MonthNal.Text = SeptemberTEXT
- end
- if MonthRandomizer == 10 then
- script.Parent.Parent.NalFolder.MonthNal.Text = OctoberTEXT
- end
- if MonthRandomizer == 11 then
- script.Parent.Parent.NalFolder.MonthNal.Text = NovemberTEXT
- end
- if MonthRandomizer == 12 then
- script.Parent.Parent.NalFolder.MonthNal.Text = DecemberTEXT
- end
- end
- script.Parent.MouseButton1Up:Connect(onClicked)
- end))
- TextLabel5.Name = "Month"
- TextLabel5.Parent = Frame2
- TextLabel5.Position = UDim2.new(0, 150, 0.245019913, 0)
- TextLabel5.Size = UDim2.new(0, 150, 0, 75)
- TextLabel5.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel5.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel5.BorderColor = BrickColor.new("Institutional white")
- TextLabel5.BorderColor3 = Color3.new(1, 1, 1)
- TextLabel5.Font = Enum.Font.SourceSansLight
- TextLabel5.FontSize = Enum.FontSize.Size14
- TextLabel5.Text = "7"
- TextLabel5.TextColor = BrickColor.new("Really black")
- TextLabel5.TextColor3 = Color3.new(0, 0, 0)
- TextLabel5.TextScaled = true
- TextLabel5.TextSize = 14
- TextLabel5.TextWrap = true
- TextLabel5.TextWrapped = true
- TextLabel6.Name = "Year"
- TextLabel6.Parent = Frame2
- TextLabel6.Position = UDim2.new(0.649999976, 0, 0.245019898, 0)
- TextLabel6.Size = UDim2.new(0, 164, 0, 75)
- TextLabel6.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel6.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel6.BorderColor = BrickColor.new("Institutional white")
- TextLabel6.BorderColor3 = Color3.new(1, 1, 1)
- TextLabel6.Font = Enum.Font.SourceSansLight
- TextLabel6.FontSize = Enum.FontSize.Size14
- TextLabel6.Text = "1866"
- TextLabel6.TextColor = BrickColor.new("Really black")
- TextLabel6.TextColor3 = Color3.new(0, 0, 0)
- TextLabel6.TextScaled = true
- TextLabel6.TextSize = 14
- TextLabel6.TextWrap = true
- TextLabel6.TextWrapped = true
- TextLabel7.Name = "Slash2"
- TextLabel7.Parent = Frame2
- TextLabel7.Position = UDim2.new(0.584999979, 0, 0.245019928, 0)
- TextLabel7.Size = UDim2.new(0, 32, 0, 75)
- TextLabel7.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel7.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel7.BorderColor = BrickColor.new("Institutional white")
- TextLabel7.BorderColor3 = Color3.new(1, 1, 1)
- TextLabel7.Font = Enum.Font.SourceSansLight
- TextLabel7.FontSize = Enum.FontSize.Size14
- TextLabel7.Text = "/"
- TextLabel7.TextColor = BrickColor.new("Really black")
- TextLabel7.TextColor3 = Color3.new(0, 0, 0)
- TextLabel7.TextScaled = true
- TextLabel7.TextSize = 14
- TextLabel7.TextWrap = true
- TextLabel7.TextWrapped = true
- TextLabel8.Name = "Slash"
- TextLabel8.Parent = Frame2
- TextLabel8.Position = UDim2.new(0.386000007, 0, 0.245019928, 0)
- TextLabel8.Size = UDim2.new(0, 32, 0, 75)
- TextLabel8.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel8.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel8.BorderColor = BrickColor.new("Institutional white")
- TextLabel8.BorderColor3 = Color3.new(1, 1, 1)
- TextLabel8.Font = Enum.Font.SourceSansLight
- TextLabel8.FontSize = Enum.FontSize.Size14
- TextLabel8.Text = "/"
- TextLabel8.TextColor = BrickColor.new("Really black")
- TextLabel8.TextColor3 = Color3.new(0, 0, 0)
- TextLabel8.TextScaled = true
- TextLabel8.TextSize = 14
- TextLabel8.TextWrap = true
- TextLabel8.TextWrapped = true
- TextLabel9.Name = "FrameLabel"
- TextLabel9.Parent = Frame2
- TextLabel9.Size = UDim2.new(0, 900, 0, 100)
- TextLabel9.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel9.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel9.BorderColor = BrickColor.new("Institutional white")
- TextLabel9.BorderColor3 = Color3.new(1, 1, 1)
- TextLabel9.Font = Enum.Font.SourceSansLight
- TextLabel9.FontSize = Enum.FontSize.Size48
- TextLabel9.Text = "Random Date Generator"
- TextLabel9.TextColor = BrickColor.new("Really black")
- TextLabel9.TextColor3 = Color3.new(0, 0, 0)
- TextLabel9.TextScaled = true
- TextLabel9.TextSize = 38
- TextLabel9.TextWrap = true
- TextLabel9.TextWrapped = true
- Folder10.Name = "NalFolder"
- Folder10.Parent = Frame2
- TextLabel11.Name = "YearNAL"
- TextLabel11.Parent = Folder10
- TextLabel11.Position = UDim2.new(0, 550, 0.430000007, 0)
- TextLabel11.Size = UDim2.new(0, 150, 0, 75)
- TextLabel11.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel11.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel11.BorderColor = BrickColor.new("Institutional white")
- TextLabel11.BorderColor3 = Color3.new(1, 1, 1)
- TextLabel11.Font = Enum.Font.SourceSansLight
- TextLabel11.FontSize = Enum.FontSize.Size14
- TextLabel11.Text = "1866"
- TextLabel11.TextColor = BrickColor.new("Really black")
- TextLabel11.TextColor3 = Color3.new(0, 0, 0)
- TextLabel11.TextScaled = true
- TextLabel11.TextSize = 14
- TextLabel11.TextWrap = true
- TextLabel11.TextWrapped = true
- TextLabel12.Name = "MonthNal"
- TextLabel12.Parent = Folder10
- TextLabel12.Position = UDim2.new(0.220994473, 0, 0.430278897, 0)
- TextLabel12.Size = UDim2.new(0, 150, 0, 75)
- TextLabel12.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel12.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel12.BorderColor = BrickColor.new("Institutional white")
- TextLabel12.BorderColor3 = Color3.new(1, 1, 1)
- TextLabel12.Font = Enum.Font.SourceSansLight
- TextLabel12.FontSize = Enum.FontSize.Size14
- TextLabel12.Text = "Jul"
- TextLabel12.TextColor = BrickColor.new("Really black")
- TextLabel12.TextColor3 = Color3.new(0, 0, 0)
- TextLabel12.TextScaled = true
- TextLabel12.TextSize = 14
- TextLabel12.TextWrap = true
- TextLabel12.TextWrapped = true
- TextLabel13.Name = "DayNAL"
- TextLabel13.Parent = Folder10
- TextLabel13.Position = UDim2.new(0.43784532, 0, 0.430278897, 0)
- TextLabel13.Size = UDim2.new(0, 90, 0, 75)
- TextLabel13.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel13.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel13.BorderColor = BrickColor.new("Institutional white")
- TextLabel13.BorderColor3 = Color3.new(1, 1, 1)
- TextLabel13.Font = Enum.Font.SourceSansLight
- TextLabel13.FontSize = Enum.FontSize.Size14
- TextLabel13.Text = "17"
- TextLabel13.TextColor = BrickColor.new("Really black")
- TextLabel13.TextColor3 = Color3.new(0, 0, 0)
- TextLabel13.TextScaled = true
- TextLabel13.TextSize = 14
- TextLabel13.TextWrap = true
- TextLabel13.TextWrapped = true
- TextLabel14.Name = "Comma"
- TextLabel14.Parent = Folder10
- TextLabel14.Position = UDim2.new(0.555248618, 0, 0.430278867, 0)
- TextLabel14.Size = UDim2.new(0, 16, 0, 75)
- TextLabel14.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel14.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel14.BorderColor = BrickColor.new("Institutional white")
- TextLabel14.BorderColor3 = Color3.new(1, 1, 1)
- TextLabel14.Font = Enum.Font.SourceSansLight
- TextLabel14.FontSize = Enum.FontSize.Size14
- TextLabel14.Text = ","
- TextLabel14.TextColor = BrickColor.new("Really black")
- TextLabel14.TextColor3 = Color3.new(0, 0, 0)
- TextLabel14.TextScaled = true
- TextLabel14.TextSize = 14
- TextLabel14.TextWrap = true
- TextLabel14.TextWrapped = true
- TextLabel15.Name = "Day"
- TextLabel15.Parent = Frame2
- TextLabel15.Position = UDim2.new(0.449999988, 0, 0.247011945, 0)
- TextLabel15.Size = UDim2.new(0, 90, 0, 75)
- TextLabel15.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel15.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel15.BorderColor = BrickColor.new("Institutional white")
- TextLabel15.BorderColor3 = Color3.new(1, 1, 1)
- TextLabel15.Font = Enum.Font.SourceSansLight
- TextLabel15.FontSize = Enum.FontSize.Size14
- TextLabel15.Text = "17"
- TextLabel15.TextColor = BrickColor.new("Really black")
- TextLabel15.TextColor3 = Color3.new(0, 0, 0)
- TextLabel15.TextScaled = true
- TextLabel15.TextSize = 14
- TextLabel15.TextWrap = true
- TextLabel15.TextWrapped = true
- Script16.Name = "Undragify"
- Script16.Parent = Frame2
- table.insert(cors,sandbox(Script16,function()
- local frame = script.Parent
- frame.Selectable = false
- frame.Active = false
- frame.Draggable = false
- if frame.Draggable == false and frame.Active == false and frame.Selectable == false then
- print("Yes")
- else
- print("No")
- end
- end))
- TextLabel17.Name = "Credits"
- TextLabel17.Parent = Frame2
- TextLabel17.Position = UDim2.new(0, 650, 0, 550)
- TextLabel17.Size = UDim2.new(0, 250, 0, 50)
- TextLabel17.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel17.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel17.BorderColor = BrickColor.new("Institutional white")
- TextLabel17.BorderColor3 = Color3.new(1, 1, 1)
- TextLabel17.Font = Enum.Font.SourceSansLight
- TextLabel17.FontSize = Enum.FontSize.Size48
- TextLabel17.Text = "Credits to: Kaiji#7888"
- TextLabel17.TextColor = BrickColor.new("Dark grey")
- TextLabel17.TextColor3 = Color3.new(0.407843, 0.411765, 0.411765)
- TextLabel17.TextScaled = true
- TextLabel17.TextSize = 38
- TextLabel17.TextWrap = true
- TextLabel17.TextWrapped = true
- -- Set the FontStyle property to Italic
- TextLabel17.FontFace.Style = Enum.FontStyle.Italic
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = script
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement