RandomMagics

Star Simulator Beta

Apr 21st, 2022
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.25 KB | None | 0 0
  1. local Material = loadstring(game:HttpGet("https://raw.githubusercontent.com/Kinlei/MaterialLua/master/Module.lua"))()
  2.  
  3. local auto = {}
  4.  
  5. local Autofarm = false
  6.  
  7. auto.Wood = false
  8.  
  9. auto.Iron = false
  10.  
  11. auto.Cobalt = false
  12.  
  13. auto.Coins = false
  14.  
  15. auto.Amethyst = false
  16.  
  17. auto.Mushroom_Tree = false
  18.  
  19. auto.Emerald = false
  20.  
  21. auto.Topaz = false
  22.  
  23. auto.Green_Gem = false
  24.  
  25. auto.Cactus = false
  26.  
  27. auto.Ruby = false
  28.  
  29. local name = game:GetService("Players").LocalPlayer.Name
  30.  
  31. local axe = "Axe"
  32.  
  33. local pick = "Pickaxe"
  34.  
  35. local uphpevent = game:GetService("ReplicatedStorage").Attack.UpdateHPEvent;
  36.  
  37. local conv = game:GetService("ReplicatedStorage").Resources.Conversion;
  38.  
  39. local craft = game:GetService("ReplicatedStorage").Resources.BuildingRemo;
  40.  
  41. local showland = game:GetService("ReplicatedStorage").PlayerData.Unlocker.LandShow;
  42.  
  43. local plate = "IronPlate"
  44.  
  45. local plank = "Plank"
  46.  
  47. local all = "All"
  48.  
  49.  
  50.  
  51. local X = Material.Load({
  52.  
  53. Title = "Obsidain: Star Simulator Edition",
  54.  
  55. Style = 3,
  56.  
  57. SizeX = 500,
  58.  
  59. SizeY = 350,
  60.  
  61. Theme = "Dark",
  62.  
  63. })
  64.  
  65.  
  66.  
  67. local Y = X.New({
  68.  
  69. Title = "Main"
  70.  
  71. })
  72.  
  73.  
  74.  
  75. local Ye = X.New({
  76.  
  77. Title = "Credits"
  78.  
  79. })
  80.  
  81.  
  82. -- I didn't know how to make the banners work.
  83. local AAAA = Ye.Button({
  84.  
  85. Text = "Fungbert: UILib",
  86.  
  87. Callback = function()
  88.  
  89.  
  90.  
  91. end
  92.  
  93. })
  94.  
  95. local AAAAA = Ye.Button({
  96.  
  97. Text = "Z3ta: Features",
  98.  
  99. Callback = function()
  100.  
  101.  
  102.  
  103. end
  104.  
  105. })
  106.  
  107.  
  108.  
  109. if syn then
  110.  
  111. local XB = Y.Button({
  112.  
  113. Text = "Copy Discord Invite to clipboard",
  114.  
  115. Callback = function()
  116.  
  117. syn.write_clipboard("https://discord.gg/FQRPFeFWqN")
  118.  
  119. end
  120.  
  121. })
  122.  
  123. elseif ScriptWare then
  124.  
  125. local XB = Y.Button({
  126.  
  127. Text = "Copy Discord Invite to clipboard",
  128.  
  129. Callback = function()
  130.  
  131. setclipboard("https://discord.gg/FQRPFeFWqN")
  132.  
  133. end
  134.  
  135. })
  136.  
  137. else
  138.  
  139. local CB = Y.Button({
  140.  
  141. Text = "Discord: FQRPFeFWqN",
  142.  
  143. Callback = function()
  144.  
  145.  
  146.  
  147. end
  148.  
  149. })
  150.  
  151. end
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159. local A = Y.Button({
  160.  
  161. Text = "Inf Planks (Requires 15 wood or more)",
  162.  
  163. Callback = function()
  164.  
  165. conv:InvokeServer(plank, all)
  166.  
  167. task.wait(0.1)
  168.  
  169. craft:InvokeServer(plank,math.huge)
  170.  
  171. end,
  172.  
  173. })
  174.  
  175. local AA = Y.Button({
  176.  
  177. Text = "Inf Iron (Requires 25 iron ore or more)",
  178.  
  179. Callback = function()
  180.  
  181. conv:InvokeServer(plate, all)
  182.  
  183. task.wait(0.1)
  184.  
  185. craft:InvokeServer(plate,math.huge)
  186.  
  187. end
  188.  
  189. })
  190.  
  191.  
  192.  
  193. local AAA = Y.Button({
  194.  
  195. Text = "Unlock all land (Not Permanant)",
  196.  
  197. })
  198.  
  199.  
  200.  
  201. local BB = Y.Button({
  202.  
  203. Text = "Unlock everyone's land (Not Permanant)",
  204.  
  205. Callback = function()
  206.  
  207. local t = {}
  208.  
  209. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  210.  
  211. table.insert(t, v.Name)
  212.  
  213. end
  214.  
  215. for i,name in pairs(t) do
  216.  
  217. local data = game:GetService("Workspace")["Star_"..name].Player.Land:GetChildren()
  218.  
  219. for a,land in pairs(data) do
  220.  
  221. showland:FireServer(land)
  222.  
  223. end
  224.  
  225. end
  226.  
  227. end
  228.  
  229. })
  230.  
  231. local B = Y.Toggle({
  232.  
  233. Text = "Autofarm",
  234.  
  235. Callback = function(Value)
  236.  
  237. Autofarm = Value
  238.  
  239. end,
  240.  
  241. Enabled = false,
  242.  
  243. Menu = {
  244.  
  245. Information = function(self)
  246.  
  247. X.Banner({
  248.  
  249. Text = "Enables/Disables autofarming for the buttons below."
  250.  
  251. })
  252.  
  253. end
  254.  
  255. }
  256.  
  257. })
  258.  
  259.  
  260.  
  261. local E = Y.ChipSet({
  262.  
  263. Text = "Chipping away",
  264.  
  265. Callback = function(ChipSet)
  266.  
  267. table.foreach(ChipSet, function(Option, Value)
  268. auto[Option] = Value
  269. end)
  270.  
  271. end,
  272.  
  273. Options = {
  274.  
  275. Wood = false,
  276.  
  277. Iron = false,
  278.  
  279. Cobalt = false,
  280.  
  281. Coins = false,
  282.  
  283. Amethyst = false,
  284.  
  285. Mushroom_Tree = false,
  286.  
  287. Emerald = false,
  288.  
  289. Topaz = false,
  290.  
  291. Green_Gem = false,
  292.  
  293. Cactus = false,
  294.  
  295. Ruby = false,
  296.  
  297. }
  298.  
  299. })
  300.  
  301.  
  302.  
  303. while task.wait() do -- Warning even shitter code below.
  304.  
  305. if Autofarm == true then
  306.  
  307. if auto.Wood then
  308.  
  309. local data = game.Workspace["Star_"..name].Player.Land["Land_1140"].Tree["Tree_1006"]["1"]
  310.  
  311. uphpevent:FireServer(data,axe)
  312.  
  313. end
  314.  
  315. if auto.Iron then
  316.  
  317. local data = game:GetService("Workspace")["Star_"..name].Player.Land["Land_1090"].Ore["Ore_1009"]["2"];
  318.  
  319. uphpevent:FireServer(data,pick)
  320.  
  321. end
  322.  
  323. if auto.Coins then
  324.  
  325. local data = game:GetService("Workspace")["Star_"..name].Player.Land["Land_1070"].Ore["Ore_1004"]["1"];
  326.  
  327. uphpevent:FireServer(data,pick)
  328.  
  329. end
  330.  
  331. if auto.Cobalt then
  332.  
  333. local data = game:GetService("Workspace")["Star_"..name].Player.Land["Land_1015"].Ore["Ore_1002"]["1"];
  334.  
  335. uphpevent:FireServer(data,pick)
  336.  
  337. end
  338.  
  339. if auto.Amethyst then
  340.  
  341. local data = game:GetService("Workspace")["Star_"..name].Player.Land["Land_1067"].Ore["Ore_1005"]["1"];
  342.  
  343. uphpevent:FireServer(data,pick)
  344.  
  345. end
  346.  
  347. if auto.Mushroom_Tree then
  348.  
  349. local data = game:GetService("Workspace")["Star_Zeta_Dev"].Player.Land["Land_1076"].Tree["Tree_1008"]["1"];
  350.  
  351. uphpevent:FireServer(data,axe)
  352.  
  353. end
  354.  
  355. if auto.Emerald then
  356.  
  357. local data = game:GetService("Workspace")["Star_"..name].Player.Land["Land_1144"].Ore["Ore_1006"]["2"];
  358.  
  359. uphpevent:FireServer(data,pick)
  360.  
  361. end
  362.  
  363. if auto.Topaz then
  364.  
  365. local data = game.Workspace["Star_"..name].Player.Land["Land_1118"].Ore["Ore_1007"]["1"]
  366.  
  367. uphpevent:FireServer(data,pick)
  368.  
  369. end
  370.  
  371. if auto.Green_Gem then
  372.  
  373. local data = game.Workspace["Star_"..name].Player.Land["Land_1123"].Ore["Ore_1008"]["1"]
  374.  
  375. uphpevent:FireServer(data,pick)
  376.  
  377. end
  378.  
  379. if auto.Cactus then
  380.  
  381. local data = game.Workspace["Star_"..name].Player.Land["Land_1138"].Tree["Tree_1007"]["1"]
  382.  
  383. uphpevent:FireServer(data,axe)
  384.  
  385. end
  386.  
  387. if auto.Ruby then
  388.  
  389. local data = game.Workspace["Star_"..name].Player.Land["Land_1142"].Ore["Ore_1010"]["1"]
  390.  
  391. uphpevent:FireServer(data,pick)
  392.  
  393. end
  394.  
  395. else
  396.  
  397.  
  398.  
  399. end
  400. end
Add Comment
Please, Sign In to add comment