Advertisement
Guest User

UnMineral War Tycoon GUI by Pepelol23272 TheRobloxPlayer2509

a guest
Oct 20th, 2019
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 15.24 KB | None | 0 0
  1. --[[
  2.     GUI made by Pepelol23272 on v3rm (TheRobloxPlayer2509)
  3.     GUI to lua plugin by W_intry (https://www.roblox.com/library/1343400903/Gui-to-Lua-Converter-Revamped)
  4.     Functions, code and scripts by Pepelol23272 on v3rm (TheRobloxPlayer2509)
  5.     Programmed in Roblox Studio with the help of Dex Explorer V3
  6.    
  7.     Tested with my custom executor, Synapse X, ProtoSmasher and Proxo
  8.        
  9.     Scripted at 20/10/2019
  10. --]]
  11.  
  12. math.randomseed(tick())
  13.  
  14. local function TableToString(Table)
  15.     if not Table then return end
  16.     local desiredString
  17.     for i,v in pairs(Table) do
  18.         if not desiredString then
  19.             desiredString = tostring(v)
  20.         else
  21.             desiredString = desiredString.. tostring(v)
  22.         end
  23.     end
  24.     print(desiredString)
  25.     return desiredString
  26. end
  27.  
  28. local function GenerateRandomString()
  29.     local stringTable = {}
  30.     for i = 1, math.random(8, 16) do
  31.         local luckyNumber = math.random(1, 2)
  32.         if luckyNumber == 1 then
  33.             stringTable[#stringTable + 1] = string.upper(tostring(string.char(math.random(97, 122))))
  34.         else
  35.             stringTable[#stringTable + 1] = string.lower(tostring(string.char(math.random(97, 122))))
  36.         end
  37.     end
  38.     return stringTable
  39. end
  40.  
  41. print("UnMineral War Tycoon GUI by Pepelol23272 on v3rm (TheRobloxPlayer2509)")
  42. wait(.03)
  43. print("Starting up system")
  44. wait()
  45. pcall(function()
  46.     local NewMsg = Instance.new("Message", workspace)
  47.     local IdkWhatIsThisLol1 = GenerateRandomString()
  48.     local IdkWhatIsThisLol2 = TableToString(IdkWhatIsThisLol1)
  49.     NewMsg.Name = tostring(IdkWhatIsThisLol2)
  50.     NewMsg.Text = "Done loading! Tip: Press F9 to view your current power (Must purchase Wall2 first!)"
  51.     wait(3)
  52.     NewMsg.Text = "GUI and all scripts made by Pepelol23272 on v3rm (TheRobloxPlayer2509). Join my Discord server! wPtHUBn"
  53.     game:GetService("Debris"):AddItem(NewMsg, 5)
  54. end)
  55.  
  56. -- Instances:
  57.  
  58. local UnMineralWarTycoon = Instance.new("ScreenGui")
  59. local BG = Instance.new("Frame")
  60. local Title = Instance.new("TextLabel")
  61. local Manual = Instance.new("TextButton")
  62. local DryIce = Instance.new("TextButton")
  63. local AutoCollect = Instance.new("TextButton")
  64. local AutoBuy = Instance.new("TextButton")
  65. local BringUpgrade = Instance.new("TextButton")
  66. local Heal = Instance.new("TextButton")
  67. local BypassedSpeed = Instance.new("TextButton")
  68. local ResetLighting = Instance.new("TextButton")
  69. local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  70. local Credit = Instance.new("TextLabel")
  71. local Toggle = Instance.new("TextButton")
  72.  
  73. --Properties:
  74. local GeneratedRawTable = GenerateRandomString()
  75. local GeneratedString = TableToString(GeneratedRawTable)
  76. UnMineralWarTycoon.Name = GeneratedString
  77. UnMineralWarTycoon.Parent = game:GetService("CoreGui")
  78. UnMineralWarTycoon.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  79. UnMineralWarTycoon.ResetOnSpawn = false
  80.  
  81. BG.Name = "BG"
  82. BG.Parent = UnMineralWarTycoon
  83. BG.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  84. BG.BackgroundTransparency = 0.30000001192093
  85. BG.Position = UDim2.new(0.112276375, 0, 0.218604654, 0)
  86. BG.Size = UDim2.new(0.174999997, 0, 0.5, 0)
  87.  
  88. Title.Name = "Title"
  89. Title.Parent = BG
  90. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  91. Title.BackgroundTransparency = 1
  92. Title.Position = UDim2.new(0.0500000007, 0, 0, 0)
  93. Title.Size = UDim2.new(0.899999976, 0, 0.150000006, 0)
  94. Title.Font = Enum.Font.SourceSansBold
  95. Title.Text = "UnMineral War Tycoon"
  96. Title.TextColor3 = Color3.new(0.666667, 1, 0)
  97. Title.TextScaled = true
  98. Title.TextSize = 14
  99. Title.TextWrapped = true
  100.  
  101. Manual.Name = "Manual"
  102. Manual.Parent = BG
  103. Manual.BackgroundColor3 = Color3.new(1, 0, 0)
  104. Manual.Position = UDim2.new(0.0250000004, 0, 0.150000006, 0)
  105. Manual.Size = UDim2.new(0.449999988, 0, 0.150000006, 0)
  106. Manual.Font = Enum.Font.SourceSansBold
  107. Manual.Text = "Spam Manual Mine: Off"
  108. Manual.TextColor3 = Color3.new(0, 0, 0)
  109. Manual.TextScaled = true
  110. Manual.TextSize = 14
  111. Manual.TextWrapped = true
  112.  
  113. DryIce.Name = "DryIce"
  114. DryIce.Parent = BG
  115. DryIce.BackgroundColor3 = Color3.new(1, 0, 0)
  116. DryIce.Position = UDim2.new(0.524999976, 0, 0.150000006, 0)
  117. DryIce.Size = UDim2.new(0.449999988, 0, 0.150000006, 0)
  118. DryIce.Font = Enum.Font.SourceSansBold
  119. DryIce.Text = "Spam Water Tank: Off"
  120. DryIce.TextColor3 = Color3.new(0, 0, 0)
  121. DryIce.TextScaled = true
  122. DryIce.TextSize = 14
  123. DryIce.TextWrapped = true
  124.  
  125. AutoCollect.Name = "AutoCollect"
  126. AutoCollect.Parent = BG
  127. AutoCollect.BackgroundColor3 = Color3.new(1, 0, 0)
  128. AutoCollect.Position = UDim2.new(0.0250000004, 0, 0.324999988, 0)
  129. AutoCollect.Size = UDim2.new(0.449999988, 0, 0.150000006, 0)
  130. AutoCollect.Font = Enum.Font.SourceSansBold
  131. AutoCollect.Text = "Auto Collect: Off"
  132. AutoCollect.TextColor3 = Color3.new(0, 0, 0)
  133. AutoCollect.TextScaled = true
  134. AutoCollect.TextSize = 14
  135. AutoCollect.TextWrapped = true
  136.  
  137. AutoBuy.Name = "AutoBuy"
  138. AutoBuy.Parent = BG
  139. AutoBuy.BackgroundColor3 = Color3.new(1, 0, 0)
  140. AutoBuy.Position = UDim2.new(0.524999976, 0, 0.324999988, 0)
  141. AutoBuy.Size = UDim2.new(0.449999988, 0, 0.150000006, 0)
  142. AutoBuy.Font = Enum.Font.SourceSansBold
  143. AutoBuy.Text = "Auto Buy: Off"
  144. AutoBuy.TextColor3 = Color3.new(0, 0, 0)
  145. AutoBuy.TextScaled = true
  146. AutoBuy.TextSize = 14
  147. AutoBuy.TextWrapped = true
  148.  
  149. BringUpgrade.Name = "BringUpgrade"
  150. BringUpgrade.Parent = BG
  151. BringUpgrade.BackgroundColor3 = Color3.new(1, 1, 0)
  152. BringUpgrade.Position = UDim2.new(0.0250000004, 0, 0.675000012, 0)
  153. BringUpgrade.Size = UDim2.new(0.449999988, 0, 0.150000006, 0)
  154. BringUpgrade.Font = Enum.Font.SourceSansBold
  155. BringUpgrade.Text = "Create OP Upgrader"
  156. BringUpgrade.TextColor3 = Color3.new(0, 0, 0)
  157. BringUpgrade.TextScaled = true
  158. BringUpgrade.TextSize = 14
  159. BringUpgrade.TextWrapped = true
  160.  
  161. Heal.Name = "Heal"
  162. Heal.Parent = BG
  163. Heal.BackgroundColor3 = Color3.new(1, 1, 0)
  164. Heal.Position = UDim2.new(0.524999976, 0, 0.5, 0)
  165. Heal.Size = UDim2.new(0.449999988, 0, 0.150000006, 0)
  166. Heal.Font = Enum.Font.SourceSansBold
  167. Heal.Text = "Heal Yourself"
  168. Heal.TextColor3 = Color3.new(0, 0, 0)
  169. Heal.TextScaled = true
  170. Heal.TextSize = 14
  171. Heal.TextWrapped = true
  172.  
  173. BypassedSpeed.Name = "BypassedSpeed"
  174. BypassedSpeed.Parent = BG
  175. BypassedSpeed.BackgroundColor3 = Color3.new(1, 0, 0)
  176. BypassedSpeed.Position = UDim2.new(0.0250000004, 0, 0.5, 0)
  177. BypassedSpeed.Size = UDim2.new(0.449999988, 0, 0.150000006, 0)
  178. BypassedSpeed.Font = Enum.Font.SourceSansBold
  179. BypassedSpeed.Text = "Bypassed Speed: Off"
  180. BypassedSpeed.TextColor3 = Color3.new(0, 0, 0)
  181. BypassedSpeed.TextScaled = true
  182. BypassedSpeed.TextSize = 14
  183. BypassedSpeed.TextWrapped = true
  184.  
  185. ResetLighting.Name = "ResetLighting"
  186. ResetLighting.Parent = BG
  187. ResetLighting.BackgroundColor3 = Color3.new(1, 1, 0)
  188. ResetLighting.Position = UDim2.new(0.524999976, 0, 0.675000012, 0)
  189. ResetLighting.Size = UDim2.new(0.449999988, 0, 0.150000006, 0)
  190. ResetLighting.Font = Enum.Font.SourceSansBold
  191. ResetLighting.Text = "Reset Lighting"
  192. ResetLighting.TextColor3 = Color3.new(0, 0, 0)
  193. ResetLighting.TextScaled = true
  194. ResetLighting.TextSize = 14
  195. ResetLighting.TextWrapped = true
  196.  
  197. UIAspectRatioConstraint.Parent = BG
  198. UIAspectRatioConstraint.AspectRatio = 0.87961238622665
  199.  
  200. Credit.Name = "Credit"
  201. Credit.Parent = BG
  202. Credit.BackgroundColor3 = Color3.new(1, 1, 1)
  203. Credit.BackgroundTransparency = 1
  204. Credit.Position = UDim2.new(0.0500000007, 0, 0.850000024, 0)
  205. Credit.Size = UDim2.new(0.899999976, 0, 0.150000006, 0)
  206. Credit.Font = Enum.Font.SourceSansBold
  207. Credit.Text = "GUI and all scripts made by Pepelol23272 on v3rm (TheRobloxPlayer2509)"
  208. Credit.TextColor3 = Color3.new(0.666667, 1, 0)
  209. Credit.TextScaled = true
  210. Credit.TextSize = 14
  211. Credit.TextWrapped = true
  212.  
  213. Toggle.Name = "Toggle"
  214. Toggle.Parent = UnMineralWarTycoon
  215. Toggle.BackgroundColor3 = Color3.new(1, 1, 0)
  216. Toggle.Position = UDim2.new(0, 0, 0.9, 0)
  217. Toggle.Size = UDim2.new(0.0500000007, 0, 0.0500000007, 0)
  218. Toggle.Font = Enum.Font.SourceSansBold
  219. Toggle.Text = "Toggle"
  220. Toggle.TextColor3 = Color3.new(0, 0, 0)
  221. Toggle.TextSize = 14
  222.  
  223. local AutoBuyEnabled = false
  224. local AutoCollectEnabled = false
  225. local BypassedSpeedEnabled = false
  226. local AutoManualMineEnabled = false
  227. local AutoWaterTankEnabled = false
  228.  
  229. local function InsertFakeScript(ancestor)
  230.     return Instance.new("LocalScript", ancestor)
  231. end
  232.  
  233. local ToggleScript = InsertFakeScript(Toggle)
  234. ToggleScript.Parent.MouseButton1Click:Connect(function()
  235.     BG.Visible = not BG.Visible
  236. end)
  237.  
  238. local AutoBuyScript = InsertFakeScript(AutoBuy)
  239. AutoBuyScript.Parent.MouseButton1Click:Connect(function()
  240.     if AutoBuyEnabled then
  241.         AutoBuyEnabled = false
  242.         AutoBuy.Text = "Auto Buy: Off"
  243.         AutoBuy.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  244.     else
  245.         AutoBuyEnabled = true
  246.         AutoBuy.Text = "Auto Buy: On"
  247.         AutoBuy.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  248.     end
  249. end)
  250.  
  251. local AutoCollectScript = InsertFakeScript(AutoCollect)
  252. AutoCollectScript.Parent.MouseButton1Click:Connect(function()
  253.     if AutoCollectEnabled then
  254.         AutoCollectEnabled = false
  255.         AutoCollect.Text = "Auto Collect: Off"
  256.         AutoCollect.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  257.     else
  258.         AutoCollectEnabled = true
  259.         AutoCollect.Text = "Auto Collect: On"
  260.         AutoCollect.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  261.     end
  262. end)
  263.  
  264. local ManualScript = InsertFakeScript(Manual)
  265. ManualScript.Parent.MouseButton1Click:Connect(function()
  266.     if AutoManualMineEnabled then
  267.         AutoManualMineEnabled = false
  268.         Manual.Text = "Spam Manual Mine: Off"
  269.         Manual.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  270.     else
  271.         AutoManualMineEnabled = true
  272.         Manual.Text = "Spam Manual Mine: On"
  273.         Manual.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  274.     end
  275. end)
  276.  
  277. local WaterScript = InsertFakeScript(DryIce)
  278. WaterScript.Parent.MouseButton1Click:Connect(function()
  279.     if AutoWaterTankEnabled then
  280.         AutoWaterTankEnabled = false
  281.         DryIce.Text = "Spam Water Tank: Off"
  282.         DryIce.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  283.     else
  284.         AutoWaterTankEnabled = true
  285.         DryIce.Text = "Spam Water Tank: On"
  286.         DryIce.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  287.     end
  288. end)
  289.  
  290. local SpeedScript = InsertFakeScript(BypassedSpeed)
  291. SpeedScript.Parent.MouseButton1Click:Connect(function()
  292.     if BypassedSpeedEnabled then
  293.         BypassedSpeedEnabled = false
  294.         BypassedSpeed.Text = "Bypassed Speed: Off"
  295.         BypassedSpeed.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  296.     else
  297.         BypassedSpeedEnabled = true
  298.         BypassedSpeed.Text = "Bypassed Speed: On"
  299.         BypassedSpeed.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  300.     end
  301. end)
  302.  
  303. local HealScript = InsertFakeScript(Heal)
  304. local HealDebounce = true
  305. HealScript.Parent.MouseButton1Click:Connect(function()
  306.     pcall(function()
  307.         if not HealDebounce then return end
  308.         HealDebounce = false
  309.         local SavedLoc = workspace.Tycoons[game.Players.LocalPlayer.Name.. "'s Tycoon"].PurchasedObjects.H1.Part.Position
  310.         coroutine.resume(coroutine.create(function()
  311.             wait(1)
  312.             workspace.Tycoons[game.Players.LocalPlayer.Name.. "'s Tycoon"].PurchasedObjects.H1.Part.Position = SavedLoc
  313.             workspace.Tycoons[game.Players.LocalPlayer.Name.. "'s Tycoon"].PurchasedObjects.H1.Part.CanCollide = true
  314.             workspace.Tycoons[game.Players.LocalPlayer.Name.. "'s Tycoon"].PurchasedObjects.H1.Part.Transparency = 0
  315.             wait(.5)
  316.             HealDebounce = true
  317.         end))
  318.         workspace.Tycoons[game.Players.LocalPlayer.Name.. "'s Tycoon"].PurchasedObjects.H1.Part.CanCollide = false
  319.         workspace.Tycoons[game.Players.LocalPlayer.Name.. "'s Tycoon"].PurchasedObjects.H1.Part.Transparency = 1
  320.         wait(.03)
  321.         workspace.Tycoons[game.Players.LocalPlayer.Name.. "'s Tycoon"].PurchasedObjects.H1.Part.Position = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  322.     end)
  323. end)
  324.  
  325. local ResetLightingScript = InsertFakeScript(ResetLighting)
  326. local ResetLightingUsed = false
  327. ResetLightingScript.Parent.MouseButton1Click:Connect(function()
  328.     pcall(function()
  329.         if ResetLightingUsed then return end
  330.         ResetLightingUsed = true
  331.         for i,v in pairs(game.Lighting:GetChildren()) do
  332.             if v:IsA("ColorCorrectionEffect") or v:IsA("Sky") or v:IsA("BlurEffect") or v:IsA("BloomEffect") or v:IsA("SunRaysEffect") then
  333.                 v:Destroy()
  334.             end
  335.         end
  336.         game.Lighting.Ambient = Color3.fromRGB(255, 255, 255)
  337.         game.Lighting.Brightness = 1
  338.         game.Lighting.ClockTime = 14
  339.         game.Lighting.ColorShift_Bottom = Color3.fromRGB(255, 255, 255)
  340.         game.Lighting.ColorShift_Top = Color3.fromRGB(255, 255, 255)
  341.         game.Lighting.ExposureCompensation = 0
  342.         game.Lighting.FogColor = Color3.fromRGB(255, 255, 255)
  343.         game.Lighting.FogEnd = 999999999
  344.         game.Lighting.GeographicLatitude = 41.733
  345.         game.Lighting.OutdoorAmbient = Color3.fromRGB(255, 255, 255)
  346.         game.Lighting.GlobalShadows = true
  347.        
  348.         game.Lighting.Changed:Connect(function()
  349.             game.Lighting.Ambient = Color3.fromRGB(255, 255, 255)
  350.             game.Lighting.Brightness = 1
  351.             game.Lighting.ClockTime = 14
  352.             game.Lighting.ColorShift_Bottom = Color3.fromRGB(255, 255, 255)
  353.             game.Lighting.ColorShift_Top = Color3.fromRGB(255, 255, 255)
  354.             game.Lighting.ExposureCompensation = 0
  355.             game.Lighting.FogColor = Color3.fromRGB(255, 255, 255)
  356.             game.Lighting.FogEnd = 999999999
  357.             game.Lighting.GeographicLatitude = 41.733
  358.             game.Lighting.OutdoorAmbient = Color3.fromRGB(255, 255, 255)
  359.             game.Lighting.GlobalShadows = true
  360.         end)
  361.     end)
  362. end)
  363.  
  364. local CreateOPUpgraderScript = InsertFakeScript(BringUpgrade)
  365. CreateOPUpgraderScript.Parent.MouseButton1Click:Connect(function()
  366.     for i,v in pairs(workspace.Tycoons:GetDescendants()) do
  367.         pcall(function()
  368.             if v.Name == "Upgrade" and v.Parent:IsA("Model") and v:IsA("BasePart") then
  369.                 v.CanCollide = false
  370.                 v.Position = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  371.             end
  372.         end)
  373.     end
  374. end)
  375.  
  376. coroutine.resume(coroutine.create(function()
  377.     while wait(1) do
  378.         if AutoWaterTankEnabled then
  379.             pcall(function()
  380.                 fireclickdetector(workspace.Tycoons[game.Players.LocalPlayer.Name.. "'s Tycoon"].PurchasedObjects.bWaterTank.button.ClickDetector)
  381.             end)
  382.         end
  383.         if AutoBuyEnabled then
  384.             for i,v in pairs(workspace.Tycoons[game.Players.LocalPlayer.Name.. "'s Tycoon"].Buttons:GetDescendants()) do
  385.                 pcall(function()
  386.                     if v.Name == "Head" and v.Parent:IsA("Model") and v.Object.Name ~= "Prem" and v.Object.Name ~= "VIP" then
  387.                         v.CanCollide = false
  388.                         v.Transparency = 1
  389.                         v.Position = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  390.                     end
  391.                 end)
  392.             end
  393.         end
  394.         if AutoCollectEnabled then
  395.             pcall(function()
  396.                 workspace.Tycoons[game.Players.LocalPlayer.Name.. "'s Tycoon"].Essentials.cashCollector.Giver.CanCollide = false
  397.                 workspace.Tycoons[game.Players.LocalPlayer.Name.. "'s Tycoon"].Essentials.cashCollector.Giver.Transparency = 1
  398.                 workspace.Tycoons[game.Players.LocalPlayer.Name.. "'s Tycoon"].Essentials.cashCollector.Giver.Position = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  399.             end)
  400.         end
  401.         pcall(function()
  402.             print(workspace.Tycoons[game.Players.LocalPlayer.Name.. "'s Tycoon"].PurchasedObjects.Wall2.CurrentPowerDisplay.Display.SurfaceGui.CashLabel.Text)
  403.         end)
  404.     end
  405. end))
  406.  
  407. while wait(.03) do
  408.     if BypassedSpeedEnabled then
  409.         pcall(function()
  410.             game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 30
  411.         end)
  412.     end
  413.     if AutoManualMineEnabled then
  414.         fireclickdetector(workspace.Tycoons[game.Players.LocalPlayer.Name.. "'s Tycoon"].PurchasedObjects.Clicker1.Button.ClickDetector)
  415.     end
  416. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement