Advertisement
Honansik

Car Crushers 2 Auto Farm Toggle GUI Script

Apr 4th, 2022
12,082
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.14 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local AutoFarmButton = Instance.new("TextButton")
  4. local DisableAutoFarmButton = Instance.new("TextButton")
  5. local NameOfTheGUI = Instance.new("TextLabel")
  6. local NameOfTheGUI_2 = Instance.new("TextLabel")
  7. local EnabledOrDisabledBar = Instance.new("ImageButton")
  8. local EnabledBar = Instance.new("ImageButton")
  9. local EnabledTextOnBar = Instance.new("TextLabel")
  10. local DisabledBar = Instance.new("ImageButton")
  11. local DisabledTextOnBar = Instance.new("TextLabel")
  12. local TextButton = Instance.new("TextButton")
  13. --Properties:
  14. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  15. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  16.  
  17. Frame.Parent = ScreenGui
  18. Frame.Active = true
  19. Frame.BackgroundColor3 = Color3.new(0, 0.745098, 0)
  20. Frame.BorderSizePixel = 0
  21. Frame.Position = UDim2.new(0.373456776, 0, 0.372727275, 0)
  22. Frame.Selectable = true
  23. Frame.Size = UDim2.new(0, 262, 0, 212)
  24. Frame.Draggable = true
  25.  
  26. AutoFarmButton.Name = "AutoFarmButton"
  27. AutoFarmButton.Parent = Frame
  28. AutoFarmButton.BackgroundColor3 = Color3.new(0, 0, 0)
  29. AutoFarmButton.BorderSizePixel = 0
  30. AutoFarmButton.Position = UDim2.new(0.141221374, 0, 0.216436312, 0)
  31. AutoFarmButton.Size = UDim2.new(0, 187, 0, 47)
  32. AutoFarmButton.Font = Enum.Font.Fantasy
  33. AutoFarmButton.Text = "AutoFarm"
  34. AutoFarmButton.TextColor3 = Color3.new(1, 1, 1)
  35. AutoFarmButton.TextSize = 40
  36. AutoFarmButton.TextStrokeColor3 = Color3.new(1, 1, 1)
  37. AutoFarmButton.TextStrokeTransparency = 0.60000002384186
  38. AutoFarmButton.TextWrapped = true
  39. AutoFarmButton.MouseButton1Down:connect(function()
  40. game:GetService("StarterGui"):SetCore("SendNotification", {Title = "Enabled!", Text = "AutoFarm is starting!"})
  41. EnabledBar.Visible = true
  42. DisabledBar.Visible = false
  43. _G.Enabled = true
  44. _G.VehicleName = "UAZ"
  45. while _G.Enabled do
  46. wait()
  47. local Arguments = {
  48. [1] = "Save",
  49. [2] = {
  50. ["BodyColor"] = "Institutional white",
  51. ["BodyMaterial"] = "Platinum"
  52. },
  53. [3] = _G.VehicleName
  54. }
  55.  
  56. game.ReplicatedStorage.rF['LoadSaveCustoms']:InvokeServer(unpack(Arguments))
  57. game:GetService("ReplicatedStorage").rF.SpawnVehicle:InvokeServer(_G.VehicleName)
  58. for i=1,10 do
  59. wait(0.5)
  60. game.Workspace["All crushers"]["Stair Fall"].Wall.CFrame = CFrame.new(0,900,0)
  61. game.Workspace["All crushers"]["Stair Fall"].Wall.Size = Vector3.new(10000,1,10000)
  62. game.Workspace["All crushers"]["Stair Fall"].Wall.CanCollide = false
  63. game.Workspace.CarCollection:findFirstChild(game.Players.LocalPlayer.Name).Car:MoveTo(Vector3.new(0,910,0))
  64. end
  65. end
  66. end)
  67.  
  68. DisableAutoFarmButton.Name = "DisableAutoFarmButton"
  69. DisableAutoFarmButton.Parent = Frame
  70. DisableAutoFarmButton.BackgroundColor3 = Color3.new(0, 0, 0)
  71. DisableAutoFarmButton.BorderSizePixel = 0
  72. DisableAutoFarmButton.Position = UDim2.new(0.141221374, 0, 0.655501306, 0)
  73. DisableAutoFarmButton.Size = UDim2.new(0, 187, 0, 47)
  74. DisableAutoFarmButton.Font = Enum.Font.Fantasy
  75. DisableAutoFarmButton.Text = "Turn off"
  76. DisableAutoFarmButton.TextColor3 = Color3.new(1, 1, 1)
  77. DisableAutoFarmButton.TextSize = 30
  78. DisableAutoFarmButton.TextStrokeColor3 = Color3.new(1, 1, 1)
  79. DisableAutoFarmButton.TextStrokeTransparency = 0.60000002384186
  80. DisableAutoFarmButton.TextWrapped = true
  81. DisableAutoFarmButton.MouseButton1Down:connect(function()
  82. game:GetService("StarterGui"):SetCore("SendNotification", {Title = "Disabled!", Text = "AutoFarm is started disable yourself! Just wait..."})
  83. EnabledBar.Visible = false
  84. DisabledBar.Visible = true
  85. _G.Enabled = false
  86. end)
  87.  
  88. NameOfTheGUI.Name = "NameOfTheGUI"
  89. NameOfTheGUI.Parent = Frame
  90. NameOfTheGUI.BackgroundColor3 = Color3.new(0, 0.952941, 0)
  91. NameOfTheGUI.Position = UDim2.new(-0.0648854971, 0, 0, 0)
  92. NameOfTheGUI.Size = UDim2.new(0, 296, 0, 30)
  93. NameOfTheGUI.Font = Enum.Font.SourceSans
  94. NameOfTheGUI.Text = "Car Crushers 2 Script"
  95. NameOfTheGUI.TextColor3 = Color3.new(0, 0, 0)
  96. NameOfTheGUI.TextScaled = true
  97. NameOfTheGUI.TextSize = 14
  98. NameOfTheGUI.TextWrapped = true
  99.  
  100. NameOfTheGUI_2.Name = "NameOfTheGUI"
  101. NameOfTheGUI_2.Parent = Frame
  102. NameOfTheGUI_2.BackgroundColor3 = Color3.new(0, 0.952941, 0)
  103. NameOfTheGUI_2.Position = UDim2.new(-0.0648854971, 0, 1, 0)
  104. NameOfTheGUI_2.Size = UDim2.new(0, 296, 0, 30)
  105. NameOfTheGUI_2.Font = Enum.Font.SourceSans
  106. NameOfTheGUI_2.Text = "Made by MoXPer :d"
  107. NameOfTheGUI_2.TextColor3 = Color3.new(0, 0, 0)
  108. NameOfTheGUI_2.TextScaled = true
  109. NameOfTheGUI_2.TextSize = 14
  110. NameOfTheGUI_2.TextWrapped = true
  111.  
  112. EnabledOrDisabledBar.Name = "EnabledOrDisabledBar"
  113. EnabledOrDisabledBar.Parent = Frame
  114. EnabledOrDisabledBar.BackgroundColor3 = Color3.new(1, 1, 1)
  115. EnabledOrDisabledBar.BackgroundTransparency = 1
  116. EnabledOrDisabledBar.BorderSizePixel = 0
  117. EnabledOrDisabledBar.Position = UDim2.new(0.222070128, 0, 0.302132934, 0)
  118. EnabledOrDisabledBar.Size = UDim2.new(0, 145, 0, 100)
  119. EnabledOrDisabledBar.Image = "rbxassetid://939118523"
  120.  
  121. EnabledBar.Name = "EnabledBar"
  122. EnabledBar.Parent = EnabledOrDisabledBar
  123. EnabledBar.BackgroundColor3 = Color3.new(1, 1, 1)
  124. EnabledBar.BackgroundTransparency = 1
  125. EnabledBar.Position = UDim2.new(0.337903947, 0, 0.133043513, 0)
  126. EnabledBar.Size = UDim2.new(0, 77, 0, 75)
  127. EnabledBar.Visible = false
  128. EnabledBar.Image = "rbxassetid://939119635"
  129. EnabledBar.ImageColor3 = Color3.new(0.333333, 0.666667, 0)
  130.  
  131. EnabledTextOnBar.Name = "EnabledTextOnBar"
  132. EnabledTextOnBar.Parent = EnabledBar
  133. EnabledTextOnBar.BackgroundColor3 = Color3.new(1, 1, 1)
  134. EnabledTextOnBar.BackgroundTransparency = 1
  135. EnabledTextOnBar.BorderSizePixel = 0
  136. EnabledTextOnBar.Position = UDim2.new(0.142857134, 0, 0.333333313, 0)
  137. EnabledTextOnBar.Size = UDim2.new(0, 55, 0, 24)
  138. EnabledTextOnBar.Font = Enum.Font.SourceSans
  139. EnabledTextOnBar.Text = "Enabled"
  140. EnabledTextOnBar.TextColor3 = Color3.new(0, 1, 0)
  141. EnabledTextOnBar.TextSize = 14
  142.  
  143. DisabledBar.Name = "DisabledBar"
  144. DisabledBar.Parent = EnabledOrDisabledBar
  145. DisabledBar.BackgroundColor3 = Color3.new(1, 1, 1)
  146. DisabledBar.BackgroundTransparency = 1
  147. DisabledBar.Position = UDim2.new(0.0970593691, 0, 0.128695682, 0)
  148. DisabledBar.Size = UDim2.new(0, 81, 0, 75)
  149. DisabledBar.Image = "rbxassetid://939126427"
  150. DisabledBar.ImageColor3 = Color3.new(0.666667, 0, 0)
  151.  
  152. DisabledTextOnBar.Name = "DisabledTextOnBar"
  153. DisabledTextOnBar.Parent = DisabledBar
  154. DisabledTextOnBar.BackgroundColor3 = Color3.new(1, 1, 1)
  155. DisabledTextOnBar.BackgroundTransparency = 1
  156. DisabledTextOnBar.BorderSizePixel = 0
  157. DisabledTextOnBar.Position = UDim2.new(0.185185179, 0, 0.339130461, 0)
  158. DisabledTextOnBar.Size = UDim2.new(0, 49, 0, 27)
  159. DisabledTextOnBar.Font = Enum.Font.SourceSans
  160. DisabledTextOnBar.Text = "Disabled"
  161. DisabledTextOnBar.TextColor3 = Color3.new(1, 0, 0.0156863)
  162. DisabledTextOnBar.TextSize = 14
  163.  
  164. TextButton.Parent = Frame
  165. TextButton.BackgroundColor3 = Color3.new(0.470588, 0.862745, 0.188235)
  166. TextButton.BorderColor3 = Color3.new(0.807843, 0, 0)
  167. TextButton.BorderSizePixel = 0
  168. TextButton.Position = UDim2.new(0.938931286, 0, 0, 0)
  169. TextButton.Size = UDim2.new(0, 33, 0, 30)
  170. TextButton.Font = Enum.Font.SourceSans
  171. TextButton.Text = "X"
  172. TextButton.TextColor3 = Color3.new(0.54902, 0, 0)
  173. TextButton.TextSize = 40
  174. TextButton.TextWrapped = true
  175. TextButton.MouseButton1Down:connect(function()
  176. Frame.Visible = false
  177. TextButton.Visible = false
  178. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement