Advertisement
scriptingtales

Roblox Script Test

Oct 30th, 2023
1,469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.21 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local DateRandomizer = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local UICorner = Instance.new("UICorner")
  9. local Generator = Instance.new("TextButton")
  10. local UICorner_2 = Instance.new("UICorner")
  11. local FrameLabel = Instance.new("TextLabel")
  12. local UICorner_3 = Instance.new("UICorner")
  13. local Month = Instance.new("TextLabel")
  14. local UICorner_4 = Instance.new("UICorner")
  15. local Day = Instance.new("TextLabel")
  16. local UICorner_5 = Instance.new("UICorner")
  17. local Year = Instance.new("TextLabel")
  18. local UICorner_6 = Instance.new("UICorner")
  19. local Comma = Instance.new("TextLabel")
  20. local UICorner_7 = Instance.new("UICorner")
  21. local Slash = Instance.new("TextLabel")
  22. local UICorner_8 = Instance.new("UICorner")
  23. local Slash_2 = Instance.new("TextLabel")
  24. local UICorner_9 = Instance.new("UICorner")
  25. local YearNAL = Instance.new("TextLabel")
  26. local UICorner_10 = Instance.new("UICorner")
  27. local DayNAL = Instance.new("TextLabel")
  28. local UICorner_11 = Instance.new("UICorner")
  29. local MonthNal = Instance.new("TextLabel")
  30. local UICorner_12 = Instance.new("UICorner")
  31. local CloseButton = Instance.new("TextButton")
  32. local UICorner_13 = Instance.new("UICorner")
  33. local OpenButton = Instance.new("TextButton")
  34. local UICorner_14 = Instance.new("UICorner")
  35.  
  36. --Properties:
  37.  
  38. DateRandomizer.Name = "DateRandomizer"
  39. DateRandomizer.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  40. DateRandomizer.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  41.  
  42. Frame.Parent = DateRandomizer
  43. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  44. Frame.Position = UDim2.new(0.200826436, 0, 0.16236341, 0)
  45. Frame.Size = UDim2.new(0, 724, 0, 502)
  46.  
  47. UICorner.Parent = Frame
  48.  
  49. Generator.Name = "Generator"
  50. Generator.Parent = Frame
  51. Generator.BackgroundColor3 = Color3.fromRGB(136, 136, 136)
  52. Generator.Position = UDim2.new(0.33011049, 0, 0.665338635, 0)
  53. Generator.Size = UDim2.new(0, 245, 0, 54)
  54. Generator.Font = Enum.Font.SourceSansLight
  55. Generator.Text = "Generate Random Date"
  56. Generator.TextColor3 = Color3.fromRGB(255, 255, 255)
  57. Generator.TextScaled = true
  58. Generator.TextSize = 14.000
  59. Generator.TextWrapped = true
  60.  
  61. UICorner_2.Parent = Generator
  62.  
  63. FrameLabel.Name = "FrameLabel"
  64. FrameLabel.Parent = Frame
  65. FrameLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  66. FrameLabel.Position = UDim2.new(0.12016575, 0, 0, 0)
  67. FrameLabel.Size = UDim2.new(0, 547, 0, 74)
  68. FrameLabel.Font = Enum.Font.SourceSansLight
  69. FrameLabel.Text = "Random Date Generator"
  70. FrameLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  71. FrameLabel.TextScaled = true
  72. FrameLabel.TextSize = 14.000
  73. FrameLabel.TextWrapped = true
  74.  
  75. UICorner_3.Parent = FrameLabel
  76.  
  77. Month.Name = "Month"
  78. Month.Parent = Frame
  79. Month.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  80. Month.Position = UDim2.new(0.190607741, 0, 0.245019913, 0)
  81. Month.Size = UDim2.new(0, 150, 0, 74)
  82. Month.Font = Enum.Font.SourceSansLight
  83. Month.Text = "1"
  84. Month.TextColor3 = Color3.fromRGB(0, 0, 0)
  85. Month.TextScaled = true
  86. Month.TextSize = 14.000
  87. Month.TextWrapped = true
  88.  
  89. UICorner_4.Parent = Month
  90.  
  91. Day.Name = "Day"
  92. Day.Parent = Frame
  93. Day.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  94. Day.Position = UDim2.new(0.436464101, 0, 0.247011945, 0)
  95. Day.Size = UDim2.new(0, 90, 0, 74)
  96. Day.Font = Enum.Font.SourceSansLight
  97. Day.Text = "24"
  98. Day.TextColor3 = Color3.fromRGB(0, 0, 0)
  99. Day.TextScaled = true
  100. Day.TextSize = 14.000
  101. Day.TextWrapped = true
  102.  
  103. UICorner_5.Parent = Day
  104.  
  105. Year.Name = "Year"
  106. Year.Parent = Frame
  107. Year.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  108. Year.Position = UDim2.new(0.613259614, 0, 0.245019898, 0)
  109. Year.Size = UDim2.new(0, 164, 0, 74)
  110. Year.Font = Enum.Font.SourceSansLight
  111. Year.Text = "2009"
  112. Year.TextColor3 = Color3.fromRGB(0, 0, 0)
  113. Year.TextScaled = true
  114. Year.TextSize = 14.000
  115. Year.TextWrapped = true
  116.  
  117. UICorner_6.Parent = Year
  118.  
  119. Comma.Name = "Comma"
  120. Comma.Parent = Frame
  121. Comma.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  122. Comma.Position = UDim2.new(0.555248618, 0, 0.430278867, 0)
  123. Comma.Size = UDim2.new(0, 16, 0, 74)
  124. Comma.Font = Enum.Font.SourceSansLight
  125. Comma.Text = ","
  126. Comma.TextColor3 = Color3.fromRGB(0, 0, 0)
  127. Comma.TextScaled = true
  128. Comma.TextSize = 14.000
  129. Comma.TextWrapped = true
  130.  
  131. UICorner_7.Parent = Comma
  132.  
  133. Slash.Name = "Slash"
  134. Slash.Parent = Frame
  135. Slash.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  136. Slash.Position = UDim2.new(0.569060743, 0, 0.245019928, 0)
  137. Slash.Size = UDim2.new(0, 32, 0, 74)
  138. Slash.Font = Enum.Font.SourceSansLight
  139. Slash.Text = "/"
  140. Slash.TextColor3 = Color3.fromRGB(0, 0, 0)
  141. Slash.TextScaled = true
  142. Slash.TextSize = 14.000
  143. Slash.TextWrapped = true
  144.  
  145. UICorner_8.Parent = Slash
  146.  
  147. Slash_2.Name = "Slash"
  148. Slash_2.Parent = Frame
  149. Slash_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  150. Slash_2.Position = UDim2.new(0.361878484, 0, 0.245019928, 0)
  151. Slash_2.Size = UDim2.new(0, 32, 0, 74)
  152. Slash_2.Font = Enum.Font.SourceSansLight
  153. Slash_2.Text = "/"
  154. Slash_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  155. Slash_2.TextScaled = true
  156. Slash_2.TextSize = 14.000
  157. Slash_2.TextWrapped = true
  158.  
  159. UICorner_9.Parent = Slash_2
  160.  
  161. YearNAL.Name = "YearNAL"
  162. YearNAL.Parent = Frame
  163. YearNAL.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  164. YearNAL.Position = UDim2.new(0.584254146, 0, 0.426294804, 0)
  165. YearNAL.Size = UDim2.new(0, 164, 0, 74)
  166. YearNAL.Font = Enum.Font.SourceSansLight
  167. YearNAL.Text = "2009"
  168. YearNAL.TextColor3 = Color3.fromRGB(0, 0, 0)
  169. YearNAL.TextScaled = true
  170. YearNAL.TextSize = 14.000
  171. YearNAL.TextWrapped = true
  172.  
  173. UICorner_10.Parent = YearNAL
  174.  
  175. DayNAL.Name = "DayNAL"
  176. DayNAL.Parent = Frame
  177. DayNAL.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  178. DayNAL.Position = UDim2.new(0.43784532, 0, 0.430278897, 0)
  179. DayNAL.Size = UDim2.new(0, 90, 0, 74)
  180. DayNAL.Font = Enum.Font.SourceSansLight
  181. DayNAL.Text = "24"
  182. DayNAL.TextColor3 = Color3.fromRGB(0, 0, 0)
  183. DayNAL.TextScaled = true
  184. DayNAL.TextSize = 14.000
  185. DayNAL.TextWrapped = true
  186.  
  187. UICorner_11.Parent = DayNAL
  188.  
  189. MonthNal.Name = "MonthNal"
  190. MonthNal.Parent = Frame
  191. MonthNal.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  192. MonthNal.Position = UDim2.new(0.220994473, 0, 0.430278897, 0)
  193. MonthNal.Size = UDim2.new(0, 150, 0, 74)
  194. MonthNal.Font = Enum.Font.SourceSansLight
  195. MonthNal.Text = "Jan"
  196. MonthNal.TextColor3 = Color3.fromRGB(0, 0, 0)
  197. MonthNal.TextScaled = true
  198. MonthNal.TextSize = 14.000
  199. MonthNal.TextWrapped = true
  200.  
  201. UICorner_12.Parent = MonthNal
  202.  
  203. CloseButton.Name = "CloseButton"
  204. CloseButton.Parent = Frame
  205. CloseButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  206. CloseButton.Position = UDim2.new(0.897790074, 0, 0, 0)
  207. CloseButton.Size = UDim2.new(0, 74, 0, 74)
  208. CloseButton.Font = Enum.Font.SourceSansLight
  209. CloseButton.Text = "X"
  210. CloseButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  211. CloseButton.TextScaled = true
  212. CloseButton.TextSize = 14.000
  213. CloseButton.TextWrapped = true
  214.  
  215. UICorner_13.Parent = CloseButton
  216.  
  217. OpenButton.Name = "OpenButton"
  218. OpenButton.Parent = DateRandomizer
  219. OpenButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  220. OpenButton.Position = UDim2.new(-0.000630140305, 0, 0.452094853, 0)
  221. OpenButton.Size = UDim2.new(0, 164, 0, 47)
  222. OpenButton.Visible = false
  223. OpenButton.Font = Enum.Font.SourceSansLight
  224. OpenButton.Text = "Open"
  225. OpenButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  226. OpenButton.TextScaled = true
  227. OpenButton.TextSize = 14.000
  228. OpenButton.TextWrapped = true
  229.  
  230. UICorner_14.Parent = OpenButton
  231.  
  232. -- Scripts:
  233.  
  234. local function BNJZXAV_fake_script() -- Generator.Script
  235.     local script = Instance.new('LocalScript', Generator)
  236.  
  237.     script.Parent.MouseButton1Click:Connect(function()
  238.        
  239.        
  240.         local MonthRandomizer = math.random(1, 12)
  241.        
  242.         local DayRandomizer = math.random(1, 31)
  243.        
  244.        
  245.         local DayFEBrandomizer = math.random(1, 28)
  246.         local DayFEBLEAPrandomizer = math.random(1, 29)
  247.        
  248.        
  249.         local YearRandomizer = math.random(1600, 2100)
  250.        
  251.        
  252.        
  253.         local MonthText = script.Parent.Parent.Month.Text
  254.        
  255.         local DayText = script.Parent.Parent.Day.Text
  256.        
  257.         local YearText = script.Parent.Parent.Year.Text
  258.        
  259.        
  260.        
  261.         local January = 1
  262.         local February = 2
  263.         local March = 3
  264.         local April = 4
  265.         local May = 5
  266.         local June = 6
  267.         local July = 7
  268.         local August = 8
  269.         local September = 9
  270.         local October = 10
  271.         local November = 11
  272.         local December = 12
  273.        
  274.         script.Parent.Parent.Day.Text = DayRandomizer
  275.    
  276.         script.Parent.Parent.Month.Text = MonthRandomizer
  277.    
  278.         script.Parent.Parent.Year.Text = YearRandomizer
  279.        
  280.        
  281.     -------------------- SEPARATOR ---------------------   
  282.    
  283.    
  284.         script.Parent.Parent.DayNAL.Text = DayRandomizer
  285.    
  286.         script.Parent.Parent.MonthNal.Text = MonthRandomizer
  287.    
  288.         script.Parent.Parent.YearNAL.Text = YearRandomizer
  289.        
  290.        
  291.        
  292.        
  293.         local JanuaryTEXT = "Jan"
  294.         local FebruaryTEXT = "Feb"
  295.         local MarchTEXT = "Mar"
  296.         local AprilTEXT = "Apr"
  297.         local MayTEXT = "May"
  298.         local JuneTEXT = "Jun"
  299.         local JulyTEXT = "Jul"
  300.         local AugustTEXT = "Aug"
  301.         local SeptemberTEXT = "Sept"
  302.         local OctoberTEXT = "Oct"
  303.         local NovemberTEXT = "Nov"
  304.         local DecemberTEXT = "Dec"
  305.        
  306.        
  307.        
  308.        
  309.         if MonthRandomizer == 1 then
  310.             script.Parent.Parent.MonthNal.Text = JanuaryTEXT
  311.         end
  312.        
  313.         if MonthRandomizer == 2 then
  314.             script.Parent.Parent.MonthNal.Text = FebruaryTEXT
  315.            
  316.             if MonthText == FebruaryTEXT then
  317.                 DayText = DayFEBrandomizer
  318.                 if YearRandomizer % 4 == 0 then
  319.                     if YearRandomizer % 100 == 0 then
  320.                         if YearRandomizer % 400 == 0 then
  321.                            
  322.                         end
  323.                     end
  324.                 else
  325.                    
  326.                 end
  327.             end
  328.         end
  329.        
  330.         if MonthRandomizer == 3 then
  331.             script.Parent.Parent.MonthNal.Text = MarchTEXT
  332.         end
  333.        
  334.         if MonthRandomizer == 4 then
  335.             script.Parent.Parent.MonthNal.Text = AprilTEXT
  336.         end
  337.        
  338.         if MonthRandomizer == 5 then
  339.             script.Parent.Parent.MonthNal.Text = MayTEXT
  340.         end
  341.        
  342.         if MonthRandomizer == 6 then
  343.             script.Parent.Parent.MonthNal.Text = JuneTEXT
  344.         end
  345.        
  346.         if MonthRandomizer == 7 then
  347.             script.Parent.Parent.MonthNal.Text = JulyTEXT
  348.         end
  349.        
  350.         if MonthRandomizer == 8 then
  351.             script.Parent.Parent.MonthNal.Text = AugustTEXT
  352.         end
  353.        
  354.         if MonthRandomizer == 9 then
  355.             script.Parent.Parent.MonthNal.Text = SeptemberTEXT
  356.         end
  357.        
  358.         if MonthRandomizer == 10 then
  359.             script.Parent.Parent.MonthNal.Text = OctoberTEXT
  360.         end
  361.        
  362.         if MonthRandomizer == 11 then
  363.             script.Parent.Parent.MonthNal.Text = NovemberTEXT
  364.         end
  365.        
  366.         if MonthRandomizer == 12 then
  367.             script.Parent.Parent.MonthNal.Text = DecemberTEXT
  368.         end
  369.     end)
  370. end
  371. coroutine.wrap(BNJZXAV_fake_script)()
  372. local function QYYIM_fake_script() -- Frame.Dragify
  373.     local script = Instance.new('LocalScript', Frame)
  374.  
  375.     local Frame = script.Parent
  376.    
  377.     Frame.Active = true
  378.     Frame.Selectable = true
  379.     Frame.Draggable = true
  380. end
  381. coroutine.wrap(QYYIM_fake_script)()
  382. local function XNGFBQZ_fake_script() -- CloseButton.CloseScript
  383.     local script = Instance.new('LocalScript', CloseButton)
  384.  
  385.     local Frame = script.Parent.Parent
  386.    
  387.     script.Parent.MouseButton1Click:Connect(function()
  388.         Frame.Visible = false
  389.         script.Parent.Parent.Parent.OpenButton.Visible = true
  390.     end)
  391. end
  392. coroutine.wrap(XNGFBQZ_fake_script)()
  393. local function JHFLA_fake_script() -- OpenButton.OpenScript
  394.     local script = Instance.new('LocalScript', OpenButton)
  395.  
  396.     local Frame = script.Parent.Parent.Frame
  397.    
  398.     script.Parent.MouseButton1Click:Connect(function()
  399.         Frame.Visible = true
  400.         script.Parent.Visible = false
  401.     end)
  402. end
  403. coroutine.wrap(JHFLA_fake_script)()
  404.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement