View difference between Paste ID: 801rsfCt and YmWkGVWk
SHOW: | | - or go back to the newest paste.
1
_G.WS = "135";
2
				local Humanoid = game:GetService("Players").LocalPlayer.Character.Humanoid;
3
				Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
4
				Humanoid.WalkSpeed = _G.WS;
5
				end)
6
				Humanoid.WalkSpeed = _G.WS;
7
8
local UserInputService = game:GetService("UserInputService")
9
local localPlayer = game.Players.LocalPlayer
10
local character
11
local humanoid
12
 
13
local canDoubleJump = false
14
local hasDoubleJumped = false
15
local oldPower
16
local TIME_BETWEEN_JUMPS = 0.2
17
local DOUBLE_JUMP_POWER_MULTIPLIER = 2
18
 
19
function onJumpRequest()
20
    if not character or not humanoid or not character:IsDescendantOf(workspace) or
21
     humanoid:GetState() == Enum.HumanoidStateType.Dead then
22
        return
23
    end
24
 
25
    if canDoubleJump and not hasDoubleJumped then
26
        hasDoubleJumped = true
27
        humanoid.JumpPower = oldPower * DOUBLE_JUMP_POWER_MULTIPLIER
28
        humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
29
    end
30
end
31
 
32
local function characterAdded(newCharacter)
33
    character = newCharacter
34
    humanoid = newCharacter:WaitForChild("Humanoid")
35
    hasDoubleJumped = false
36
    canDoubleJump = false
37
    oldPower = humanoid.JumpPower
38
 
39
    humanoid.StateChanged:connect(function(old, new)
40
        if new == Enum.HumanoidStateType.Landed then
41
            canDoubleJump = false
42
            hasDoubleJumped = false
43
            humanoid.JumpPower = oldPower
44
        elseif new == Enum.HumanoidStateType.Freefall then
45
            wait(TIME_BETWEEN_JUMPS)
46
            canDoubleJump = true
47
        end
48
    end)
49
end
50
 
51
if localPlayer.Character then
52
    characterAdded(localPlayer.Character)
53
end
54
 
55
localPlayer.CharacterAdded:connect(characterAdded)
56
UserInputService.JumpRequest:connect(onJumpRequest)
57
58
local jump = 120 -- Add the amount of jump power you want here!
59
 
60
spawn(function()
61
while wait() do
62
game.Players.LocalPlayer.Character.Humanoid.JumpPower = jump
63
end
64
end)
65
66
local ScreenGui = Instance.new("ScreenGui")
67
local MenuFrame = Instance.new("Frame")
68
local MenuTitlebar = Instance.new("Frame")
69
local TitleMenu = Instance.new("TextLabel")
70
local Utilities = Instance.new("TextButton")
71
local AutoSetup = Instance.new("TextButton")
72
local HideMenu = Instance.new("TextButton")
73
local OreBoost = Instance.new("TextButton")
74
local Util = Instance.new("Frame")
75
local UtilitiesTitlebar = Instance.new("Frame")
76
local BackMenuU = Instance.new("TextButton")
77
local TextLabel = Instance.new("TextLabel")
78
local AutoRebirth = Instance.new("TextButton")
79
local GrabCrates = Instance.new("TextButton")
80
local GrabMM = Instance.new("TextButton")
81
local TTokens = Instance.new("TextButton")
82
local CTokens = Instance.new("TextButton")
83
local MSpeed = Instance.new("TextButton")
84
local JPower = Instance.new("TextButton")
85
local RemoteOn = Instance.new("TextButton")
86
local RemoteOff = Instance.new("TextButton")
87
local OBoost = Instance.new("Frame")
88
local BoostTitlebar = Instance.new("Frame")
89
local BackMenuB = Instance.new("TextButton")
90
local AutoLayout = Instance.new("TextButton")
91
local OreBoost_2 = Instance.new("TextButton")
92
local TextLabel_2 = Instance.new("TextLabel")
93
local TextBox = Instance.new("TextBox")
94
local OpenMenu = Instance.new("TextButton")
95
local ASetup = Instance.new("Frame")
96
local SetupTitlebar = Instance.new("Frame")
97
local BackMenuS = Instance.new("TextButton")
98
local CatalyzedStar = Instance.new("TextButton")
99
local NeutronStar = Instance.new("TextButton")
100
local MorningStar = Instance.new("TextButton")
101
local TextLabel_3 = Instance.new("TextLabel")
102
103
ScreenGui.Parent = game.CoreGui
104
105
MenuFrame.Name = "MenuFrame"
106
MenuFrame.Parent = ScreenGui
107
MenuFrame.BackgroundColor3 = Color3.new(1, 1, 1)
108
MenuFrame.BorderSizePixel = 0
109
MenuFrame.Position = UDim2.new(0.85852313, 0, 0.180689663, 0)
110
MenuFrame.Size = UDim2.new(0, 202, 0, 239)
111
MenuFrame.SizeConstraint = Enum.SizeConstraint.RelativeYY
112
MenuFrame.Style = Enum.FrameStyle.RobloxSquare
113
MenuFrame.Visible = false
114
115
MenuTitlebar.Name = "MenuTitlebar"
116
MenuTitlebar.Parent = MenuFrame
117
MenuTitlebar.BackgroundColor3 = Color3.new(1, 1, 1)
118
MenuTitlebar.Position = UDim2.new(-0.0420792066, 0, -0.0334728025, 0)
119
MenuTitlebar.Size = UDim2.new(0, 201, 0, 51)
120
MenuTitlebar.Style = Enum.FrameStyle.RobloxSquare
121
122
TitleMenu.Name = "TitleMenu"
123
TitleMenu.Parent = MenuFrame
124
TitleMenu.BackgroundColor3 = Color3.new(1, 1, 1)
125
TitleMenu.BackgroundTransparency = 1
126
TitleMenu.Position = UDim2.new(-0.0396039598, 0, -0.0292887036, 0)
127
TitleMenu.Size = UDim2.new(0, 202, 0, 51)
128
TitleMenu.Font = Enum.Font.SourceSans
129
TitleMenu.Text = "Masters Collection Menu"
130
TitleMenu.TextColor3 = Color3.new(1, 1, 1)
131
TitleMenu.TextSize = 20
132
133
Utilities.Name = "Utilities"
134
Utilities.Parent = MenuFrame
135
Utilities.BackgroundColor3 = Color3.new(1, 1, 1)
136
Utilities.Position = UDim2.new(0.0990099013, 0, 0.252595186, 0)
137
Utilities.Size = UDim2.new(0, 148, 0, 37)
138
Utilities.Style = Enum.ButtonStyle.RobloxRoundButton
139
Utilities.Font = Enum.Font.SourceSans
140
Utilities.Text = "Utilities"
141
Utilities.TextSize = 14
142
Utilities.MouseButton1Click:connect(function()
143
MenuFrame.Visible = false
144
Util.Visible = true
145
end)
146
147
AutoSetup.Name = "AutoSetup"
148
AutoSetup.Parent = MenuFrame
149
AutoSetup.BackgroundColor3 = Color3.new(1, 1, 1)
150
AutoSetup.Position = UDim2.new(0.0990099013, 0, 0.465043187, 0)
151
AutoSetup.Size = UDim2.new(0, 148, 0, 37)
152
AutoSetup.Style = Enum.ButtonStyle.RobloxRoundButton
153
AutoSetup.Font = Enum.Font.SourceSans
154
AutoSetup.Text = "Auto Setup"
155
AutoSetup.TextSize = 14
156
AutoSetup.MouseButton1Click:connect(function()
157
MenuFrame.Visible = false
158
ASetup.Visible = true
159
end)
160
161
HideMenu.Name = "HideMenu"
162
HideMenu.Parent = MenuFrame
163
HideMenu.BackgroundColor3 = Color3.new(1, 1, 1)
164
HideMenu.BackgroundTransparency = 1
165
HideMenu.Position = UDim2.new(0.742574275, 0, 0.927824259, 0)
166
HideMenu.Size = UDim2.new(0, 69, 0, 17)
167
HideMenu.Font = Enum.Font.SourceSans
168
HideMenu.Text = "Hide"
169
HideMenu.TextColor3 = Color3.new(1, 1, 1)
170
HideMenu.TextSize = 14
171
HideMenu.MouseButton1Click:connect(function()
172
MenuFrame.Visible = false
173
OpenMenu.Visible = true
174
end)
175
176
OreBoost.Name = "OreBoost"
177
OreBoost.Parent = MenuFrame
178
OreBoost.BackgroundColor3 = Color3.new(1, 1, 1)
179
OreBoost.Position = UDim2.new(0.0990099013, 0, 0.670064151, 0)
180
OreBoost.Size = UDim2.new(0, 148, 0, 37)
181
OreBoost.Style = Enum.ButtonStyle.RobloxRoundButton
182
OreBoost.Font = Enum.Font.SourceSans
183
OreBoost.Text = "Ore Booster"
184
OreBoost.TextSize = 14
185
OreBoost.MouseButton1Click:connect(function()
186
MenuFrame.Visible = false
187
OBoost.Visible = true
188
end)
189
190
Util.Name = "Util"
191
Util.Parent = ScreenGui
192
Util.BackgroundColor3 = Color3.new(1, 1, 1)
193
Util.Position = UDim2.new(0.857142806, 0, 0.183448285, 0)
194
Util.Size = UDim2.new(0, 202, 0, 239)
195
Util.Visible = false
196
Util.Style = Enum.FrameStyle.RobloxSquare
197
198
UtilitiesTitlebar.Name = "UtilitiesTitlebar"
199
UtilitiesTitlebar.Parent = Util
200
UtilitiesTitlebar.BackgroundColor3 = Color3.new(1, 1, 1)
201
UtilitiesTitlebar.Position = UDim2.new(-0.0445544571, 0, -0.0376569033, 0)
202
UtilitiesTitlebar.Size = UDim2.new(0, 201, 0, 51)
203
UtilitiesTitlebar.Style = Enum.FrameStyle.RobloxSquare
204
205
BackMenuU.Name = "BackMenuU"
206
BackMenuU.Parent = Util
207
BackMenuU.BackgroundColor3 = Color3.new(1, 1, 1)
208
BackMenuU.BackgroundTransparency = 1
209
BackMenuU.Position = UDim2.new(0.742574275, 0, 0.927824259, 0)
210
BackMenuU.Size = UDim2.new(0, 69, 0, 17)
211
BackMenuU.Font = Enum.Font.SourceSans
212
BackMenuU.Text = "Back"
213
BackMenuU.TextColor3 = Color3.new(1, 1, 1)
214
BackMenuU.TextSize = 14
215
BackMenuU.MouseButton1Click:connect(function()
216
Util.Visible = false
217
MenuFrame.Visible = true
218
end)
219
220
TextLabel.Parent = Util
221
TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
222
TextLabel.BackgroundTransparency = 1
223
TextLabel.Position = UDim2.new(-0.0396039598, 0, -0.0251046028, 0)
224
TextLabel.Size = UDim2.new(0, 200, 0, 50)
225
TextLabel.Font = Enum.Font.SourceSans
226
TextLabel.Text = "Utilities"
227
TextLabel.TextColor3 = Color3.new(1, 1, 1)
228
TextLabel.TextSize = 24
229
230
AutoRebirth.Name = "AutoRebirth"
231
AutoRebirth.Parent = Util
232
AutoRebirth.BackgroundColor3 = Color3.new(1, 1, 1)
233
AutoRebirth.Position = UDim2.new(0.0148514882, 0, 0.22594142, 0)
234
AutoRebirth.Size = UDim2.new(0, 83, 0, 23)
235
AutoRebirth.Style = Enum.ButtonStyle.RobloxRoundButton
236
AutoRebirth.Font = Enum.Font.SourceSans
237
AutoRebirth.Text = "Auto Rebirth"
238
AutoRebirth.TextSize = 14
239
AutoRebirth.MouseButton1Click:connect(function()
240
while true do
241
game.ReplicatedStorage.Rebirth:InvokeServer()
242
wait(0.1)
243
end
244
end)
245
246
GrabCrates.Name = "GrabCrates"
247
GrabCrates.Parent = Util
248
GrabCrates.BackgroundColor3 = Color3.new(1, 1, 1)
249
GrabCrates.Position = UDim2.new(0.544554472, 0, 0.22594142, 0)
250
GrabCrates.Size = UDim2.new(0, 83, 0, 23)
251
GrabCrates.Style = Enum.ButtonStyle.RobloxRoundButton
252
GrabCrates.Font = Enum.Font.SourceSans
253
GrabCrates.Text = "GrabCrates"
254
GrabCrates.TextSize = 14
255
GrabCrates.MouseButton1Click:connect(function()
256
while wait() do
257
while wait(2) do
258
for _,v in pairs(game.Workspace:GetChildren()) do
259
if string.match(v.Name, "DiamondCrate") or string.match(v.Name, "ResearchCrate") or string.match(v.Name, "GoldenCrate") or string.match(v.Name, "CrystalCrate") or string.match(v.Name, "Pumpkin") or string.match(v.Name, "MegaPumpkin") or string.match(v.Name, "Pumpkin") or string.match(v.Name, "LuckyCrate") or string.match(v.Name, "ExecutiveCrate") or string.match(v.Name, "GiftCrate") or string.match(v.Name, "ShadowCrate")then
260
v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame+Vector3.new(0,0,0)
261
v.CanCollide = false
262
v.Transparency = 1
263
for _,v in pairs(game.Workspace.Shadows:GetChildren()) do
264
if string.match(v.Name, "ShadowCrate") or string.match(v.Name, "MegaPumpkin") then
265
v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame+Vector3.new(0,0,0)
266
v.CanCollide = false
267
v.Transparency = 1
268
end
269
end
270
end
271
end
272
end
273
end
274
end)
275
276
GrabMM.Name = "GrabMM"
277
GrabMM.Parent = Util
278
GrabMM.BackgroundColor3 = Color3.new(1, 1, 1)
279
GrabMM.Position = UDim2.new(0.0198019929, 0, 0.364016712, 0)
280
GrabMM.Size = UDim2.new(0, 83, 0, 23)
281
GrabMM.Style = Enum.ButtonStyle.RobloxRoundButton
282
GrabMM.Font = Enum.Font.SourceSans
283
GrabMM.Text = "Grab MM"
284
GrabMM.TextSize = 14
285
GrabMM.MouseButton1Click:connect(function()
286
thing = game.Workspace.Market.Hitfox
287
thing.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame+Vector3.new(math.random(0,0),0,math.random(0,0))
288
thing.Transparency = 0
289
thing.BrickColor = BrickColor.new(255,0,100)
290
tell = Instance.new("SurfaceGui",thing)
291
tell2 = Instance.new("TextLabel",tell)
292
tell2.Size = UDim2.new(0, 800, 0, 750)
293
tell2.TextWrapped= true
294
tell2.TextScaled = true
295
tell2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
296
tell2.TextColor3 = Color3.fromRGB(255, 255, 255)
297
tell2.Text =  "Click Me!" 
298
end)
299
300
TTokens.Name = "TTokens"
301
TTokens.Parent = Util
302
TTokens.BackgroundColor3 = Color3.new(1, 1, 1)
303
TTokens.Position = UDim2.new(0.544554472, 0, 0.364016712, 0)
304
TTokens.Size = UDim2.new(0, 83, 0, 23)
305
TTokens.Style = Enum.ButtonStyle.RobloxRoundButton
306
TTokens.Font = Enum.Font.SourceSans
307
TTokens.Text = "Twitch Tokens"
308
TTokens.TextSize = 14
309
TTokens.MouseButton1Click:connect(function()
310
while wait() do
311
while wait(1) do
312
game.Players.LocalPlayer.TwitchPoints.Value = game.Players.LocalPlayer.TwitchPoints.Value +50
313
end
314
end
315
end)
316
317
CTokens.Name = "CTokens"
318
CTokens.Parent = Util
319
CTokens.BackgroundColor3 = Color3.new(1, 1, 1)
320
CTokens.Position = UDim2.new(0.0198019929, 0, 0.497907937, 0)
321
CTokens.Size = UDim2.new(0, 83, 0, 23)
322
CTokens.Style = Enum.ButtonStyle.RobloxRoundButton
323
CTokens.Font = Enum.Font.SourceSans
324
CTokens.Text = "Clover Tokens"
325
CTokens.TextSize = 14
326
CTokens.MouseButton1Click:connect(function()
327
while wait() do
328
while wait(1) do
329
game.Players.LocalPlayer.Clovers.Value = game.Players.LocalPlayer.Clovers.Value +100
330
end
331
end
332
end)
333
334
MSpeed.Name = "MSpeed"
335
MSpeed.Parent = Util
336
MSpeed.BackgroundColor3 = Color3.new(1, 1, 1)
337
MSpeed.Position = UDim2.new(0.544554472, 0, 0.497907937, 0)
338
MSpeed.Size = UDim2.new(0, 83, 0, 23)
339
MSpeed.Style = Enum.ButtonStyle.RobloxRoundButton
340
MSpeed.Font = Enum.Font.SourceSans
341
MSpeed.Text = "Walk Speed"
342
MSpeed.TextSize = 14
343
MSpeed.MouseButton1Click:connect(function()
344
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 80
345
end)
346
347
JPower.Name = "JPower"
348
JPower.Parent = Util
349
JPower.BackgroundColor3 = Color3.new(1, 1, 1)
350
JPower.Position = UDim2.new(0.0198019929, 0, 0.631799161, 0)
351
JPower.Size = UDim2.new(0, 83, 0, 23)
352
JPower.Style = Enum.ButtonStyle.RobloxRoundButton
353
JPower.Font = Enum.Font.SourceSans
354
JPower.Text = "Jump Power"
355
JPower.TextSize = 14
356
JPower.MouseButton1Click:connect(function()
357
game.Players.LocalPlayer.Character.Humanoid.JumpPower = 180
358
end)
359
360
RemoteOn.Name = "RemoteOn"
361
RemoteOn.Parent = Util
362
RemoteOn.BackgroundColor3 = Color3.new(1, 1, 1)
363
RemoteOn.Position = UDim2.new(0.544554472, 0, 0.631799161, 0)
364
RemoteOn.Size = UDim2.new(0, 83, 0, 23)
365
RemoteOn.Style = Enum.ButtonStyle.RobloxRoundButton
366
RemoteOn.Font = Enum.Font.SourceSans
367
RemoteOn.Text = "Remote On"
368
RemoteOn.TextSize = 14
369
RemoteOn.MouseButton1Click:connect(function()
370
x = 1;
371
while(x>0) do
372
wait (0.3)
373
game.ReplicatedStorage.RemoteDrop:FireServer()
374
end
375
end)
376
377
RemoteOff.Name = "RemoteOff"
378
RemoteOff.Parent = Util
379
RemoteOff.BackgroundColor3 = Color3.new(1, 1, 1)
380
RemoteOff.Position = UDim2.new(0.544554472, 0, 0.753138065, 0)
381
RemoteOff.Size = UDim2.new(0, 83, 0, 23)
382
RemoteOff.Style = Enum.ButtonStyle.RobloxRoundButton
383
RemoteOff.Font = Enum.Font.SourceSans
384
RemoteOff.Text = "Remote Off"
385
RemoteOff.TextSize = 14
386
RemoteOff.MouseButton1Click:connect(function()
387
x = 0;
388
end)
389
390
OBoost.Name = "OBoost"
391
OBoost.Parent = ScreenGui
392
OBoost.BackgroundColor3 = Color3.new(1, 1, 1)
393
OBoost.Position = UDim2.new(0.856797814, 0, 0.180689663, 0)
394
OBoost.Size = UDim2.new(0, 202, 0, 239)
395
OBoost.Visible = false
396
OBoost.Style = Enum.FrameStyle.RobloxSquare
397
398
BoostTitlebar.Name = "BoostTitlebar"
399
BoostTitlebar.Parent = OBoost
400
BoostTitlebar.BackgroundColor3 = Color3.new(1, 1, 1)
401
BoostTitlebar.Position = UDim2.new(-0.0445544571, 0, -0.0376569033, 0)
402
BoostTitlebar.Size = UDim2.new(0, 201, 0, 51)
403
BoostTitlebar.Style = Enum.FrameStyle.RobloxSquare
404
405
BackMenuB.Name = "BackMenuB"
406
BackMenuB.Parent = OBoost
407
BackMenuB.BackgroundColor3 = Color3.new(1, 1, 1)
408
BackMenuB.BackgroundTransparency = 1
409
BackMenuB.Position = UDim2.new(0.742574275, 0, 0.927824259, 0)
410
BackMenuB.Size = UDim2.new(0, 69, 0, 17)
411
BackMenuB.Font = Enum.Font.SourceSans
412
BackMenuB.Text = "Back"
413
BackMenuB.TextColor3 = Color3.new(1, 1, 1)
414
BackMenuB.TextSize = 14
415
BackMenuB.MouseButton1Click:connect(function()
416
OBoost.Visible = false
417
MenuFrame.Visible = true
418
end)
419
420
AutoLayout.Name = "AutoLayout"
421
AutoLayout.Parent = OBoost
422
AutoLayout.BackgroundColor3 = Color3.new(1, 1, 1)
423
AutoLayout.Position = UDim2.new(0.103960395, 0, 0.684708416, 0)
424
AutoLayout.Size = UDim2.new(0, 148, 0, 37)
425
AutoLayout.Style = Enum.ButtonStyle.RobloxRoundButton
426
AutoLayout.Font = Enum.Font.SourceSans
427
AutoLayout.Text = "Auto Load Layout 1: OFF"
428
AutoLayout.TextSize = 14
429
430
local autoload1 = false
431
AutoLayout.MouseButton1Click:connect(function()
432
if autoload1 == false then
433
autoload1 = true
434
AutoLayout.Text = "Auto Load Layout 1: ON"
435
else
436
autoload1 = false
437
AutoLayout.Text = "Auto Load Layout 1: OFF"
438
end
439
end)
440
441
spawn(function()
442
while true do
443
wait()
444
if autoload1 == true then
445
game.Players.LocalPlayer.PlayerGui.GUI.Menu.Menu.Sounds.Message.Volume = 0
446
game.Players.LocalPlayer.PlayerGui.GUI.Notifications.Visible = false
447
game.ReplicatedStorage.Layouts:InvokeServer("Load","Layout1")
448
else
449
game.Players.LocalPlayer.PlayerGui.GUI.Menu.Menu.Sounds.Message.Volume = 0.5
450
game.Players.LocalPlayer.PlayerGui.GUI.Notifications.Visible = true
451
end
452
end
453
end)
454
455
456
OreBoost_2.Name = "OreBoost"
457
OreBoost_2.Parent = OBoost
458
OreBoost_2.BackgroundColor3 = Color3.new(1, 1, 1)
459
OreBoost_2.Position = UDim2.new(0.101485148, 0, 0.49318096, 0)
460
OreBoost_2.Size = UDim2.new(0, 148, 0, 37)
461
OreBoost_2.Style = Enum.ButtonStyle.RobloxRoundButton
462
OreBoost_2.Font = Enum.Font.SourceSans
463
OreBoost_2.Text = "Boost Ore: OFF"
464
OreBoost_2.TextSize = 14
465
466
local boost = false
467
OreBoost_2.MouseButton1Click:connect(function()
468
if boost == false then
469
boost = true
470
OreBoost_2.Text = "Boost Ore: ON"
471
else
472
boost = false
473
OreBoost_2.Text = "Boost Ore: OFF"
474
end
475
end)
476
477
spawn(function()
478
while true do
479
wait()
480
if boost == true then
481
local tyc = workspace.Tycoons:GetChildren()
482
for i=1,#tyc do
483
local basepart = tyc[i]:GetChildren()
484
for i=1,#basepart do
485
if basepart[i].ClassName == "Model" then
486
if basepart[i].Model:findFirstChild("Upgrade") then
487
if basepart[i].Model.Upgrade:findFirstChild("Cloned") then
488
else
489
local decoy = basepart[i].Model.Upgrade:Clone()
490
decoy.Parent = basepart[i].Model
491
decoy.Name = "UpgradeDecoy"
492
local tag = Instance.new("StringValue",basepart[i].Model.Upgrade)
493
tag.Name = "Cloned"
494
local deco = basepart[i].Model.Upgrade:GetChildren()
495
for i=1,#deco do
496
if deco[i].ClassName == "ParticleEmitter" then
497
deco[i]:remove()
498
end
499
if deco[i].Name == "Mesh" then
500
deco[i]:remove()
501
end
502
if deco[i].Name == "Smoke" then
503
deco[i]:remove()
504
end
505
if deco[i].Name == "Fire" then
506
deco[i]:remove()
507
end
508
end
509
if basepart[i].Model.Upgrade:findFirstChild("Error") then
510
basepart[i].Model.Upgrade.Error.Volume = 0
511
end
512
basepart[i].Model.Upgrade.Transparency = 1
513
basepart[i].Model.Upgrade.Size = Vector3.new(5,5,5)
514
basepart[i].Model.Upgrade.CFrame = CFrame.new(workspace.Tycoons[tostring(game.Players.LocalPlayer.PlayerTycoon.Value)][TextBox.Text].Model.Drop.Position)
515
end
516
end
517
end
518
end
519
end
520
end
521
end
522
end)
523
524
TextLabel_2.Parent = OBoost
525
TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
526
TextLabel_2.BackgroundTransparency = 1
527
TextLabel_2.Position = UDim2.new(-0.0247524753, 0, -0.0292887036, 0)
528
TextLabel_2.Size = UDim2.new(0, 200, 0, 50)
529
TextLabel_2.Font = Enum.Font.SourceSans
530
TextLabel_2.Text = "Ore Booster"
531
TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
532
TextLabel_2.TextSize = 24
533
534
TextBox.Parent = OBoost
535
TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
536
TextBox.Position = UDim2.new(0.103960402, 0, 0.22594142, 0)
537
TextBox.Size = UDim2.new(0, 148, 0, 54)
538
TextBox.Font = Enum.Font.SourceSans
539
TextBox.Text = "Enter Mine Name, Case Sensitive: E.g. \"Basic Iron Mine\""
540
TextBox.TextScaled = true
541
TextBox.TextSize = 14
542
TextBox.TextWrapped = true
543
544
OpenMenu.Name = "OpenMenu"
545
OpenMenu.Parent = ScreenGui
546
OpenMenu.BackgroundColor3 = Color3.new(1, 1, 1)
547
OpenMenu.Position = UDim2.new(0.473775059, 0, 0.79724133, 0)
548
OpenMenu.Size = UDim2.new(0, 76, 0, 31)
549
OpenMenu.Style = Enum.ButtonStyle.RobloxRoundButton
550
OpenMenu.Font = Enum.Font.SourceSans
551
OpenMenu.Text = "Open"
552
OpenMenu.TextSize = 14
553
OpenMenu.MouseButton1Click:connect(function()
554
MenuFrame.Visible = true
555
OpenMenu.Visible = false
556
end)
557
558
ASetup.Name = "ASetup"
559
ASetup.Parent = ScreenGui
560
ASetup.BackgroundColor3 = Color3.new(1, 1, 1)
561
ASetup.Position = UDim2.new(0.858078897, 0, 0.182611465, 0)
562
ASetup.Size = UDim2.new(0, 202, 0, 239)
563
ASetup.Visible = false
564
ASetup.Style = Enum.FrameStyle.RobloxSquare
565
566
SetupTitlebar.Name = "SetupTitlebar"
567
SetupTitlebar.Parent = ASetup
568
SetupTitlebar.BackgroundColor3 = Color3.new(1, 1, 1)
569
SetupTitlebar.Position = UDim2.new(-0.0445544571, 0, -0.0376569033, 0)
570
SetupTitlebar.Size = UDim2.new(0, 201, 0, 51)
571
SetupTitlebar.Style = Enum.FrameStyle.RobloxSquare
572
573
BackMenuS.Name = "BackMenuS"
574
BackMenuS.Parent = ASetup
575
BackMenuS.BackgroundColor3 = Color3.new(1, 1, 1)
576
BackMenuS.BackgroundTransparency = 1
577
BackMenuS.Position = UDim2.new(0.742574275, 0, 0.927824259, 0)
578
BackMenuS.Size = UDim2.new(0, 69, 0, 17)
579
BackMenuS.Font = Enum.Font.SourceSans
580
BackMenuS.Text = "Back"
581
BackMenuS.TextColor3 = Color3.new(1, 1, 1)
582
BackMenuS.TextSize = 14
583
BackMenuS.MouseButton1Click:connect(function()
584
ASetup.Visible = false
585
MenuFrame.Visible = true
586
end)
587
588
CatalyzedStar.Name = "CatalyzedStar"
589
CatalyzedStar.Parent = ASetup
590
CatalyzedStar.BackgroundColor3 = Color3.new(1, 1, 1)
591
CatalyzedStar.Position = UDim2.new(0.0990099013, 0, 0.438787639, 0)
592
CatalyzedStar.Size = UDim2.new(0, 148, 0, 37)
593
CatalyzedStar.Style = Enum.ButtonStyle.RobloxRoundButton
594
CatalyzedStar.Font = Enum.Font.SourceSans
595
CatalyzedStar.Text = "Catalyzed Star"
596
CatalyzedStar.TextSize = 14
597
CatalyzedStar.MouseButton1Click:connect(function()
598
local function A()
599
wait(0.5)
600
601
game.ReplicatedStorage.PlaceItem:InvokeServer("Symmetryte Mine", CFrame.new(-97.5, 206.799988, 194, -2.90066708e-07, 0, -1, 0, 1, 0, 1, 0, -2.90066708e-07))
602
game.ReplicatedStorage.PlaceItem:InvokeServer("Discord Conveyor", CFrame.new(-97.5, 202.299988, 209, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08))
603
game.ReplicatedStorage.PlaceItem:InvokeServer("Discord Conveyor", CFrame.new(-91.5, 202.299988, 209, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08))
604
game.ReplicatedStorage.PlaceItem:InvokeServer("Discord Conveyor", CFrame.new(-85.5, 202.299988, 209, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08))
605
game.ReplicatedStorage.PlaceItem:InvokeServer("Basic Conveyor", CFrame.new(-79.5, 202.299988, 209, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1))
606
game.ReplicatedStorage.PlaceItem:InvokeServer("Basic Conveyor", CFrame.new(-79.5, 202.299988, 215, 1.3907092e-07, 0, 1, 0, 1, 0, -1, 0, 1.3907092e-07))
607
game.ReplicatedStorage.PlaceItem:InvokeServer("Basic Conveyor", CFrame.new(-73.5, 202.299988, 215, -1, 0, -2.38497613e-08, 0, 1, 0, 2.38497613e-08, 0, -1))
608
game.ReplicatedStorage.PlaceItem:InvokeServer("Basic Conveyor", CFrame.new(-73.5, 202.299988, 209, -2.90066708e-07, 0, -1, 0, 1, 0, 1, 0, -2.90066708e-07))
609
game.ReplicatedStorage.PlaceItem:InvokeServer("Catalyzed Star", CFrame.new(-43.5, 205.299988, 179, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1))
610
game.ReplicatedStorage.PlaceItem:InvokeServer("The Final Upgrader", CFrame.new(-45, 205.299988, 198.5, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1))
611
game.ReplicatedStorage.PlaceItem:InvokeServer("Sakura Garden", CFrame.new(-43.5, 206.799988, 219.5, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1))
612
613
local player = game:GetService'Players'.LocalPlayer
614
local factorye = player.PlayerTycoon.Value
615
local Factory = tostring(factorye)
616
-- if you'd like to change the upgrader this goes through, go ahead and change it below
617
thing = game.Workspace.Tycoons[Factory]["Catalyzed Star"].Hitbox
618
619
--1200 is the default amount of times this will run, feel free to change it to whatever you want!
620
for i = 1,1000 do wait(.01) 
621
for i,v in pairs(game.Workspace.DroppedParts[Factory]:getChildren()) do
622
    local p= CFrame.new(thing.Position.x, thing.Position.y, thing.Position.z)
623
v.CFrame = p
624
end
625
end
626
end
627
628
A()
629
630
spawn(function()
631
while wait(0.1)do
632
    game:GetService'ReplicatedStorage'.RemoteDrop:FireServer()
633
end
634
end)
635
spawn(function()
636
while wait(1)do
637
    local Ea = game:GetService'ReplicatedStorage'.Rebirth:InvokeServer()
638
    if Ea == true then
639
    wait(3)
640
        A()
641
    end
642
end
643
end)
644
end)
645
646
NeutronStar.Name = "NeutronStar"
647
NeutronStar.Parent = ASetup
648
NeutronStar.BackgroundColor3 = Color3.new(1, 1, 1)
649
NeutronStar.Position = UDim2.new(0.0990099013, 0, 0.634499252, 0)
650
NeutronStar.Size = UDim2.new(0, 148, 0, 37)
651
NeutronStar.Style = Enum.ButtonStyle.RobloxRoundButton
652
NeutronStar.Font = Enum.Font.SourceSans
653
NeutronStar.Text = "Neutron Star"
654
NeutronStar.TextSize = 14
655
NeutronStar.MouseButton1Click:connect(function()
656
local function A()
657
wait(0.5)
658
659
game.ReplicatedStorage.PlaceItem:InvokeServer("Symmetryte Mine", CFrame.new(-97.5, 206.799988, 194, -2.90066708e-07, 0, -1, 0, 1, 0, 1, 0, -2.90066708e-07))
660
game.ReplicatedStorage.PlaceItem:InvokeServer("Discord Conveyor", CFrame.new(-97.5, 202.299988, 209, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08))
661
game.ReplicatedStorage.PlaceItem:InvokeServer("Discord Conveyor", CFrame.new(-91.5, 202.299988, 209, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08))
662
game.ReplicatedStorage.PlaceItem:InvokeServer("Discord Conveyor", CFrame.new(-85.5, 202.299988, 209, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08))
663
game.ReplicatedStorage.PlaceItem:InvokeServer("Basic Conveyor", CFrame.new(-79.5, 202.299988, 209, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1))
664
game.ReplicatedStorage.PlaceItem:InvokeServer("Basic Conveyor", CFrame.new(-79.5, 202.299988, 215, 1.3907092e-07, 0, 1, 0, 1, 0, -1, 0, 1.3907092e-07))
665
game.ReplicatedStorage.PlaceItem:InvokeServer("Basic Conveyor", CFrame.new(-73.5, 202.299988, 215, -1, 0, -2.38497613e-08, 0, 1, 0, 2.38497613e-08, 0, -1))
666
game.ReplicatedStorage.PlaceItem:InvokeServer("Basic Conveyor", CFrame.new(-73.5, 202.299988, 209, -2.90066708e-07, 0, -1, 0, 1, 0, 1, 0, -2.90066708e-07))
667
game.ReplicatedStorage.PlaceItem:InvokeServer("Neutron Star", CFrame.new(-43.5, 206.799988, 182, -1, 0, -2.38497613e-08, 0, 1, 0, 2.38497613e-08, 0, -1))
668
game.ReplicatedStorage.PlaceItem:InvokeServer("The Final Upgrader", CFrame.new(-45, 205.299988, 198.5, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1))
669
game.ReplicatedStorage.PlaceItem:InvokeServer("Sakura Garden", CFrame.new(-43.5, 206.799988, 219.5, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1))
670
671
local player = game:GetService'Players'.LocalPlayer
672
local factorye = player.PlayerTycoon.Value
673
local Factory = tostring(factorye)
674
-- if you'd like to change the upgrader this goes through, go ahead and change it below
675
thing = game.Workspace.Tycoons[Factory]["Neutron Star"].Hitbox
676
677
--1200 is the default amount of times this will run, feel free to change it to whatever you want!
678
for i = 1,1000 do wait(.01) 
679
for i,v in pairs(game.Workspace.DroppedParts[Factory]:getChildren()) do
680
    local p= CFrame.new(thing.Position.x, thing.Position.y, thing.Position.z)
681
v.CFrame = p
682
end
683
end
684
end
685
686
A()
687
688
spawn(function()
689
while wait(0.1)do
690
    game:GetService'ReplicatedStorage'.RemoteDrop:FireServer()
691
end
692
end)
693
spawn(function()
694
while wait(1)do
695
    local Ea = game:GetService'ReplicatedStorage'.Rebirth:InvokeServer()
696
    if Ea == true then
697
    wait(3)
698
        A()
699
    end
700
end
701
end)
702
end)
703
704
MorningStar.Name = "MorningStar"
705
MorningStar.Parent = ASetup
706
MorningStar.BackgroundColor3 = Color3.new(1, 1, 1)
707
MorningStar.Position = UDim2.new(0.0965346545, 0, 0.25468725, 0)
708
MorningStar.Size = UDim2.new(0, 148, 0, 37)
709
MorningStar.Style = Enum.ButtonStyle.RobloxRoundButton
710
MorningStar.Font = Enum.Font.SourceSans
711
MorningStar.Text = "Morning Star"
712
MorningStar.TextSize = 14
713
MorningStar.MouseButton1Click:connect(function()
714
local function A()
715
wait(0.5)
716
717
game.ReplicatedStorage.PlaceItem:InvokeServer("Symmetryte Mine", CFrame.new(-97.5, 206.799988, 194, -2.90066708e-07, 0, -1, 0, 1, 0, 1, 0, -2.90066708e-07))
718
game.ReplicatedStorage.PlaceItem:InvokeServer("Discord Conveyor", CFrame.new(-97.5, 202.299988, 209, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08))
719
game.ReplicatedStorage.PlaceItem:InvokeServer("Discord Conveyor", CFrame.new(-91.5, 202.299988, 209, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08))
720
game.ReplicatedStorage.PlaceItem:InvokeServer("Discord Conveyor", CFrame.new(-85.5, 202.299988, 209, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08))
721
game.ReplicatedStorage.PlaceItem:InvokeServer("Basic Conveyor", CFrame.new(-79.5, 202.299988, 209, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1))
722
game.ReplicatedStorage.PlaceItem:InvokeServer("Basic Conveyor", CFrame.new(-79.5, 202.299988, 215, 1.3907092e-07, 0, 1, 0, 1, 0, -1, 0, 1.3907092e-07))
723
game.ReplicatedStorage.PlaceItem:InvokeServer("Basic Conveyor", CFrame.new(-73.5, 202.299988, 215, -1, 0, -2.38497613e-08, 0, 1, 0, 2.38497613e-08, 0, -1))
724
game.ReplicatedStorage.PlaceItem:InvokeServer("Basic Conveyor", CFrame.new(-73.5, 202.299988, 209, -2.90066708e-07, 0, -1, 0, 1, 0, 1, 0, -2.90066708e-07))
725
game.ReplicatedStorage.PlaceItem:InvokeServer("Morning Star", CFrame.new(-43.5, 206.799988, 182, -1, 0, -2.38497613e-08, 0, 1, 0, 2.38497613e-08, 0, -1))
726
game.ReplicatedStorage.PlaceItem:InvokeServer("The Final Upgrader", CFrame.new(-45, 205.299988, 198.5, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1))
727
game.ReplicatedStorage.PlaceItem:InvokeServer("Sakura Garden", CFrame.new(-43.5, 206.799988, 219.5, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1))
728
729
local player = game:GetService'Players'.LocalPlayer
730
local factorye = player.PlayerTycoon.Value
731
local Factory = tostring(factorye)
732
-- if you'd like to change the upgrader this goes through, go ahead and change it below
733
thing = game.Workspace.Tycoons[Factory]["Morning Star"].Hitbox
734
735
--1200 is the default amount of times this will run, feel free to change it to whatever you want!
736
for i = 1,1000 do wait(.01) 
737
for i,v in pairs(game.Workspace.DroppedParts[Factory]:getChildren()) do
738
    local p= CFrame.new(thing.Position.x, thing.Position.y, thing.Position.z)
739
v.CFrame = p
740
end
741
end
742
end
743
744
A()
745
746
spawn(function()
747
while wait(0.1)do
748
    game:GetService'ReplicatedStorage'.RemoteDrop:FireServer()
749
end
750
end)
751
spawn(function()
752
while wait(1)do
753
    local Ea = game:GetService'ReplicatedStorage'.Rebirth:InvokeServer()
754
    if Ea == true then
755
    wait(3)
756
        A()
757
    end
758
end
759
end)
760
end)
761
762
TextLabel_3.Parent = ASetup
763
TextLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
764
TextLabel_3.BackgroundTransparency = 1
765
TextLabel_3.Position = UDim2.new(-0.0247524753, 0, -0.0292887036, 0)
766
TextLabel_3.Size = UDim2.new(0, 200, 0, 50)
767
TextLabel_3.Font = Enum.Font.SourceSans
768
TextLabel_3.Text = "Auto Setup"
769
TextLabel_3.TextColor3 = Color3.new(1, 1, 1)
770
TextLabel_3.TextSize = 24
771
772
--[[
773
Morning Star/Neutron Star Quick loop V2a made by LuckyMMB @ v3rmillion. Discord https://discord.gg/GKzJnUC
774
 
775
Thanks to footwears @v3rmillion for the tp loop script which I modified and put in to setups.
776
 
777
SMALL SETUP
778
You need a Symmetrium or Symmetryte Mine, 1 Nature's Grip furnace and 1 Morning Star. This will make NvD-Vgn
779
in about 2 minutes and is extremely efficient. The quickest ever method to get an Overlord Device.
780
MEDIUM SETUP
781
You need a Symmetrium or Symmetryte Mine, 1 Nature's Grip furnace and 1 Neutron Star. This will make UVg-DVg
782
in about 2 minutes and is extremely efficient. Use this if you don't have the Big Setup upgraders.
783
BIG SETUP
784
You need a Symmetrium or Symmetryte Mine, 1 Nature's Grip furnace, 1 Neutron Star, 1 Tesla Refuter, 3 Quantum
785
Clockwork, 3 True Overlord Devices, 1 The Final Upgrader, 1 Saturated Catalyst, 1 Catalyst, 2 Quantum Ore Polisher,
786
2 Azure Spore and a Sage King Furnace. This will get NVG and takes less than 3 minutes from start to rebirth.
787
CUSTOM SETUP
788
This can be used in public, private or solo games as it uses the Layouts feature. Place a good dropper and
789
a furnace and save it to Layout1 (in Base Settings, Layouts) and place a setup with 1 Morning Star OR 1
790
Neutron Star at the start and a furnace at the end and save it to Layout2. The setup will place down Layout1
791
for a few seconds, then buy some basic items (conveyors, pink/blue teleporters and ramps), clear the base
792
and place Layout2. This means you can use conveyors, teleporters and ramps in Layout2 that you may not have
793
in your inventory. The ore will then loop through the Star (automatically detected by the script which is why
794
you can only place 1) and carry on to the furnace. If you just want to use the preset setup then go a Solo
795
game and start the Big Setup, save it to Layout2 then you can go in any server and Layout2 will load.
796
You can tweak the setup or make your own its completely up to you.
797
 
798
Sometimes the ore may overload the star and come out early so it doesn't make enough money to rebirth or it may
799
not re-enable the ore when the setup restarts so the extra items wont buy and it will break the loop. If this
800
happens click the setup off/on to restart it or the setup will restart automatically after waiting 4 minutes.
801
 
802
You can change the numbers below to fine tune the ore going in (around 50-80 is a good number) and the
803
number of loops (1000 should be fine but you can take it up to 1200 if you really want to) to get the max
804
value from your ore.
805
 
806
B key brings all the ore to your location. Good for clearing blockages or just testing a certain upgrader.
807
N key toggles Ore Gates Open/Closed.
808
M key Toggles all the mines ON/OFF.
809
H key Remote Clicks the Lightningbolt Refiner Lightningbolt Predicter and Arcane Lightning Upgraders.
810
J key toggles Remote Clicking On/OFF.
811
K key toggles Reversible Conveyors.
812
]]
813
 
814
defaultdropper = "symmetrium" -- Mine used. Choose between symmetrium or symmetryte --
815
oretime = "30" -- Time in seconds ore drops before it starts looping. More time equals more ore --
816
loopnumber = "1000" -- Number of loops. About 850 is right but you can go higher --
817
turnminesoff = true -- Turn mines off when ores go to loop. Set to true or false --
818
 
819
smallsetupactive = false
820
mediumsetupactive = false
821
bigsetupactive = false
822
customsetupactive = false
823
rebirthactive = false
824
setuptimeactive = false
825
remoteclickstarted = false
826
remoteclickactive = false
827
oregatetoggleactive = false
828
upgraderclickstarted = false
829
upgraderclickactive = false
830
 
831
local player = game:GetService'Players'.LocalPlayer
832
local factorye = player.PlayerTycoon.Value
833
local Factory = tostring(factorye)
834
 
835
mouse = game.Players.LocalPlayer:GetMouse()
836
 
837
local MainGUI = Instance.new("ScreenGui")
838
local MainFrame = Instance.new("Frame")
839
local CloseMH = Instance.new("TextButton")
840
local Label = Instance.new("TextLabel")
841
local SmallSetup = Instance.new("TextButton")
842
local MediumSetup = Instance.new("TextButton")
843
local BigSetup = Instance.new("TextButton")
844
local SmallSetupText = Instance.new("TextLabel")
845
local MediumSetupText = Instance.new("TextLabel")
846
local BigSetupText = Instance.new("TextLabel")
847
local CustomSetup = Instance.new("TextButton")
848
local CustomSetupText = Instance.new("TextLabel")
849
local LoopFrame = Instance.new("Frame")
850
local LoopItem = Instance.new("TextBox")
851
local TPLoopNumber = Instance.new("TextBox")
852
local LoopButton = Instance.new("TextButton")
853
local Rebirth = Instance.new("TextButton")
854
local TPCrates = Instance.new("TextButton")
855
local CountTpCrates = Instance.new("TextLabel")
856
 
857
MainGUI.Name = "MainGUI"
858
MainGUI.Parent = game.CoreGui
859
local MainCORE = game.CoreGui["MainGUI"]
860
 
861
MainFrame.Name = "MainFrame"
862
MainFrame.Parent = MainGUI
863
MainFrame.BackgroundColor3 = Color3.new(1, 1, 1)
864
MainFrame.BorderColor3 = Color3.new(0, 0, 0)
865
MainFrame.Position = UDim2.new(1, -170, 0, 0)
866
MainFrame.Size = UDim2.new(0, 170, 0, 300)
867
MainFrame.Selectable = true
868
MainFrame.Active = true
869
MainFrame.Draggable = true
870
 
871
CloseMH.Name = "CloseMH"
872
CloseMH.Parent = MainFrame
873
CloseMH.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
874
CloseMH.BorderColor3 = Color3.new(0, 0, 0)
875
CloseMH.Position = UDim2.new(0, 10, 0, 8)
876
CloseMH.Size = UDim2.new(0, 19, 0, 19)
877
CloseMH.Font = Enum.Font.SourceSans
878
CloseMH.Text = "X"
879
CloseMH.TextColor3 = Color3.new(1, 0, 0)
880
CloseMH.TextScaled = true
881
CloseMH.TextSize = 17
882
 
883
Label.Name = "Label"
884
Label.Parent = MainFrame
885
Label.BackgroundColor3 = Color3.new(1, 1, 1)
886
Label.BackgroundTransparency = 1
887
Label.BorderSizePixel = 0
888
Label.Position = UDim2.new(0, 31, 0, 4)
889
Label.Size = UDim2.new(0, 130, 0, 24)
890
Label.Font = Enum.Font.SourceSans
891
Label.Text = "Star Loop GUI"
892
Label.TextColor3 = Color3.new(0, 0, 0)
893
Label.TextSize = 22
894
 
895
SmallSetup.Name = "SmallSetup"
896
SmallSetup.Parent = MainFrame
897
SmallSetup.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
898
SmallSetup.Position = UDim2.new(0, 10, 0, 35)
899
SmallSetup.Size = UDim2.new(0, 150, 0, 25)
900
SmallSetup.Font = Enum.Font.SourceSans
901
SmallSetup.Text = "SMALL SETUP: OFF\nMorning Star"
902
SmallSetup.TextColor3 = Color3.new(0, 0, 0)
903
SmallSetup.TextSize = 18
904
SmallSetup.TextWrapped = true
905
 
906
SmallSetupText.Name = "SmallSetupText"
907
SmallSetupText.Parent = MainFrame
908
SmallSetupText.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
909
SmallSetupText.Position = UDim2.new(0, 10, 0, 70)
910
SmallSetupText.Size = UDim2.new(0, 150, 0, 60)
911
SmallSetupText.Font = Enum.Font.SourceSans
912
SmallSetupText.Text = "Need Symmetrium Mine and a Morning Star. Everything is Automatic."
913
SmallSetupText.TextColor3 = Color3.new(1, 1, 1)
914
SmallSetupText.TextSize = 16
915
SmallSetupText.ZIndex = 6
916
SmallSetupText.Visible = false
917
SmallSetupText.TextWrapped = true
918
 
919
MediumSetup.Name = "MediumSetup"
920
MediumSetup.Parent = MainFrame
921
MediumSetup.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
922
MediumSetup.Position = UDim2.new(0, 10, 0, 70)
923
MediumSetup.Size = UDim2.new(0, 150, 0, 25)
924
MediumSetup.Font = Enum.Font.SourceSans
925
MediumSetup.Text = "MEDIUM SETUP: OFF"
926
MediumSetup.TextColor3 = Color3.new(0, 0, 0)
927
MediumSetup.TextSize = 18
928
MediumSetup.TextWrapped = true
929
 
930
MediumSetupText.Name = "MediumSetupText"
931
MediumSetupText.Parent = MainFrame
932
MediumSetupText.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
933
MediumSetupText.Position = UDim2.new(0, 10, 0, 105)
934
MediumSetupText.Size = UDim2.new(0, 150, 0, 60)
935
MediumSetupText.Font = Enum.Font.SourceSans
936
MediumSetupText.Text = "Need Symmetrium Mine and a Neutron Star. Everything is Automatic."
937
MediumSetupText.TextColor3 = Color3.new(1, 1, 1)
938
MediumSetupText.TextSize = 16
939
MediumSetupText.ZIndex = 6
940
MediumSetupText.Visible = false
941
MediumSetupText.TextWrapped = true
942
 
943
BigSetup.Name = "BigSetup"
944
BigSetup.Parent = MainFrame
945
BigSetup.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
946
BigSetup.Position = UDim2.new(0, 10, 0, 105)
947
BigSetup.Size = UDim2.new(0, 150, 0, 25)
948
BigSetup.Font = Enum.Font.SourceSans
949
BigSetup.Text = "BIG SETUP: OFF"
950
BigSetup.TextColor3 = Color3.new(0, 0, 0)
951
BigSetup.TextSize = 18
952
BigSetup.TextWrapped = true
953
 
954
BigSetupText.Name = "BigSetupText"
955
BigSetupText.Parent = MainFrame
956
BigSetupText.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
957
BigSetupText.Position = UDim2.new(0, 10, 0, 35)
958
BigSetupText.Size = UDim2.new(0, 150, 0, 60)
959
BigSetupText.Font = Enum.Font.SourceSans
960
BigSetupText.Text = "Need Symmetrium Mine Neutron Star and Reborn Items. Fully Automatic."
961
BigSetupText.TextColor3 = Color3.new(1, 1, 1)
962
BigSetupText.TextSize = 16
963
BigSetupText.ZIndex = 6
964
BigSetupText.Visible = false
965
BigSetupText.TextWrapped = true
966
 
967
CustomSetup.Name = "CustomSetup"
968
CustomSetup.Parent = MainFrame
969
CustomSetup.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
970
CustomSetup.Position = UDim2.new(0, 10, 0, 140)
971
CustomSetup.Size = UDim2.new(0, 150, 0, 25)
972
CustomSetup.Font = Enum.Font.SourceSans
973
CustomSetup.Text = "CUSTOM SETUP: OFF"
974
CustomSetup.TextColor3 = Color3.new(0, 0, 0)
975
CustomSetup.TextSize = 18
976
CustomSetup.TextWrapped = true
977
 
978
CustomSetupText.Name = "CustomSetupText"
979
CustomSetupText.Parent = MainFrame
980
CustomSetupText.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
981
CustomSetupText.Position = UDim2.new(0, 10, 0, 35)
982
CustomSetupText.Size = UDim2.new(0, 150, 0, 95)
983
CustomSetupText.Font = Enum.Font.SourceSans
984
CustomSetupText.Text = "Save a good dropper and furnace to Layout1 and a setup with 1 Neutron Star OR 1 Morning Star to Layout2"
985
CustomSetupText.TextColor3 = Color3.new(1, 1, 1)
986
CustomSetupText.TextSize = 16
987
CustomSetupText.ZIndex = 6
988
CustomSetupText.Visible = false
989
CustomSetupText.TextWrapped = true
990
 
991
LoopFrame.Name = "LoopFrame"
992
LoopFrame.Parent = MainFrame
993
LoopFrame.BackgroundColor3 = Color3.new(0.3, 0.3, 0.9)
994
LoopFrame.BorderColor3 = Color3.new(0, 0, 0)
995
LoopFrame.Position = UDim2.new(0, 0, 0, 170)
996
LoopFrame.Size = UDim2.new(0, 170, 0, 55)
997
 
998
LoopItem.Name = "LoopItem"
999
LoopItem.Parent = MainFrame
1000
LoopItem.BackgroundColor3 = Color3.new(0.7, 0.7, 0.7)
1001
LoopItem.Position = UDim2.new(0, 10, 0, 175)
1002
LoopItem.Size = UDim2.new(0, 150, 0, 20)
1003
LoopItem.Font = Enum.Font.SourceSans
1004
LoopItem.Text = "TYPE LOOP ITEM"
1005
LoopItem.TextColor3 = Color3.new(0, 0, 0)
1006
LoopItem.TextSize = 18
1007
LoopItem.TextWrapped = true
1008
LoopItem.ZIndex = 7
1009
 
1010
TPLoopNumber.Name = "TPLoopNumber"
1011
TPLoopNumber.Parent = MainFrame
1012
TPLoopNumber.BackgroundColor3 = Color3.new(0.7, 0.7, 0.7)
1013
TPLoopNumber.Position = UDim2.new(0, 10, 0, 200)
1014
TPLoopNumber.Size = UDim2.new(0, 50, 0, 20)
1015
TPLoopNumber.Font = Enum.Font.SourceSans
1016
TPLoopNumber.Text = "1000"
1017
TPLoopNumber.TextColor3 = Color3.new(0, 0, 0)
1018
TPLoopNumber.TextSize = 18
1019
TPLoopNumber.TextWrapped = true
1020
TPLoopNumber.ZIndex = 7
1021
 
1022
LoopButton.Name = "LoopButton"
1023
LoopButton.Parent = MainFrame
1024
LoopButton.BackgroundColor3 = Color3.new(0.7, 0.7, 0.7)
1025
LoopButton.Position = UDim2.new(0, 65, 0, 200)
1026
LoopButton.Size = UDim2.new(0, 95, 0, 20)
1027
LoopButton.Font = Enum.Font.SourceSans
1028
LoopButton.Text = "LOOP"
1029
LoopButton.TextColor3 = Color3.new(0, 0, 0)
1030
LoopButton.TextSize = 18
1031
LoopButton.TextWrapped = true
1032
LoopButton.ZIndex = 7
1033
 
1034
Rebirth.Name = "Rebirth"
1035
Rebirth.Parent = MainFrame
1036
Rebirth.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
1037
Rebirth.Position = UDim2.new(0, 10, 0, 230)
1038
Rebirth.Size = UDim2.new(0, 150, 0, 25)
1039
Rebirth.Font = Enum.Font.SourceSans
1040
Rebirth.Text = "AUTO REBIRTH: OFF"
1041
Rebirth.TextColor3 = Color3.new(0, 0, 0)
1042
Rebirth.TextSize = 18
1043
Rebirth.TextWrapped = true
1044
 
1045
TPCrates.Name = "TPCrates"
1046
TPCrates.Parent = MainFrame
1047
TPCrates.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
1048
TPCrates.Position = UDim2.new(0, 10, 0, 265)
1049
TPCrates.Size = UDim2.new(0, 130, 0, 25)
1050
TPCrates.Font = Enum.Font.SourceSans
1051
TPCrates.Text = "TP TO CRATES: OFF"
1052
TPCrates.TextColor3 = Color3.new(0, 0, 0)
1053
TPCrates.TextSize = 18
1054
TPCrates.TextWrapped = true
1055
 
1056
CountTpCrates.Name = "CountTpCrates"
1057
CountTpCrates.Parent = MainFrame
1058
CountTpCrates.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
1059
CountTpCrates.Position = UDim2.new(0, 140, 0, 265)
1060
CountTpCrates.Size = UDim2.new(0, 20, 0, 25)
1061
CountTpCrates.Font = Enum.Font.SourceSans
1062
CountTpCrates.Text = "0"
1063
CountTpCrates.TextColor3 = Color3.new(0, 0, 0)
1064
CountTpCrates.TextSize = 18
1065
CountTpCrates.TextWrapped = true
1066
 
1067
game.Lighting.Changed:connect(function()
1068
    game.Lighting.TimeOfDay = "12:00:00"
1069
    game.Lighting.FogEnd = 9999
1070
    game.Lighting.Brightness = 1
1071
    game.Lighting.ColorCorrection.Brightness = 0
1072
    game.Lighting.ColorCorrection.Saturation = 0
1073
    game.Lighting.Bloom.Intensity = 0
1074
end)
1075
 
1076
local function addtptool()
1077
    local Tele = Instance.new("Tool", game.Players.LocalPlayer.Backpack)
1078
    Tele.RequiresHandle = false
1079
    Tele.RobloxLocked = true
1080
    Tele.Name = "TP Tool"
1081
    Tele.ToolTip = "Teleport Tool"
1082
    Tele.Equipped:connect(function(Mouse)
1083
        Mouse.Button1Down:connect(function()
1084
            if Mouse.Target then
1085
                game.Workspace:FindFirstChild(game.Players.LocalPlayer.Name).HumanoidRootPart.CFrame = (CFrame.new(Mouse.Hit.x, Mouse.Hit.y + 5, Mouse.Hit.z))
1086
            end
1087
        end)
1088
    end)
1089
end
1090
addtptool()
1091
 
1092
function notify(msg)
1093
    game.StarterGui:SetCore('SendNotification', {
1094
        Title = 'Miner\'s Haven';
1095
        Text = msg;
1096
        Duration = 5;
1097
    })
1098
end
1099
 
1100
CloseMH.MouseButton1Down:connect(function()
1101
MainGUI:Destroy()
1102
end)
1103
 
1104
SmallSetup.MouseEnter:connect(function()
1105
    SmallSetupText.Visible = true
1106
end)
1107
 
1108
SmallSetup.MouseLeave:connect(function()
1109
    SmallSetupText.Visible = false
1110
end)
1111
 
1112
MediumSetup.MouseEnter:connect(function()
1113
    MediumSetupText.Visible = true
1114
end)
1115
 
1116
MediumSetup.MouseLeave:connect(function()
1117
    MediumSetupText.Visible = false
1118
end)
1119
 
1120
BigSetup.MouseEnter:connect(function()
1121
    BigSetupText.Visible = true
1122
end)
1123
 
1124
BigSetup.MouseLeave:connect(function()
1125
    BigSetupText.Visible = false
1126
end)
1127
 
1128
CustomSetup.MouseEnter:connect(function()
1129
    CustomSetupText.Visible = true
1130
end)
1131
 
1132
CustomSetup.MouseLeave:connect(function()
1133
    CustomSetupText.Visible = false
1134
end)
1135
 
1136
spawn (function()
1137
    while true do
1138
        wait(0.1)
1139
        if tpcratesactive == true then
1140
            local player = game:GetService'Players'.LocalPlayer
1141
            local children = game.Workspace:GetChildren()
1142
            for i =1, #children do
1143
                wait(0.1)
1144
                if children[i] ~= nil then
1145
                    for x in string.gmatch(children[i].Name, "Crate") do
1146
                        if children[i].Parent then
1147
                            if children[i].Name ~= "GiftCrate" then
1148
                                player.Character:MoveTo(children[i].Position)
1149
                                wait(1)
1150
                            end
1151
                        end
1152
                    end
1153
                end
1154
            end
1155
            local children = game.Workspace.Shadows:GetChildren()
1156
            for i =1, #children do
1157
                wait(0.1)
1158
                if children[i] ~= nil then
1159
                    for x in string.gmatch(children[i].Name, "Crate") do
1160
                        if children[i].Parent then
1161
                            player.Character:MoveTo(children[i].Position)
1162
                            wait(1)
1163
                        end
1164
                    end
1165
                end
1166
            end
1167
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(LocationX, LocationY, LocationZ)
1168
        end
1169
    end
1170
end)
1171
 
1172
TPCrates.MouseButton1Down:connect(function()
1173
    if tpcratesstarted == true then
1174
        tpcratesstarted = false
1175
        tpcratesactive = false
1176
        TPCrates.Text = "TP TO CRATES: OFF"
1177
        TPCrates.TextColor3 = Color3.new(0, 0, 0)
1178
    else
1179
        tpcratesstarted = true
1180
        tpcratesactive = true
1181
        TPCrates.Text = "TP TO CRATES: ON"
1182
        TPCrates.TextColor3 = Color3.new(1, 0, 0)
1183
        LocationX = game.Players.LocalPlayer.Character.HumanoidRootPart.Position.x
1184
        LocationY = game.Players.LocalPlayer.Character.HumanoidRootPart.Position.y
1185
        LocationZ = game.Players.LocalPlayer.Character.HumanoidRootPart.Position.z
1186
    end
1187
end)
1188
 
1189
SmallSetup.MouseButton1Down:connect(function()
1190
    if smallsetupactive ~= true then
1191
        smallsetupactive = true
1192
        rebirthactive = true
1193
        bigsetupactive = false
1194
        layoutempty = false
1195
        SmallSetup.Text = "SMALL SETUP: ON"
1196
        mediumsetupactive = false
1197
        MediumSetup.Text = "MEDIUM SETUP: OFF"
1198
        MediumSetup.TextColor3 = Color3.new(0, 0, 0)
1199
        BigSetup.Text = "BIG SETUP: OFF"
1200
        SmallSetup.TextColor3 = Color3.new(1, 0, 0)
1201
        BigSetup.TextColor3 = Color3.new(0, 0, 0)
1202
        customsetupactive = false
1203
        setupinuse = false
1204
        CustomSetup.Text = "CUSTOM SETUP: OFF"
1205
        CustomSetup.TextColor3 = Color3.new(0, 0, 0)
1206
        Rebirth.Text = "AUTO REBIRTH: ON"
1207
        Rebirth.TextColor3 = Color3.new(1, 0, 0)
1208
        print("Morning Star Loop (SMALL) setup started on " ..Factory.. ", sit back and relax")
1209
 
1210
        loopsetupstart()
1211
    else
1212
        smallsetupactive = false
1213
        rebirthactive = false
1214
        setuptimeactive = false
1215
        SmallSetup.Text = "SMALL SETUP: OFF"
1216
        SmallSetup.TextColor3 = Color3.new(0, 0, 0)
1217
        Rebirth.Text = "AUTO REBIRTH: OFF"
1218
        Rebirth.TextColor3 = Color3.new(0, 0, 0)
1219
    end
1220
end)
1221
 
1222
MediumSetup.MouseButton1Down:connect(function()
1223
    if mediumsetupactive ~= true then
1224
        mediumsetupactive = true
1225
        rebirthactive = true
1226
        smallsetupactive = false
1227
        bigsetupactive = false
1228
        layoutempty = false
1229
        mediumsetupactive = true
1230
        setupinuse = false
1231
        MediumSetup.Text = "MEDIUM SETUP: ON"
1232
        MediumSetup.TextColor3 = Color3.new(1, 0, 0)
1233
        SmallSetup.Text = "SMALL SETUP: OFF"
1234
        BigSetup.Text = "BIG SETUP: OFF"
1235
        SmallSetup.TextColor3 = Color3.new(0, 0, 0)
1236
        customsetupactive = false
1237
        CustomSetup.Text = "CUSTOM SETUP: OFF"
1238
        CustomSetup.TextColor3 = Color3.new(0, 0, 0)
1239
        BigSetup.TextColor3 = Color3.new(0, 0, 0)
1240
        Rebirth.Text = "AUTO REBIRTH: ON"
1241
        Rebirth.TextColor3 = Color3.new(1, 0, 0)
1242
        print("Neutron Star Loop (MEDIUM) setup started on " ..Factory.. ", sit back and relax")
1243
 
1244
        loopsetupstart()
1245
    else
1246
        mediumsetupactive = false
1247
        rebirthactive = false
1248
        setuptimeactive = false
1249
        MediumSetup.Text = "MEDIUM SETUP: OFF"
1250
        MediumSetup.TextColor3 = Color3.new(0, 0, 0)
1251
        Rebirth.Text = "AUTO REBIRTH: OFF"
1252
        Rebirth.TextColor3 = Color3.new(0, 0, 0)
1253
    end
1254
end)
1255
 
1256
BigSetup.MouseButton1Down:connect(function()
1257
    if bigsetupactive ~= true then
1258
        bigsetupactive = true
1259
        rebirthactive = true
1260
        smallsetupactive = false
1261
        layoutempty = false
1262
        mediumsetupactive = false
1263
        setupinuse = false
1264
        MediumSetup.Text = "MEDIUM SETUP: OFF"
1265
        MediumSetup.TextColor3 = Color3.new(0, 0, 0)
1266
        SmallSetup.Text = "SMALL SETUP: OFF"
1267
        BigSetup.Text = "BIG SETUP: ON"
1268
        SmallSetup.TextColor3 = Color3.new(0, 0, 0)
1269
        BigSetup.TextColor3 = Color3.new(1, 0, 0)
1270
        customsetupactive = false
1271
        CustomSetup.Text = "CUSTOM SETUP: OFF"
1272
        CustomSetup.TextColor3 = Color3.new(0, 0, 0)
1273
        Rebirth.Text = "AUTO REBIRTH: ON"
1274
        Rebirth.TextColor3 = Color3.new(1, 0, 0)
1275
        print("Neutron Star Loop {BIG) setup started on " ..Factory.. ", sit back and relax")
1276
 
1277
        loopsetupstart()
1278
    else
1279
        bigsetupactive = false
1280
        rebirthactive = false
1281
        setuptimeactive = false
1282
        BigSetup.Text = "BIG SETUP: OFF"
1283
        BigSetup.TextColor3 = Color3.new(0, 0, 0)
1284
        Rebirth.Text = "AUTO REBIRTH: OFF"
1285
        Rebirth.TextColor3 = Color3.new(0, 0, 0)
1286
    end
1287
end)
1288
 
1289
CustomSetup.MouseButton1Down:connect(function()
1290
    if customsetupactive ~= true then
1291
        customsetupactive = true
1292
        rebirthactive = true
1293
        smallsetupactive = false
1294
        layoutempty = false
1295
        CustomSetup.Text = "CUSTOM SETUP: ON"
1296
        CustomSetup.TextColor3 = Color3.new(1, 0, 0)
1297
        mediumsetupactive = false
1298
        setupinuse = false
1299
        MediumSetup.Text = "MEDIUM SETUP: OFF"
1300
        MediumSetup.TextColor3 = Color3.new(0, 0, 0)
1301
        SmallSetup.Text = "SMALL SETUP: OFF"
1302
        BigSetup.Text = "BIG SETUP: OFF"
1303
        SmallSetup.TextColor3 = Color3.new(0, 0, 0)
1304
        BigSetup.TextColor3 = Color3.new(0, 0, 0)
1305
        Rebirth.Text = "AUTO REBIRTH: ON"
1306
        Rebirth.TextColor3 = Color3.new(1, 0, 0)
1307
        print("Custom setup started using Layouts1/2 on " ..Factory.. ", sit back and relax")
1308
 
1309
        loopsetupstart()
1310
    else
1311
        customsetupactive = false
1312
        CustomSetup.Text = "CUSTOM SETUP: OFF"
1313
        CustomSetup.TextColor3 = Color3.new(0, 0, 0)
1314
        rebirthactive = false
1315
        setuptimeactive = false
1316
        Rebirth.Text = "AUTO REBIRTH: OFF"
1317
        Rebirth.TextColor3 = Color3.new(0, 0, 0)
1318
        game.Players.LocalPlayer.PlayerGui.GUI.Menu.Menu.Sounds.Message.Volume = 0.5
1319
        game.Players.LocalPlayer.PlayerGui.GUI.Notifications.Visible = true
1320
    end
1321
end)
1322
Rebirth.MouseButton1Down:connect(function()
1323
    if rebirthactive ~= true then
1324
        rebirthactive = true
1325
        Rebirth.Text = "AUTO REBIRTH: ON"
1326
        Rebirth.TextColor3 = Color3.new(1, 0, 0)
1327
    else
1328
        rebirthactive = false
1329
        Rebirth.Text = "AUTO REBIRTH: OFF"
1330
        Rebirth.TextColor3 = Color3.new(0, 0, 0)
1331
    end
1332
end)
1333
 
1334
spawn(function()
1335
    while true do
1336
        wait(0.01)
1337
        if remoteclickactive == true then
1338
            while remoteclickactive == true do
1339
                game:GetService("ReplicatedStorage").RemoteDrop:FireServer()
1340
                wait(0.2)
1341
            end
1342
        end
1343
    end
1344
end)
1345
 
1346
spawn(function()
1347
    while true do
1348
        wait(0.01)
1349
        if pulseclickactive == true then
1350
            while pulseclickactive == true do
1351
                game:GetService("ReplicatedStorage").Pulse:FireServer()
1352
                wait(0.2)
1353
            end
1354
        end
1355
    end
1356
end)
1357
 
1358
spawn(function()
1359
    while true do
1360
        wait(0.25)
1361
        if upgraderclickactive == true then
1362
            while upgraderclickactive == true do
1363
                local ClickEvent = game:GetService("ReplicatedStorage"):WaitForChild('Click');
1364
 
1365
                local CheckFactory = function()
1366
                    for i,v in pairs(workspace.Tycoons:GetChildren()) do
1367
                        if v:FindFirstChild('Owner') then
1368
                            if v.Owner.Value == game.Players.LocalPlayer.Name then
1369
                                return v
1370
                            end
1371
                        end
1372
                    end
1373
                end
1374
 
1375
                local Factory = tostring(CheckFactory())
1376
                local basepart = workspace.Tycoons[Factory]:GetChildren()
1377
 
1378
                for i,v in pairs(basepart) do
1379
                    if v.Name ~= "Ore Gate" then
1380
                        if v.Name ~= "Reversible Conveyor" then
1381
                            for _,desc in pairs(v:GetDescendants()) do
1382
                                if desc:IsA("ClickDetector") then
1383
                                    if desc.Parent:IsA('Part') then
1384
                                        ClickEvent:FireServer(desc.Parent)
1385
                                    end
1386
                                end
1387
                            end
1388
                        end
1389
                    end
1390
                end
1391
                wait(0.2)
1392
            end
1393
        end
1394
    end
1395
end)
1396
 
1397
spawn(function()
1398
    while true do
1399
        wait(0.01)
1400
        if customsetupactive == true then setuptimeout = "600" else setuptimeout = "300" end
1401
        if rebirthactive == true then
1402
            rebirthcashvalue = game.Players.LocalPlayer.leaderstats.Cash.Value
1403
            rebirthcashvalue1 = tostring(rebirthcashvalue)
1404
            game:GetService'ReplicatedStorage'.Rebirth:InvokeServer()
1405
            wait(5)
1406
            if bigsetupactive == true or customsetupactive == true then wait(5) end
1407
            rebirthilfe = game.Players.LocalPlayer.leaderstats.Life.Value
1408
            rebirthilfe = tostring(rebirthilfe)
1409
 
1410
            factoryitems = workspace.Tycoons[tostring(game.Players.LocalPlayer.PlayerTycoon.Value)]:GetChildren()
1411
            for i =1, #factoryitems do
1412
                if factoryitems[i].ClassName == "Model" then
1413
                    layoutempty = false
1414
                    break
1415
                end
1416
                layoutempty = true
1417
            end
1418
            --if layoutempty == true then print("base empty") else print("base not empty") end--
1419
 
1420
            if layoutempty == true then
1421
                if game.Players.LocalPlayer.MinesActivated.Value ~= true then
1422
                    game:GetService("ReplicatedStorage").ToggleMines:InvokeServer()
1423
                    -- print("Turning mines back ON") --
1424
                end
1425
                if smallsetupactive == true or mediumsetupactive == true or bigsetupactive == true or customsetupactive == true then
1426
                    if setupinuse == true then
1427
                        print("ReBirthed to ".. rebirthilfe .. " Life at ".. rebirthcashvalue1)
1428
                        wait(0.5)
1429
                        loopsetupstart()
1430
                    end
1431
                end
1432
            end
1433
            if setuptimeactive == true then
1434
                if smallsetupactive == true or mediumsetupactive == true then
1435
                    setuptime = setuptime + 5
1436
                end
1437
                if bigsetupactive == true or customsetupactive == true then
1438
                    setuptime = setuptime + 10
1439
                end
1440
                if tonumber(setuptime) >= tonumber(setuptimeout) then
1441
                    print("Something went wrong with Setup or Ore. Restarting..")
1442
                    if smallsetupactive == true then
1443
                        smallsetupactive = false
1444
                        wait(1)
1445
                        smallsetupactive = true
1446
                        loopsetupstart()
1447
                    end
1448
                    if mediumsetupactive == true then
1449
                        mediumsetupactive = false
1450
                        wait(1)
1451
                        mediumsetupactive = true
1452
                        loopsetupstart()
1453
                    end
1454
                    if bigsetupactive == true then
1455
                        bigsetupactive = false
1456
                        wait(1)
1457
                        bigsetupactive = true
1458
                        loopsetupstart()
1459
                    end
1460
                    if customsetupactive == true then
1461
                        customsetupactive = false
1462
                        wait(1)
1463
                        customsetupactive = true
1464
                        loopsetupstart()
1465
                    end
1466
                end
1467
            end
1468
        end
1469
    end
1470
end)
1471
 
1472
function loopsetupstart()
1473
    setupinuse = false
1474
    remoteclickactive = false
1475
    upgraderclickactive = false
1476
    setuptimeactive = true 
1477
    setuptime = 0
1478
    if game.Players.LocalPlayer.MinesActivated.Value ~= true then
1479
        game:GetService("ReplicatedStorage").ToggleMines:InvokeServer()
1480
        -- print("Turning mines back ON") --
1481
    end
1482
    if layoutempty ~= true then
1483
        game:GetService("ReplicatedStorage").DestroyAll:InvokeServer()
1484
        wait(2)
1485
    end
1486
    setupinuse = true
1487
 
1488
    if tpcratesstarted == true then
1489
        tpcratesactive = false
1490
        wait(2)
1491
    end
1492
    if customsetupactive == true then
1493
        game.Players.LocalPlayer.PlayerGui.GUI.Notifications.Visible = false
1494
        game.Players.LocalPlayer.PlayerGui.GUI.Menu.Menu.Sounds.Message.Volume = 0
1495
        game:GetService("ReplicatedStorage").Layouts:InvokeServer("Load", "Layout1")
1496
    else
1497
        if defaultdropper == "symmetrium" then
1498
            local Tycoon = workspace.Tycoons:FindFirstChild(tostring(game.Players.LocalPlayer.PlayerTycoon.Value))
1499
            local Event = game:GetService("ReplicatedStorage").PlaceItem
1500
            local A_1 = CFrame.new(-15, 6.5, 67.4999847, 0.000140138043, 1.86660731e-09, 1, -4.3159529e-05, 1, 4.18168433e-09, -1, -4.3159529e-05, 0.000140138043) + Tycoon:FindFirstChild("Base").Position
1501
            Event:InvokeServer("Symmetrium Mine",  A_1)
1502
 
1503
            layoutempty = false
1504
 
1505
            local A_1 = CFrame.new(-18, 5, 53.9999847, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1506
            Event:InvokeServer("Nature's Grip",  A_1)
1507
           
1508
        end
1509
   
1510
        if defaultdropper == "symmetryte" then
1511
            local Tycoon = workspace.Tycoons:FindFirstChild(tostring(game.Players.LocalPlayer.PlayerTycoon.Value))
1512
            local Event = game:GetService("ReplicatedStorage").PlaceItem
1513
            local A_1 = CFrame.new(-15, 6.5, 69, 5.34659193e-05, 9.31346444e-10, 1, -4.31585977e-05, 1, 1.37616774e-09, -1, -4.31585977e-05, 5.34659193e-05) + Tycoon:FindFirstChild("Base").Position
1514
            Event:InvokeServer("Symmetryte Mine",  A_1)
1515
 
1516
            layoutempty = false
1517
 
1518
            local A_1 = CFrame.new(-18, 5, 50.9999847, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1519
            Event:InvokeServer("Nature's Grip",  A_1)
1520
           
1521
        end
1522
    end
1523
 
1524
    if tpcratesstarted == true then
1525
        tpcratesactive = true
1526
    end
1527
   
1528
    wait(4)
1529
   
1530
    game.ReplicatedStorage.BuyItem:InvokeServer('Basic Conveyor', 99)
1531
    wait(0.5)
1532
    game.ReplicatedStorage.BuyItem:InvokeServer('Raised Shielded Conveyor', 99)
1533
    wait(0.5)
1534
    game.ReplicatedStorage.BuyItem:InvokeServer('Centering Conveyor', 40)
1535
    wait(0.5)
1536
    game.ReplicatedStorage.BuyItem:InvokeServer('Conveyor Wall', 40)
1537
    wait(0.5)
1538
    game.ReplicatedStorage.BuyItem:InvokeServer('Military-Grade Conveyor', 90)
1539
    wait(0.5)
1540
    game.ReplicatedStorage.BuyItem:InvokeServer('Pink Teleporter (Receiver)', 1)
1541
    wait(0.5)
1542
    game.ReplicatedStorage.BuyItem:InvokeServer('Pink Teleporter (Sender)', 4)
1543
    wait(0.5)
1544
    game.ReplicatedStorage.BuyItem:InvokeServer('Ore Replicator', 2)
1545
    wait(0.5)
1546
    game.ReplicatedStorage.BuyItem:InvokeServer('Shrine of Penitence', 1)
1547
    wait(0.5)
1548
 
1549
    if customsetupactive == true then
1550
        game.ReplicatedStorage.BuyItem:InvokeServer('Raised Mini Conveyor', 99)
1551
        wait(0.5)
1552
        game.ReplicatedStorage.BuyItem:InvokeServer('Conveyor Converter', 10)
1553
        wait(0.5)
1554
        game.ReplicatedStorage.BuyItem:InvokeServer('Basic Conveyor', 99)
1555
        wait(0.5)
1556
        game.ReplicatedStorage.BuyItem:InvokeServer('Ore Teleporter (Receiver)', 1)
1557
        wait(0.5)
1558
        game.ReplicatedStorage.BuyItem:InvokeServer('Ore Teleporter (Sender)', 4)
1559
        wait(0.5)
1560
        game.ReplicatedStorage.BuyItem:InvokeServer('Raised Mini Conveyor', 99)
1561
        wait(0.5)
1562
        game.ReplicatedStorage.BuyItem:InvokeServer('Walled Conveyor', 99)
1563
        wait(0.5)
1564
        game.ReplicatedStorage.BuyItem:InvokeServer('Raised-ier Conveyor', 99)
1565
        wait(0.5)
1566
        game.ReplicatedStorage.BuyItem:InvokeServer('Steel Wall', 20)
1567
        wait(0.5)
1568
        game.ReplicatedStorage.BuyItem:InvokeServer('Metal Wall Segment', 30)
1569
        wait(0.5)
1570
        game.ReplicatedStorage.BuyItem:InvokeServer('Slanted Wall', 20)
1571
        wait(0.5)
1572
        game.ReplicatedStorage.BuyItem:InvokeServer('Controlled Gate', 99)
1573
        wait(0.5)
1574
        game.ReplicatedStorage.BuyItem:InvokeServer('Ore Cannon', 2)
1575
        wait(0.5)
1576
        game.ReplicatedStorage.BuyItem:InvokeServer('Ore Pulsar', 1)
1577
        wait(0.5)
1578
        game.ReplicatedStorage.BuyItem:InvokeServer('Satellite Beam', 1)
1579
        wait(0.5)
1580
        game.ReplicatedStorage.BuyItem:InvokeServer('Spectral Upgrader', 3)
1581
        wait(0.5)
1582
        game.ReplicatedStorage.BuyItem:InvokeServer('Flaming Ore Scanner', 3)
1583
        wait(0.5)
1584
        game.ReplicatedStorage.BuyItem:InvokeServer('Endpoint Refiner', 1)
1585
        wait(0.5)
1586
        game.ReplicatedStorage.BuyItem:InvokeServer('Ore Elevator', 3)
1587
        wait(0.5)
1588
        game.ReplicatedStorage.BuyItem:InvokeServer('Ore Hoister', 3)
1589
        wait(0.5)
1590
        game.ReplicatedStorage.BuyItem:InvokeServer('Ore Winder', 3)
1591
        wait(0.5)
1592
        game.ReplicatedStorage.BuyItem:InvokeServer('Ore Steamer', 4)
1593
        wait(0.5)
1594
        game.ReplicatedStorage.BuyItem:InvokeServer('Portable Ore Advancer', 30)
1595
        wait(0.5)
1596
        game.ReplicatedStorage.BuyItem:InvokeServer('Portable Ore Stopper', 30)
1597
        wait(0.5)
1598
        game.ReplicatedStorage.BuyItem:InvokeServer('Industrial Ore Welder', 4)
1599
        wait(0.5)
1600
        game.ReplicatedStorage.BuyItem:InvokeServer('Nuclear Conveyor', 20)
1601
        wait(0.5)
1602
        game.ReplicatedStorage.BuyItem:InvokeServer('Freon-Blast Upgrader', 2)
1603
        wait(0.5)
1604
        game.ReplicatedStorage.BuyItem:InvokeServer('Plasma Conveyor', 30)
1605
        wait(0.5)
1606
        game.ReplicatedStorage.BuyItem:InvokeServer('Tiny Conveyor', 40)
1607
        wait(0.5)
1608
        game.ReplicatedStorage.BuyItem:InvokeServer('Ladder', 99)
1609
        wait(0.5)
1610
        game.ReplicatedStorage.BuyItem:InvokeServer('Advanced Ore Scanner', 3)
1611
        wait(0.5)
1612
        game.ReplicatedStorage.BuyItem:InvokeServer('Heat Condenser', 4)
1613
        wait(0.5)
1614
        game.ReplicatedStorage.BuyItem:InvokeServer('Ore Roaster', 3)
1615
        wait(0.5)
1616
        game.ReplicatedStorage.BuyItem:InvokeServer('Overhang Upgrader', 3)
1617
        wait(0.5)
1618
        game.ReplicatedStorage.BuyItem:InvokeServer('Overhang Upgrader', 3)
1619
        wait(0.5)
1620
        game.ReplicatedStorage.BuyItem:InvokeServer('Ore Zapper', 3)
1621
        wait(0.5)
1622
        game.ReplicatedStorage.BuyItem:InvokeServer('Ore Collider', 2)
1623
        wait(0.5)
1624
        game.ReplicatedStorage.BuyItem:InvokeServer('Ore Illuminator', 1)
1625
        wait(0.5)
1626
        game.ReplicatedStorage.BuyItem:InvokeServer('Ore Gate', 4)
1627
        wait(0.5)
1628
        game.ReplicatedStorage.BuyItem:InvokeServer('Large Conveyor Ramp', 15)
1629
        wait(0.5)
1630
        game.ReplicatedStorage.BuyItem:InvokeServer('Conveyor Ramp', 99)
1631
        wait(0.5)
1632
        game.ReplicatedStorage.BuyItem:InvokeServer('Fine-Point Upgrader', 4)
1633
        wait(0.5)
1634
        game.ReplicatedStorage.BuyItem:InvokeServer('Ore Recliner', 5)
1635
        wait(0.5)
1636
        game.ReplicatedStorage.BuyItem:InvokeServer('Ore Zapper', 4)
1637
        wait(0.5)
1638
        game.ReplicatedStorage.BuyItem:InvokeServer('Portable Ore Stopper', 30)
1639
        wait(0.5)
1640
        game.ReplicatedStorage.BuyItem:InvokeServer('Orbitable Upgrader', 3)
1641
        wait(0.5)
1642
        game.ReplicatedStorage.BuyItem:InvokeServer('Coal Mine', 15)
1643
        wait(0.5)
1644
        game.ReplicatedStorage.BuyItem:InvokeServer('Plasma Iron Polisher', 3)
1645
        wait(0.5)
1646
        game.ReplicatedStorage.BuyItem:InvokeServer('Ion Field', 1)
1647
        wait(0.5)
1648
        game.ReplicatedStorage.BuyItem:InvokeServer('Way-Up-High Upgrader', 3)
1649
        wait(0.5)
1650
        game.ReplicatedStorage.BuyItem:InvokeServer('Precision Refiner', 1)
1651
        wait(0.5)
1652
        game.ReplicatedStorage.BuyItem:InvokeServer('Drone Upgrader', 2)
1653
        wait(0.5)
1654
        game.ReplicatedStorage.BuyItem:InvokeServer('Flaming Ore Scanner', 2)
1655
        wait(0.5)
1656
        game.ReplicatedStorage.BuyItem:InvokeServer('Half Conveyor', 6)
1657
        wait(0.5)
1658
    end
1659
 
1660
    wait(4)
1661
    loopsetupstart2()
1662
end
1663
   
1664
function loopsetupstart2()
1665
    setupinuse = false
1666
    if smallsetupactive == true or mediumsetupactive == true or bigsetupactive == true or customsetupactive == true then
1667
 
1668
    game:GetService("ReplicatedStorage").DestroyAll:InvokeServer()
1669
    wait(2)
1670
 
1671
    if game.Players.LocalPlayer.MinesActivated.Value ~= true then
1672
        game:GetService("ReplicatedStorage").ToggleMines:InvokeServer()
1673
        -- print("Turning mines back ON") --
1674
    end
1675
 
1676
    if tpcratesstarted == true then
1677
        tpcratesactive = false
1678
        wait(2)
1679
    end
1680
 
1681
    if customsetupactive == true then
1682
        game.Players.LocalPlayer.PlayerGui.GUI.Notifications.Visible = false
1683
        game.Players.LocalPlayer.PlayerGui.GUI.Menu.Menu.Sounds.Message.Volume = 0
1684
        game:GetService("ReplicatedStorage").Layouts:InvokeServer("Load", "Layout2")
1685
        starloopend()
1686
    else
1687
        if defaultdropper == "symmetrium" then
1688
            local Tycoon = workspace.Tycoons:FindFirstChild(tostring(game.Players.LocalPlayer.PlayerTycoon.Value))
1689
            local Event = game:GetService("ReplicatedStorage").PlaceItem
1690
            local A_1 = CFrame.new(78, 6.5, 76.5, 0.000140138043, 1.86660731e-09, 1, -4.3159529e-05, 1, 4.18168433e-09, -1, -4.3159529e-05, 0.000140138043) + Tycoon:FindFirstChild("Base").Position
1691
            Event:InvokeServer("Symmetrium Mine",  A_1)
1692
           
1693
            local A_1 = CFrame.new(66, 6.5, 76.5, 0.000140138043, 1.86660731e-09, 1, -4.3159529e-05, 1, 4.18168433e-09, -1, -4.3159529e-05, 0.000140138043) + Tycoon:FindFirstChild("Base").Position
1694
            Event:InvokeServer("Symmetrium Mine",  A_1)
1695
           
1696
            local A_1 = CFrame.new(79.5, 5, 55.5, -3.26636873e-05, 4.31581502e-05, -1, 9.29513355e-10, 1, 4.31581502e-05, 1, 4.80190998e-10, -3.26636873e-05) + Tycoon:FindFirstChild("Base").Position
1697
            Event:InvokeServer("Ore Replicator",  A_1)
1698
           
1699
            local A_1 = CFrame.new(67.5, 5, 55.5, -3.26636873e-05, 4.31581502e-05, -1, 9.29513355e-10, 1, 4.31581502e-05, 1, 4.80190998e-10, -3.26636873e-05) + Tycoon:FindFirstChild("Base").Position
1700
            Event:InvokeServer("Ore Replicator",  A_1)
1701
           
1702
            local A_1 = CFrame.new(81, 2, 61.5, -3.26636873e-05, 4.31581502e-05, -1, 9.29513355e-10, 1, 4.31581502e-05, 1, 4.80190998e-10, -3.26636873e-05) + Tycoon:FindFirstChild("Base").Position
1703
            Event:InvokeServer("Raised Shielded Conveyor",  A_1)
1704
           
1705
            local A_1 = CFrame.new(75, 2, 61.5, -3.26636873e-05, 4.31581502e-05, -1, 9.29513355e-10, 1, 4.31581502e-05, 1, 4.80190998e-10, -3.26636873e-05) + Tycoon:FindFirstChild("Base").Position
1706
            Event:InvokeServer("Raised Shielded Conveyor",  A_1)
1707
           
1708
            local A_1 = CFrame.new(69, 2, 61.5, -3.26636873e-05, 4.31581502e-05, -1, 9.29513355e-10, 1, 4.31581502e-05, 1, 4.80190998e-10, -3.26636873e-05) + Tycoon:FindFirstChild("Base").Position
1709
            Event:InvokeServer("Raised Shielded Conveyor",  A_1)
1710
           
1711
            local A_1 = CFrame.new(63, 2, 61.5, -3.26636873e-05, 4.31581502e-05, -1, 9.29513355e-10, 1, 4.31581502e-05, 1, 4.80190998e-10, -3.26636873e-05) + Tycoon:FindFirstChild("Base").Position
1712
            Event:InvokeServer("Raised Shielded Conveyor",  A_1)
1713
           
1714
            local A_1 = CFrame.new(57, 2, 60, -3.26636873e-05, 4.31581502e-05, -1, 9.29513355e-10, 1, 4.31581502e-05, 1, 4.80190998e-10, -3.26636873e-05) + Tycoon:FindFirstChild("Base").Position
1715
            Event:InvokeServer("Basic Conveyor",  A_1)
1716
           
1717
            local A_1 = CFrame.new(51, 2, 60, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
1718
            Event:InvokeServer("Basic Conveyor",  A_1)
1719
           
1720
            local A_1 = CFrame.new(51, 2, 66, 0.000140138043, 1.86660731e-09, 1, -4.3159529e-05, 1, 4.18168433e-09, -1, -4.3159529e-05, 0.000140138043) + Tycoon:FindFirstChild("Base").Position
1721
            Event:InvokeServer("Basic Conveyor",  A_1)
1722
           
1723
            local A_1 = CFrame.new(57, 2, 66, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1724
            Event:InvokeServer("Basic Conveyor",  A_1)
1725
        end
1726
        if defaultdropper == "symmetryte" then
1727
            local Tycoon = workspace.Tycoons:FindFirstChild(tostring(game.Players.LocalPlayer.PlayerTycoon.Value))
1728
            local Event = game:GetService("ReplicatedStorage").PlaceItem
1729
            local A_1 = CFrame.new(75, 6.5, 72, 5.34659193e-05, 9.31346444e-10, 1, -4.31585977e-05, 1, 1.37616774e-09, -1, -4.31585977e-05, 5.34659193e-05) + Tycoon:FindFirstChild("Base").Position
1730
            Event:InvokeServer("Symmetryte Mine",  A_1)
1731
           
1732
            local A_1 = CFrame.new(78, 2, 57, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1733
            Event:InvokeServer("Basic Conveyor",  A_1)
1734
           
1735
            local A_1 = CFrame.new(78, 2, 51, -3.26636873e-05, 4.31581502e-05, -1, 9.29513355e-10, 1, 4.31581502e-05, 1, 4.80190998e-10, -3.26636873e-05) + Tycoon:FindFirstChild("Base").Position
1736
            Event:InvokeServer("Basic Conveyor",  A_1)
1737
           
1738
            local A_1 = CFrame.new(72, 2, 51, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
1739
            Event:InvokeServer("Basic Conveyor",  A_1)
1740
           
1741
            local A_1 = CFrame.new(72, 2, 57, 0.000140138043, 1.86660731e-09, 1, -4.3159529e-05, 1, 4.18168433e-09, -1, -4.3159529e-05, 0.000140138043) + Tycoon:FindFirstChild("Base").Position
1742
            Event:InvokeServer("Basic Conveyor",  A_1)
1743
        end
1744
        if smallsetupactive == true then
1745
            morningstarloop()
1746
        end
1747
        if mediumsetupactive == true then
1748
            neutronstarloop1()
1749
        end
1750
        if bigsetupactive == true then
1751
            neutronstarloop2()
1752
        end
1753
    end
1754
    end
1755
end
1756
 
1757
function morningstarloop()
1758
    tptarget = "Morning Star"
1759
 
1760
    local Tycoon = workspace.Tycoons:FindFirstChild(tostring(game.Players.LocalPlayer.PlayerTycoon.Value))
1761
    local Event = game:GetService("ReplicatedStorage").PlaceItem
1762
    local A_1 = CFrame.new(27, 6.5, 62.9999847, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
1763
    Event:InvokeServer("Morning Star",  A_1)
1764
   
1765
    local A_1 = CFrame.new(27, 2, 54, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1766
    Event:InvokeServer("Military-Grade Conveyor",  A_1)
1767
   
1768
    local A_1 = CFrame.new(27, 2, 48, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1769
    Event:InvokeServer("Military-Grade Conveyor",  A_1)
1770
   
1771
    local A_1 = CFrame.new(27, 5, 39, 5.34659193e-05, 9.31346444e-10, 1, -4.31585977e-05, 1, 1.37616774e-09, -1, -4.31585977e-05, 5.34659193e-05) + Tycoon:FindFirstChild("Base").Position
1772
    Event:InvokeServer("Shrine of Penitence",  A_1)
1773
 
1774
    starloopend()
1775
end
1776
 
1777
function neutronstarloop1()
1778
    tptarget = "Neutron Star"
1779
 
1780
    local Tycoon = workspace.Tycoons:FindFirstChild(tostring(game.Players.LocalPlayer.PlayerTycoon.Value))
1781
    local Event = game:GetService("ReplicatedStorage").PlaceItem
1782
    local A_1 = CFrame.new(21, 6.5, 78, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
1783
    Event:InvokeServer("Neutron Star",  A_1)
1784
   
1785
    local A_1 = CFrame.new(21, 2, 69, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1786
    Event:InvokeServer("Military-Grade Conveyor",  A_1)
1787
   
1788
    local A_1 = CFrame.new(21, 2, 63, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1789
    Event:InvokeServer("Military-Grade Conveyor",  A_1)
1790
   
1791
    local A_1 = CFrame.new(21, 5, 54, 5.34659193e-05, 9.31346444e-10, 1, -4.31585977e-05, 1, 1.37616774e-09, -1, -4.31585977e-05, 5.34659193e-05) + Tycoon:FindFirstChild("Base").Position
1792
    Event:InvokeServer("Shrine of Penitence",  A_1)
1793
 
1794
    starloopend()
1795
end
1796
 
1797
function neutronstarloop2()
1798
    tptarget = "Neutron Star"
1799
 
1800
    local Tycoon = workspace.Tycoons:FindFirstChild(tostring(game.Players.LocalPlayer.PlayerTycoon.Value))
1801
    local Event = game:GetService("ReplicatedStorage").PlaceItem
1802
    local A_1 = CFrame.new(21, 6.5, 78, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
1803
    Event:InvokeServer("Neutron Star",  A_1)
1804
   
1805
    local A_1 = CFrame.new(20.999939, 2, 69, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1806
    Event:InvokeServer("Centering Conveyor",  A_1)
1807
   
1808
    local A_1 = CFrame.new(21, 2, 63, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1809
    Event:InvokeServer("Centering Conveyor",  A_1)
1810
   
1811
    local A_1 = CFrame.new(25.500061, 1.89996338, 69, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
1812
    Event:InvokeServer("Conveyor Wall",  A_1)
1813
   
1814
    local A_1 = CFrame.new(16.499939, 1.89996338, 69, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1815
    Event:InvokeServer("Conveyor Wall",  A_1)
1816
   
1817
    local A_1 = CFrame.new(25.500061, 1.89996338, 63, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
1818
    Event:InvokeServer("Conveyor Wall",  A_1)
1819
   
1820
    local A_1 = CFrame.new(16.499939, 1.89996338, 63, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1821
    Event:InvokeServer("Conveyor Wall",  A_1)
1822
 
1823
    local A_1 = CFrame.new(21, 3.5, 54, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1824
    Event:InvokeServer("Quantum Clockwork",  A_1)
1825
   
1826
    local A_1 = CFrame.new(21, 5, 39, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1827
    Event:InvokeServer("True Overlord Device",  A_1)
1828
   
1829
    local A_1 = CFrame.new(20.9999695, 8, 19.5, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1830
    Event:InvokeServer("Saturated Catalyst",  A_1)
1831
   
1832
    local A_1 = CFrame.new(21, 8, -6.10351563e-05, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1833
    Event:InvokeServer("Azure Spore",  A_1)
1834
   
1835
    local A_1 = CFrame.new(21.0000305, 3.5, -16.5, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1836
    Event:InvokeServer("Quantum Ore Polisher",  A_1)
1837
   
1838
    local A_1 = CFrame.new(21, 5, -31.5, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
1839
    Event:InvokeServer("Tesla Refuter",  A_1)
1840
   
1841
    local A_1 = CFrame.new(21, 3.5, -45, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1842
    Event:InvokeServer("Quantum Clockwork",  A_1)
1843
   
1844
    local A_1 = CFrame.new(21, 5, -59.9999695, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1845
    Event:InvokeServer("True Overlord Device",  A_1)
1846
   
1847
    local A_1 = CFrame.new(21, 3.5, -72, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1848
    Event:InvokeServer("Pink Teleporter (Sender)",  A_1)
1849
   
1850
    local A_1 = CFrame.new(-19.5, 3.5, -75, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
1851
    Event:InvokeServer("Pink Teleporter (Receiver)",  A_1)
1852
   
1853
    local A_1 = CFrame.new(-21, 2.00006104, -66, 0.000226440417, 4.66035299e-09, 1, -4.31585977e-05, 1, 5.11249842e-09, -1, -4.31585977e-05, 0.000226440417) + Tycoon:FindFirstChild("Base").Position
1854
    Event:InvokeServer("Basic Conveyor",  A_1)
1855
   
1856
    local A_1 = CFrame.new(-15, 2, -66, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
1857
    Event:InvokeServer("Centering Conveyor",  A_1)
1858
 
1859
    local A_1 = CFrame.new(-10.5, 1.90002441, -66, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
1860
    Event:InvokeServer("Conveyor Wall",  A_1)
1861
   
1862
    local A_1 = CFrame.new(-25.5, 1.89996338, -66, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1863
    Event:InvokeServer("Conveyor Wall",  A_1)
1864
 
1865
    local A_1 = CFrame.new(-16.5, 5, -52.5, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
1866
    Event:InvokeServer("The Final Upgrader",  A_1)
1867
   
1868
    local A_1 = CFrame.new(-15, 2, -39, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
1869
    Event:InvokeServer("Centering Conveyor",  A_1)
1870
   
1871
    local A_1 = CFrame.new(-21, 2.00006104, -39, 0.000140138043, 1.86660731e-09, 1, -4.3159529e-05, 1, 4.18168433e-09, -1, -4.3159529e-05, 0.000140138043) + Tycoon:FindFirstChild("Base").Position
1872
    Event:InvokeServer("Basic Conveyor",  A_1)
1873
 
1874
    local A_1 = CFrame.new(-25.5, 1.90002441, -39, -1, 3.05171125e-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -1) + Tycoon:FindFirstChild("Base").Position
1875
    Event:InvokeServer("Conveyor Wall",  A_1)
1876
   
1877
    local A_1 = CFrame.new(-10.5, 1.90002441, -39, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
1878
    Event:InvokeServer("Conveyor Wall",  A_1)
1879
   
1880
    local A_1 = CFrame.new(-15, 5, -27, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
1881
    Event:InvokeServer("True Overlord Device",  A_1)
1882
   
1883
    local A_1 = CFrame.new(-15, 3.5, -12, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
1884
    Event:InvokeServer("Quantum Clockwork",  A_1)
1885
   
1886
    local A_1 = CFrame.new(-15, 8, 3, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
1887
    Event:InvokeServer("Azure Spore",  A_1)
1888
   
1889
    local A_1 = CFrame.new(-15, 7.99993896, 21, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
1890
    Event:InvokeServer("The Catalyst",  A_1)
1891
   
1892
    local A_1 = CFrame.new(-15, 3.5, 37.5, 1, 3.05180438e-05, -3.05171125e-05, -3.05171125e-05, 1, 3.05180438e-05, 3.05180438e-05, -3.05171125e-05, 1) + Tycoon:FindFirstChild("Base").Position
1893
    Event:InvokeServer("Quantum Ore Polisher",  A_1)
1894
 
1895
    local A_1 = CFrame.new(-15, 12.5700073, 60, 0.000226440417, 4.66035299e-09, 1, -4.31585977e-05, 1, 5.11249842e-09, -1, -4.31585977e-05, 0.000226440417) + Tycoon:FindFirstChild("Base").Position
1896
    Event:InvokeServer("Sage King",  A_1)
1897
   
1898
    starloopend()
1899
end
1900
 
1901
function starloopend()
1902
    setupinuse = true
1903
    if tpcratesstarted == true then
1904
        tpcratesactive = true
1905
    end
1906
    if remoteclickstarted == true then
1907
        remoteclickactive = true
1908
    end
1909
    if upgraderclickstarted == true then
1910
         upgraderclickactive = true
1911
    end
1912
    wait(oretime)
1913
 
1914
    if smallsetupactive == true or mediumsetupactive == true or bigsetupactive == true or customsetupactive == true then
1915
 
1916
    if turnminesoff then
1917
        if game.Players.LocalPlayer.MinesActivated.Value == true then
1918
            game:GetService("ReplicatedStorage").ToggleMines:InvokeServer()
1919
            -- print("Turning mines OFF") --
1920
        end
1921
    end
1922
 
1923
    if customsetupactive == true then
1924
        local player = game:GetService'Players'.LocalPlayer
1925
        local factorye = player.PlayerTycoon.Value
1926
        local Factory = tostring(factorye)
1927
        local basepart = workspace.Tycoons[Factory]:GetChildren()
1928
        for i=1,#basepart do
1929
            if basepart[i].Name == "Morning Star" then
1930
                tptarget = "Morning Star"
1931
                targeterror = false
1932
                break
1933
            end
1934
            if basepart[i].Name == "Neutron Star" then
1935
                tptarget = "Neutron Star"
1936
                targeterror = false
1937
                break
1938
            end
1939
            targeterror = true
1940
        end
1941
        if targeterror == true then
1942
            print("Error. No Morning Star or Neutron Star found on base.")
1943
            print("Restarting setup to try and fix the problem")
1944
            wait(1)
1945
            customsetupactive = false
1946
            wait(1)
1947
            customsetupactive = true
1948
            loopsetupstart()
1949
        else
1950
            -- print("Target set: " ..tptarget) --
1951
            starloopend2()
1952
        end
1953
    else
1954
        starloopend2()
1955
    end
1956
    end
1957
end
1958
   
1959
function starloopend2()
1960
    local player = game:GetService'Players'.LocalPlayer
1961
    local factorye = player.PlayerTycoon.Value
1962
    local Factory = tostring(factorye)
1963
    thing = game.Workspace.Tycoons[Factory][tptarget].Model.Upgrade
1964
 
1965
    for n = 1,loopnumber do
1966
        wait(.04)
1967
        for i,v in pairs(game.Workspace.DroppedParts[Factory]:getChildren()) do
1968
            if v.Name ~= "Triple Coal Mine" then
1969
                if v.Name ~= "Coal Mine" then
1970
                    local p= CFrame.new(thing.Position.x, thing.Position.y, thing.Position.z)
1971
                    v.CFrame = p
1972
                end
1973
                if smallsetupactive == true then
1974
                    SmallSetup.Text = "SMALL - LOOPS("..tostring(n)..")"
1975
                elseif mediumsetupactive == true then
1976
                    MediumSetup.Text = "MEDIUM - LOOPS("..tostring(n)..")"
1977
                elseif bigsetupactive == true then
1978
                    BigSetup.Text = "BIG - LOOPS("..tostring(n)..")"
1979
                elseif customsetupactive == true then
1980
                    CustomSetup.Text = "CUSTOM - LOOPS("..tostring(n)..")"
1981
                end
1982
            end
1983
        end
1984
    end
1985
    wait(3)
1986
    if smallsetupactive == true then
1987
        SmallSetup.Text = "SMALL SETUP: ON"
1988
    elseif mediumsetupactive == true then
1989
        MediumSetup.Text = "MEDIUM SETUP: ON"
1990
    elseif bigsetupactive == true then
1991
        BigSetup.Text = "BIG SETUP: ON"
1992
    elseif customsetupactive == true then
1993
        CustomSetup.Text = "CUSTOM SETUP: ON"
1994
    end
1995
end
1996
 
1997
LoopButton.MouseButton1Down:connect(function()
1998
    local player = game:GetService'Players'.LocalPlayer
1999
    local factorye = player.PlayerTycoon.Value
2000
    local Factory = tostring(factorye)
2001
    thing = game.Workspace.Tycoons[Factory][tostring(LoopItem.Text)].Model.Upgrade
2002
 
2003
    for n = 1,tonumber(TPLoopNumber.Text) do
2004
        wait(.04)
2005
        for i,v in pairs(game.Workspace.DroppedParts[Factory]:getChildren()) do
2006
            if v.Name ~= "Triple Coal Mine" then
2007
                if v.Name ~= "Coal Mine" then
2008
                    local p= CFrame.new(thing.Position.x, thing.Position.y, thing.Position.z)
2009
                    v.CFrame = p
2010
                end
2011
            end
2012
        end
2013
        LoopButton.Text = "LOOPS("..tostring(n)..")"
2014
        LoopButton.TextColor3 = Color3.new(1, 0, 0)
2015
    end
2016
    wait(3)
2017
        LoopButton.Text = "LOOP"
2018
        LoopButton.TextColor3 = Color3.new(0, 0, 0)
2019
end)
2020
 
2021
mouse.KeyDown:connect(function(key)
2022
    if key == "b" then
2023
        local player = game:GetService'Players'.LocalPlayer
2024
        local factorynumber = player.PlayerTycoon.Value
2025
        local Factory = tostring(factorynumber)
2026
        for i,v in pairs(game.Workspace.DroppedParts[Factory]:getChildren()) do
2027
            if v.Name ~= "Triple Coal Mine" then
2028
                if v.Name ~= "Coal Mine" then
2029
                    local p= CFrame.new(game.Players.LocalPlayer.Character.Head.Position.x, game.Players.LocalPlayer.Character.Head.Position.y -1, game.Players.LocalPlayer.Character.Head.Position.z -1)
2030
                    v.CFrame = p
2031
                end
2032
            end
2033
        end
2034
    end
2035
end)
2036
 
2037
mouse.KeyDown:connect(function(key)
2038
    if key == "m" then
2039
        if game.Players.LocalPlayer.MinesActivated.Value == true then
2040
            game:GetService("ReplicatedStorage").ToggleMines:InvokeServer()
2041
            notify'Turning all mines OFF'
2042
        else
2043
            game:GetService("ReplicatedStorage").ToggleMines:InvokeServer()
2044
            notify'Turning all mines ON'
2045
        end
2046
    end
2047
end)
2048
 
2049
mouse.KeyDown:connect(function(key)
2050
    if key == "n" then
2051
        local ClickEvent = game:GetService("ReplicatedStorage"):WaitForChild('Click');
2052
        local CheckFactory = function()
2053
            for i,v in pairs(workspace.Tycoons:GetChildren()) do
2054
                if v:FindFirstChild('Owner') then
2055
                    if v.Owner.Value == game.Players.LocalPlayer.Name then
2056
                        return v
2057
                    end
2058
                end
2059
            end
2060
        end
2061
 
2062
        local Factory = tostring(CheckFactory())
2063
        local basepart = workspace.Tycoons[Factory]:GetChildren()
2064
 
2065
        if toggleoregate == true then
2066
            toggleoregate = false
2067
            notify'Closing ALL Ore Gates'
2068
            for i,v in pairs(basepart) do
2069
                if v.Name == "Ore Gate" then
2070
                    for _,desc in pairs(v:GetDescendants()) do
2071
                        if desc:IsA("ClickDetector") then
2072
                            if desc.Parent:IsA("Part") then
2073
                                ClickEvent:FireServer(desc.Parent)
2074
                                break
2075
                            end
2076
                        end
2077
                    end
2078
                end
2079
            end
2080
        else
2081
            toggleoregate = true
2082
            notify'Opening ALL Ore Gates'
2083
            for i,v in pairs(basepart) do
2084
                if v.Name == "Ore Gate" then
2085
                    for _,desc in pairs(v:GetDescendants()) do
2086
                        if desc:IsA("ClickDetector") then
2087
                            if desc.Parent:IsA("Part") then
2088
                                ClickEvent:FireServer(desc.Parent)
2089
                            end
2090
                        end
2091
                    end
2092
                end
2093
            end
2094
        end
2095
    end
2096
end)
2097
 
2098
mouse.KeyDown:connect(function(key)
2099
    if key == "k" then
2100
        local ClickEvent = game:GetService("ReplicatedStorage"):WaitForChild('Click');
2101
        local CheckFactory = function()
2102
            for i,v in pairs(workspace.Tycoons:GetChildren()) do
2103
                if v:FindFirstChild('Owner') then
2104
                    if v.Owner.Value == game.Players.LocalPlayer.Name then
2105
                        return v
2106
                    end
2107
                end
2108
            end
2109
        end
2110
 
2111
        local Factory = tostring(CheckFactory())
2112
        local basepart = workspace.Tycoons[Factory]:GetChildren()
2113
 
2114
        for i,v in pairs(basepart) do
2115
            if v.Name == "Reversible Conveyor" then
2116
                for _,desc in pairs(v:GetDescendants()) do
2117
                    if desc:IsA("ClickDetector") then
2118
                        if desc.Parent:IsA('Part') then
2119
                            ClickEvent:FireServer(desc.Parent)
2120
                        end
2121
                    end
2122
                end
2123
            end
2124
        end
2125
        notify'Switching ALL Reversible Conveyors'
2126
    end
2127
end)
2128
 
2129
mouse.KeyDown:connect(function(key)
2130
    if key == "j" then
2131
        if remoteclickstarted == true then
2132
            remoteclickstarted = false
2133
            remoteclickactive = false
2134
            notify'Remote Clicking turned OFF'
2135
        else
2136
            remoteclickstarted = true
2137
            remoteclickactive = true
2138
            notify'Remote Clicking turned ON'
2139
        end
2140
    end
2141
end)
2142
 
2143
mouse.KeyDown:connect(function(key)
2144
    if key == "h" then
2145
        if upgraderclickstarted == true then
2146
            upgraderclickstarted = false
2147
            upgraderclickactive = false
2148
            notify'Clicking Upgraders turned OFF'
2149
        else
2150
            upgraderclickstarted = true
2151
            upgraderclickactive = true
2152
            notify'Clicking Upgraders turned ON'
2153
        end
2154
    end
2155
end)
2156
 
2157
function CountBricks()
2158
  local count = 0
2159
    for i,v in pairs(workspace:GetChildren()) do
2160
        for x in string.gmatch(v.Name, "Crate") do
2161
            if v.Name ~= "GiftCrate" then
2162
                wait(0.1)
2163
                count = count + 1
2164
            end
2165
        end
2166
    end
2167
    for i,v in pairs(workspace.Shadows:GetChildren()) do
2168
        for x in string.gmatch(v.Name, "Crate") do
2169
            wait(0.1)
2170
            count = count + 1
2171
        end
2172
    end
2173
   return count
2174
end
2175
 
2176
spawn (function()
2177
    while true do
2178
        wait(0.1)
2179
        CountTpCrates.Text = CountBricks()
2180
    end
2181
end)
2182
2183
wait(0.5)local ba=Instance.new("ScreenGui")
2184
local ca=Instance.new("TextLabel")local da=Instance.new("Frame")
2185
local _b=Instance.new("TextLabel")local ab=Instance.new("TextLabel")ba.Parent=game.CoreGui
2186
ba.ZIndexBehavior=Enum.ZIndexBehavior.Sibling;ca.Parent=ba;ca.Active=true
2187
ca.BackgroundColor3=Color3.new(0.176471,0.176471,0.176471)ca.Draggable=true
2188
ca.Position=UDim2.new(0.698610067,0,0.098096624,0)ca.Size=UDim2.new(0,304,0,52)
2189
ca.Font=Enum.Font.SourceSansSemibold;ca.Text="Anti Afk Kick Script"ca.TextColor3=Color3.new(0,1,1)
2190
ca.TextSize=22;da.Parent=ca
2191
da.BackgroundColor3=Color3.new(0.196078,0.196078,0.196078)da.Position=UDim2.new(0,0,1.0192306,0)
2192
da.Size=UDim2.new(0,304,0,107)_b.Parent=da
2193
_b.BackgroundColor3=Color3.new(0.176471,0.176471,0.176471)_b.Position=UDim2.new(0,0,0.800455689,0)
2194
_b.Size=UDim2.new(0,304,0,21)_b.Font=Enum.Font.Arial;_b.Text="Made by Warn"
2195
_b.TextColor3=Color3.new(1,1,1)_b.TextSize=20;ab.Parent=da
2196
ab.BackgroundColor3=Color3.new(0.176471,0.176471,0.176471)ab.Position=UDim2.new(0,0,0.158377379,0)
2197
ab.Size=UDim2.new(0,304,0,44)ab.Font=Enum.Font.ArialBold;ab.Text="Status: Script Started"
2198
ab.TextColor3=Color3.new(1,1,1)ab.TextSize=20;local bb=game:service'VirtualUser'
2199
game:service'Players'.LocalPlayer.Idled:connect(function()
2200
bb:CaptureController()bb:ClickButton2(Vector2.new())
2201
ab.Text="You went idle and ROBLOX tried to kick you but we reflected it!"wait(2)ab.Text="Script Re-Enabled"end)
2202
2203
-- Credit to Bork for the scripts!
2204
2205
2206
local MinersHavenGUI = Instance.new("ScreenGui")
2207
local MainFrame = Instance.new("Frame")
2208
local BodyFrame = Instance.new("Frame")
2209
local AutoRebirth = Instance.new("TextButton")
2210
local AutoRemote = Instance.new("TextButton")
2211
local TPUpgraders = Instance.new("TextButton")
2212
local Instructions = Instance.new("TextButton")
2213
local Credits = Instance.new("TextLabel")
2214
local Divider = Instance.new("TextLabel")
2215
local InstructionSteps = Instance.new("Frame")
2216
local Step1 = Instance.new("TextLabel")
2217
local Step2 = Instance.new("TextLabel")
2218
local Step0 = Instance.new("TextLabel")
2219
local Step3 = Instance.new("TextLabel")
2220
local Step4 = Instance.new("TextLabel")
2221
local AutoLayout1 = Instance.new("TextButton")
2222
local AutoLayout2 = Instance.new("TextButton")
2223
local AutoLayout3 = Instance.new("TextButton")
2224
local AutoLayout = Instance.new("TextLabel")
2225
local Destroy = Instance.new("TextButton")
2226
local Mini = Instance.new("TextButton")
2227
local Name = Instance.new("TextLabel")
2228
--Properties:
2229
MinersHavenGUI.Name = "MinersHavenGUI"
2230
MinersHavenGUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
2231
MinersHavenGUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
2232
2233
MainFrame.Name = "MainFrame"
2234
MainFrame.Parent = MinersHavenGUI
2235
MainFrame.Active = true
2236
MainFrame.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
2237
MainFrame.BorderSizePixel = 0
2238
MainFrame.Position = UDim2.new(0.108695649, 0, 0.18427518, 0)
2239
MainFrame.Selectable = true
2240
MainFrame.Size = UDim2.new(0, 323, 0, 40)
2241
MainFrame.Draggable = true
2242
2243
BodyFrame.Name = "BodyFrame"
2244
BodyFrame.Parent = MainFrame
2245
BodyFrame.BackgroundColor3 = Color3.new(1, 1, 1)
2246
BodyFrame.BorderSizePixel = 0
2247
BodyFrame.Position = UDim2.new(0, 0, 1, 0)
2248
BodyFrame.Size = UDim2.new(0, 323, 0, 162)
2249
2250
AutoRebirth.Name = "AutoRebirth"
2251
AutoRebirth.Parent = BodyFrame
2252
AutoRebirth.BackgroundColor3 = Color3.new(0.956863, 0.956863, 0.956863)
2253
AutoRebirth.BorderSizePixel = 0
2254
AutoRebirth.Size = UDim2.new(0, 166, 0, 43)
2255
AutoRebirth.Font = Enum.Font.SourceSans
2256
AutoRebirth.Text = "Auto Rebirth: OFF"
2257
AutoRebirth.TextColor3 = Color3.new(0, 0, 0)
2258
AutoRebirth.TextSize = 14
2259
2260
AutoRemote.Name = "AutoRemote"
2261
AutoRemote.Parent = BodyFrame
2262
AutoRemote.BackgroundColor3 = Color3.new(0.956863, 0.956863, 0.956863)
2263
AutoRemote.BorderSizePixel = 0
2264
AutoRemote.Position = UDim2.new(0.4860681, 0, 0, 0)
2265
AutoRemote.Size = UDim2.new(0, 166, 0, 43)
2266
AutoRemote.Font = Enum.Font.SourceSans
2267
AutoRemote.Text = "Auto Remote: OFF"
2268
AutoRemote.TextColor3 = Color3.new(0, 0, 0)
2269
AutoRemote.TextSize = 14
2270
2271
TPUpgraders.Name = "TPUpgraders"
2272
TPUpgraders.Parent = BodyFrame
2273
TPUpgraders.BackgroundColor3 = Color3.new(0.956863, 0.956863, 0.956863)
2274
TPUpgraders.BorderSizePixel = 0
2275
TPUpgraders.Position = UDim2.new(0.241486058, 0, 0.415868074, 0)
2276
TPUpgraders.Size = UDim2.new(0, 166, 0, 43)
2277
TPUpgraders.Font = Enum.Font.SourceSans
2278
TPUpgraders.Text = "Upgrader CFrame"
2279
TPUpgraders.TextColor3 = Color3.new(0, 0, 0)
2280
TPUpgraders.TextSize = 14
2281
2282
Instructions.Name = "Instructions"
2283
Instructions.Parent = BodyFrame
2284
Instructions.BackgroundColor3 = Color3.new(0.956863, 0.956863, 0.956863)
2285
Instructions.BorderSizePixel = 0
2286
Instructions.Position = UDim2.new(0.365325123, 0, 0.722740173, 0)
2287
Instructions.Size = UDim2.new(0, 87, 0, 25)
2288
Instructions.Font = Enum.Font.SourceSans
2289
Instructions.Text = "Instructions: OFF"
2290
Instructions.TextColor3 = Color3.new(0, 0, 0)
2291
Instructions.TextSize = 14
2292
2293
Credits.Name = "Credits"
2294
Credits.Parent = BodyFrame
2295
Credits.BackgroundColor3 = Color3.new(1, 1, 1)
2296
Credits.BackgroundTransparency = 1
2297
Credits.BorderSizePixel = 0
2298
Credits.Position = UDim2.new(0.662538707, 0, 0.74125874, 0)
2299
Credits.Size = UDim2.new(0, 109, 0, 37)
2300
Credits.Font = Enum.Font.SourceSans
2301
Credits.Text = "by Stefanuk12"
2302
Credits.TextColor3 = Color3.new(0, 0, 0)
2303
Credits.TextSize = 14
2304
2305
Divider.Name = "Divider"
2306
Divider.Parent = BodyFrame
2307
Divider.BackgroundColor3 = Color3.new(1, 1, 1)
2308
Divider.BorderColor3 = Color3.new(0, 0, 0)
2309
Divider.Position = UDim2.new(0, 0, 0.263662249, 0)
2310
Divider.Size = UDim2.new(0, 323, 0, 0)
2311
Divider.Font = Enum.Font.SourceSans
2312
Divider.Text = " "
2313
Divider.TextColor3 = Color3.new(0, 0, 0)
2314
Divider.TextSize = 14
2315
2316
InstructionSteps.Name = "InstructionSteps"
2317
InstructionSteps.Parent = BodyFrame
2318
InstructionSteps.BackgroundColor3 = Color3.new(1, 1, 1)
2319
InstructionSteps.BorderSizePixel = 0
2320
InstructionSteps.Position = UDim2.new(1, 0, 0, 0)
2321
InstructionSteps.Size = UDim2.new(0, 323, 0, 162)
2322
InstructionSteps.Visible = false
2323
2324
Step1.Name = "Step1"
2325
Step1.Parent = InstructionSteps
2326
Step1.BackgroundColor3 = Color3.new(1, 1, 1)
2327
Step1.BorderSizePixel = 0
2328
Step1.Position = UDim2.new(0, 0, 0.240740746, 0)
2329
Step1.Size = UDim2.new(0, 323, 0, 29)
2330
Step1.Font = Enum.Font.SourceSansLight
2331
Step1.Text = "1. Make a layout - Look at thread for more info"
2332
Step1.TextColor3 = Color3.new(0, 0, 0)
2333
Step1.TextSize = 14
2334
2335
Step2.Name = "Step2"
2336
Step2.Parent = InstructionSteps
2337
Step2.BackgroundColor3 = Color3.new(1, 1, 1)
2338
Step2.BorderSizePixel = 0
2339
Step2.Position = UDim2.new(0, 0, 0.419753045, 0)
2340
Step2.Size = UDim2.new(0, 323, 0, 29)
2341
Step2.Font = Enum.Font.SourceSansLight
2342
Step2.Text = "2. Turn AutoRebirth/Remote ON"
2343
Step2.TextColor3 = Color3.new(0, 0, 0)
2344
Step2.TextSize = 14
2345
2346
Step0.Name = "Step0"
2347
Step0.Parent = InstructionSteps
2348
Step0.BackgroundColor3 = Color3.new(1, 1, 1)
2349
Step0.BorderSizePixel = 0
2350
Step0.Position = UDim2.new(0, 0, 0.0679011345, 0)
2351
Step0.Size = UDim2.new(0, 323, 0, 29)
2352
Step0.Font = Enum.Font.SourceSansLight
2353
Step0.Text = "0. Find a game with people that have very high rebirths"
2354
Step0.TextColor3 = Color3.new(0, 0, 0)
2355
Step0.TextSize = 14
2356
2357
Step3.Name = "Step3"
2358
Step3.Parent = InstructionSteps
2359
Step3.BackgroundColor3 = Color3.new(1, 1, 1)
2360
Step3.BorderSizePixel = 0
2361
Step3.Position = UDim2.new(0, 0, 0.598765433, 0)
2362
Step3.Size = UDim2.new(0, 323, 0, 29)
2363
Step3.Font = Enum.Font.SourceSansLight
2364
Step3.Text = "3. Press the Upgrader CFrame button and load the layout"
2365
Step3.TextColor3 = Color3.new(0, 0, 0)
2366
Step3.TextSize = 14
2367
2368
Step4.Name = "Step4"
2369
Step4.Parent = InstructionSteps
2370
Step4.BackgroundColor3 = Color3.new(1, 1, 1)
2371
Step4.BorderSizePixel = 0
2372
Step4.Position = UDim2.new(0, 0, 0.746913552, 0)
2373
Step4.Size = UDim2.new(0, 323, 0, 29)
2374
Step4.Font = Enum.Font.SourceSansLight
2375
Step4.Text = "4. Once you've rebirthed, Repeat from Step 3"
2376
Step4.TextColor3 = Color3.new(0, 0, 0)
2377
Step4.TextSize = 14
2378
2379
AutoLayout1.Name = "AutoLayout1"
2380
AutoLayout1.Parent = BodyFrame
2381
AutoLayout1.BackgroundColor3 = Color3.new(0.956863, 0.956863, 0.956863)
2382
AutoLayout1.BorderSizePixel = 0
2383
AutoLayout1.Position = UDim2.new(0, 0, 0.839506149, 0)
2384
AutoLayout1.Size = UDim2.new(0, 22, 0, 26)
2385
AutoLayout1.Font = Enum.Font.SourceSans
2386
AutoLayout1.Text = "1"
2387
AutoLayout1.TextColor3 = Color3.new(0, 0, 0)
2388
AutoLayout1.TextSize = 14
2389
2390
AutoLayout2.Name = "AutoLayout2"
2391
AutoLayout2.Parent = BodyFrame
2392
AutoLayout2.BackgroundColor3 = Color3.new(0.956863, 0.956863, 0.956863)
2393
AutoLayout2.BorderSizePixel = 0
2394
AutoLayout2.Position = UDim2.new(0.067079477, 0, 0.839506149, 0)
2395
AutoLayout2.Size = UDim2.new(0, 22, 0, 26)
2396
AutoLayout2.Font = Enum.Font.SourceSans
2397
AutoLayout2.Text = "2"
2398
AutoLayout2.TextColor3 = Color3.new(0, 0, 0)
2399
AutoLayout2.TextSize = 14
2400
2401
AutoLayout3.Name = "AutoLayout3"
2402
AutoLayout3.Parent = BodyFrame
2403
AutoLayout3.BackgroundColor3 = Color3.new(0.956863, 0.956863, 0.956863)
2404
AutoLayout3.BorderSizePixel = 0
2405
AutoLayout3.Position = UDim2.new(0.134158954, 0, 0.839506149, 0)
2406
AutoLayout3.Size = UDim2.new(0, 22, 0, 26)
2407
AutoLayout3.Font = Enum.Font.SourceSans
2408
AutoLayout3.Text = "3"
2409
AutoLayout3.TextColor3 = Color3.new(0, 0, 0)
2410
AutoLayout3.TextSize = 14
2411
2412
AutoLayout.Name = "AutoLayout"
2413
AutoLayout.Parent = BodyFrame
2414
AutoLayout.BackgroundColor3 = Color3.new(1, 1, 1)
2415
AutoLayout.BackgroundTransparency = 1
2416
AutoLayout.BorderSizePixel = 0
2417
AutoLayout.Position = UDim2.new(0, 0, 0.697530866, 0)
2418
AutoLayout.Size = UDim2.new(0, 65, 0, 29)
2419
AutoLayout.Font = Enum.Font.SourceSans
2420
AutoLayout.Text = "Auto Layout"
2421
AutoLayout.TextColor3 = Color3.new(0, 0, 0)
2422
AutoLayout.TextSize = 14
2423
2424
Destroy.Name = "Destroy"
2425
Destroy.Parent = MainFrame
2426
Destroy.BackgroundColor3 = Color3.new(1, 1, 1)
2427
Destroy.BackgroundTransparency = 1
2428
Destroy.BorderSizePixel = 0
2429
Destroy.Position = UDim2.new(0.801857591, 0, 0, 0)
2430
Destroy.Size = UDim2.new(0, 64, 0, 40)
2431
Destroy.Font = Enum.Font.SourceSans
2432
Destroy.Text = "X"
2433
Destroy.TextColor3 = Color3.new(0, 0, 0)
2434
Destroy.TextSize = 14
2435
2436
Mini.Name = "Mini"
2437
Mini.Parent = MainFrame
2438
Mini.BackgroundColor3 = Color3.new(1, 1, 1)
2439
Mini.BackgroundTransparency = 1
2440
Mini.BorderSizePixel = 0
2441
Mini.Position = UDim2.new(0.603715181, 0, 0, 0)
2442
Mini.Size = UDim2.new(0, 64, 0, 40)
2443
Mini.Font = Enum.Font.SourceSans
2444
Mini.Text = "_"
2445
Mini.TextColor3 = Color3.new(0, 0, 0)
2446
Mini.TextSize = 14
2447
2448
Name.Name = "Name"
2449
Name.Parent = MainFrame
2450
Name.BackgroundColor3 = Color3.new(1, 1, 1)
2451
Name.BackgroundTransparency = 1
2452
Name.BorderSizePixel = 0
2453
Name.Size = UDim2.new(0, 195, 0, 40)
2454
Name.Font = Enum.Font.SourceSansLight
2455
Name.Text = "Rebirthing Tool - Miners Haven"
2456
Name.TextColor3 = Color3.new(0, 0, 0)
2457
Name.TextSize = 14
2458
2459
-- Scripts:
2460
2461
_G.AutoRebirth = false
2462
_G.AutoRemote = false
2463
2464
2465
Destroy.MouseButton1Click:connect(function() -- Destory GUI
2466
    MinersHavenGUI:Destroy()
2467
end)
2468
2469
Mini.MouseButton1Click:connect(function() -- Minimise/Restore GUI
2470
    if BodyFrame.Visible == true then
2471
        BodyFrame.Visible = false
2472
        else BodyFrame.Visible = true
2473
    end
2474
end)
2475
2476
Instructions.MouseButton1Click:connect(function() -- Minimise/Restore Instructions
2477
    if InstructionSteps.Visible == false then
2478
        InstructionSteps.Visible = true
2479
        Instructions.Text = "Instructions: ON"
2480
    else InstructionSteps.Visible = false
2481
        Instructions.Text = "Instructions: OFF"
2482
    end
2483
end)
2484
2485
AutoRebirth.MouseButton1Click:connect(function() -- Toggle work for AutoRebirth
2486
    if _G.AutoRebirth == false then
2487
        _G.AutoRebirth = true
2488
        AutoRebirth.Text = "Auto Rebirth: ON"
2489
    else _G.AutoRebirth = false
2490
        AutoRebirth.Text = "Auto Rebirth: OFF"
2491
    end
2492
    while _G.AutoRebirth == true do wait()
2493
        game.ReplicatedStorage.Rebirth:InvokeServer()
2494
    end
2495
end)
2496
2497
AutoRemote.MouseButton1Click:connect(function() -- Toggle work for AutoRemote
2498
    if _G.AutoRemote == false then
2499
        _G.AutoRemote = true
2500
        AutoRemote.Text = "Auto Remote: ON"
2501
    else _G.AutoRemote = false
2502
        AutoRemote.Text = "Auto Remote: OFF"
2503
    end
2504
    while _G.AutoRemote == true do wait()
2505
        game.ReplicatedStorage.RemoteDrop:FireServer()
2506
    end
2507
end)
2508
2509
TPUpgraders.MouseButton1Click:connect(function() -- Teleports all of the upgraders into the conveyor
2510
    game.ReplicatedStorage.DestroyAll:InvokeServer()
2511
local Tycoon = workspace.Tycoons:FindFirstChild(tostring(game.Players.LocalPlayer.PlayerTycoon.Value)) 
2512
local PlaceItem = game.ReplicatedStorage.PlaceItem 
2513
local placehere = CFrame.new(0, 2, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1) + Tycoon:FindFirstChild("Base").Position
2514
PlaceItem:InvokeServer("Basic Conveyor",  placehere)
2515
wait(0.01) 
2516
local pt = game.Players.LocalPlayer.PlayerTycoon.Value
2517
local cv = game.Players.LocalPlayer.PlayerTycoon.Value["Basic Conveyor"].Hitbox
2518
for i,v in pairs(game.Workspace.Tycoons:GetDescendants()) do
2519
if v.Name == "Big Bad Blaster" or v.Name == "Flaming Schrodinger" or v.Name == "Schrodinger Evaluator" or v.Name == "Super Schrodinger" or v.Name == "Ore Illuminator" or v.Name == "Ore Crane" or v.Name == "Portable Flamethrower" or v.Name == "Flaming Ore Scanner" or v.Name == "Chemical Refiner" or v.Name == "Pirate Cove" or v.Name == "Dragonglass Blaster" or v.Name == "Dragon Blaster" or v.Name == "Clover Blaster" or v.Name == "Hydra Blaster" or v.Name == "Aether Schrodinger" or v.Name == "Ore Indoctrinator" or v.Name == "Arcane Lightning" then
2520
v:Remove()
2521
end
2522
end
2523
for i,v in pairs(game.Workspace.Tycoons:GetDescendants()) do
2524
if v.Name == "Upgrade" then
2525
v.Transparency = 1
2526
v.CFrame = cv.CFrame*CFrame.new(0,100,0)
2527
end
2528
end
2529
for i,v in pairs(game.Workspace.Tycoons:GetDescendants()) do
2530
if v.Name == "Morning Star" or v.Name == "Nova Star" then
2531
v:Remove()
2532
elseif v.Name == "Tesla Resetter" or v.Name == "Tesla Refuter" then
2533
v.Model.Upgrade.CFrame = cv.CFrame*CFrame.new(0,50,0)
2534
elseif v.Name == "The Final Upgrader" or v.Name == "The Ultimate Sacrifice" then
2535
v.Model.Upgrade.CFrame = cv.CFrame*CFrame.new(0,75,0)
2536
end
2537
end
2538
pt["Basic Conveyor"].Hitbox.Touched:connect(function(hit)
2539
    if hit:FindFirstChild("Cash") then
2540
if hit:FindFirstChild("Bork") then
2541
local variable = true
2542
else
2543
local int = Instance.new("IntValue")
2544
int.Parent = hit
2545
int.Name = "Bork"
2546
hit.CFrame = cv.CFrame*CFrame.new(0,100,0)
2547
wait(0.05)
2548
hit.CFrame = cv.CFrame*CFrame.new(0,50,0)
2549
wait(0.05)
2550
hit.CFrame = cv.CFrame*CFrame.new(0,100,0)
2551
wait(0.05)
2552
hit.CFrame = cv.CFrame*CFrame.new(0,75,0)
2553
wait(0.05)
2554
hit.CFrame = cv.CFrame*CFrame.new(0,100,0)
2555
wait(0.5)
2556
hit.CFrame = pt["Basic Furnace"].Model.Lava.CFrame
2557
end
2558
end
2559
end)
2560
end)
2561
2562
AutoLayout2.MouseButton1Down:connect(function() -- Layout 2 gets placed after Rebirth
2563
game.Players.LocalPlayer.leaderstats.Life.Changed:connect(function(plr)
2564
delay(7, function()
2565
game.ReplicatedStorage.Layouts:InvokeServer("Load", "Layout2")
2566
end)
2567
end)
2568
end)
2569
2570
AutoLayout3.MouseButton1Down:connect(function() -- Layout 3 gets placed after Rebirth
2571
game.Players.LocalPlayer.leaderstats.Life.Changed:connect(function(plr)
2572
delay(7, function()
2573
game.ReplicatedStorage.Layouts:InvokeServer("Load", "Layout3")
2574
end)
2575
end)
2576
end)
2577
2578
2579
print("Rebirthing Tool by Stefanuk12. Scripts by Bork")