XrAaz

LegendsOfSpeed

Oct 27th, 2020 (edited)
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.09 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local TextLabel = Instance.new("TextLabel")
  4. local aorb = Instance.new("TextButton")
  5. local textlaben = Instance.new("TextLabel")
  6. local agem = Instance.new("TextButton")
  7. local TextLabel_2 = Instance.new("TextLabel")
  8. local abirth = Instance.new("TextButton")
  9. local TextLabel_3 = Instance.new("TextLabel")
  10. local awinrace = Instance.new("TextButton")
  11. local TextLabel_4 = Instance.new("TextLabel")
  12. local apet = Instance.new("TextButton")
  13. local TextLabel_5 = Instance.new("TextLabel")
  14.  
  15. ScreenGui.Parent = game.CoreGui
  16. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  17.  
  18. Frame.Parent = ScreenGui
  19. Frame.Active = true
  20. Frame.BackgroundColor3 = Color3.new(0.211765, 0.211765, 0.211765)
  21. Frame.BorderSizePixel = 0
  22. Frame.Position = UDim2.new(0.540564775, 0, 0.308904648, 0)
  23. Frame.Size = UDim2.new(0, 317, 0, 349)
  24. Frame.Draggable = true
  25.  
  26. TextLabel.Parent = Frame
  27. TextLabel.Active = true
  28. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  29. TextLabel.BackgroundTransparency = 1
  30. TextLabel.BorderSizePixel = 0
  31. TextLabel.Position = UDim2.new(-0.0378548913, 0, 0.0171919763, 0)
  32. TextLabel.Size = UDim2.new(0, 118, 0, 0)
  33. TextLabel.Font = Enum.Font.SourceSans
  34. TextLabel.Text = "Legends Of Speed"
  35. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  36. TextLabel.TextSize = 14
  37. TextLabel.TextWrapped = true
  38.  
  39. aorb.Name = "aorb"
  40. aorb.Parent = Frame
  41. aorb.BackgroundColor3 = Color3.new(0.490196, 0.490196, 0.490196)
  42. aorb.Position = UDim2.new(0.0315457396, 0, 0.0802292228, 0)
  43. aorb.Size = UDim2.new(0, 46, 0, 33)
  44. aorb.Font = Enum.Font.SourceSans
  45. aorb.Text = "OFF"
  46. aorb.TextColor3 = Color3.new(0, 0, 0)
  47. aorb.TextScaled = true
  48. aorb.TextSize = 14
  49. aorb.TextWrapped = true
  50.  
  51. textlaben.Name = "textlaben"
  52. textlaben.Parent = aorb
  53. textlaben.Active = true
  54. textlaben.BackgroundColor3 = Color3.new(1, 1, 1)
  55. textlaben.BackgroundTransparency = 1
  56. textlaben.BorderSizePixel = 0
  57. textlaben.Position = UDim2.new(1.21739125, 0, 0, 0)
  58. textlaben.Size = UDim2.new(0, 224, 0, 33)
  59. textlaben.Font = Enum.Font.SourceSans
  60. textlaben.Text = "Auto Orb"
  61. textlaben.TextColor3 = Color3.new(1, 1, 1)
  62. textlaben.TextScaled = true
  63. textlaben.TextSize = 14
  64. textlaben.TextWrapped = true
  65.  
  66. agem.Name = "agem"
  67. agem.Parent = Frame
  68. agem.BackgroundColor3 = Color3.new(0.490196, 0.490196, 0.490196)
  69. agem.Position = UDim2.new(0.0315457396, 0, 0.220630363, 0)
  70. agem.Size = UDim2.new(0, 46, 0, 33)
  71. agem.Font = Enum.Font.SourceSans
  72. agem.Text = "OFF"
  73. agem.TextColor3 = Color3.new(0, 0, 0)
  74. agem.TextScaled = true
  75. agem.TextSize = 14
  76. agem.TextWrapped = true
  77.  
  78. TextLabel_2.Parent = agem
  79. TextLabel_2.Active = true
  80. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  81. TextLabel_2.BackgroundTransparency = 1
  82. TextLabel_2.BorderSizePixel = 0
  83. TextLabel_2.Position = UDim2.new(1.21739125, 0, 0, 0)
  84. TextLabel_2.Size = UDim2.new(0, 224, 0, 33)
  85. TextLabel_2.Font = Enum.Font.SourceSans
  86. TextLabel_2.Text = "Auto Gem"
  87. TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
  88. TextLabel_2.TextScaled = true
  89. TextLabel_2.TextSize = 14
  90. TextLabel_2.TextWrapped = true
  91.  
  92. abirth.Name = "abirth"
  93. abirth.Parent = Frame
  94. abirth.BackgroundColor3 = Color3.new(0.490196, 0.490196, 0.490196)
  95. abirth.Position = UDim2.new(0.0315457396, 0, 0.366762191, 0)
  96. abirth.Size = UDim2.new(0, 46, 0, 33)
  97. abirth.Font = Enum.Font.SourceSans
  98. abirth.Text = "OFF"
  99. abirth.TextColor3 = Color3.new(0, 0, 0)
  100. abirth.TextScaled = true
  101. abirth.TextSize = 14
  102. abirth.TextWrapped = true
  103.  
  104. TextLabel_3.Parent = abirth
  105. TextLabel_3.Active = true
  106. TextLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
  107. TextLabel_3.BackgroundTransparency = 1
  108. TextLabel_3.BorderSizePixel = 0
  109. TextLabel_3.Position = UDim2.new(1.21739125, 0, 0, 0)
  110. TextLabel_3.Size = UDim2.new(0, 224, 0, 33)
  111. TextLabel_3.Font = Enum.Font.SourceSans
  112. TextLabel_3.Text = "Auto Rebirth"
  113. TextLabel_3.TextColor3 = Color3.new(1, 1, 1)
  114. TextLabel_3.TextScaled = true
  115. TextLabel_3.TextSize = 14
  116. TextLabel_3.TextWrapped = true
  117.  
  118. awinrace.Name = "awinrace"
  119. awinrace.Parent = Frame
  120. awinrace.BackgroundColor3 = Color3.new(0.490196, 0.490196, 0.490196)
  121. awinrace.Position = UDim2.new(0.0315457396, 0, 0.659025788, 0)
  122. awinrace.Size = UDim2.new(0, 46, 0, 33)
  123. awinrace.Font = Enum.Font.SourceSans
  124. awinrace.Text = ""
  125. awinrace.TextColor3 = Color3.new(0, 0, 0)
  126. awinrace.TextScaled = true
  127. awinrace.TextSize = 14
  128. awinrace.TextWrapped = true
  129.  
  130. TextLabel_4.Parent = awinrace
  131. TextLabel_4.Active = true
  132. TextLabel_4.BackgroundColor3 = Color3.new(1, 1, 1)
  133. TextLabel_4.BackgroundTransparency = 1
  134. TextLabel_4.BorderSizePixel = 0
  135. TextLabel_4.Position = UDim2.new(1.21739125, 0, 0, 0)
  136. TextLabel_4.Size = UDim2.new(0, 224, 0, 33)
  137. TextLabel_4.Font = Enum.Font.SourceSans
  138. TextLabel_4.Text = "Win Race"
  139. TextLabel_4.TextColor3 = Color3.new(1, 1, 1)
  140. TextLabel_4.TextScaled = true
  141. TextLabel_4.TextSize = 14
  142. TextLabel_4.TextWrapped = true
  143.  
  144. apet.Name = "apet"
  145. apet.Parent = Frame
  146. apet.BackgroundColor3 = Color3.new(0.490196, 0.490196, 0.490196)
  147. apet.Position = UDim2.new(0.0315457396, 0, 0.51002872, 0)
  148. apet.Size = UDim2.new(0, 46, 0, 33)
  149. apet.Font = Enum.Font.SourceSans
  150. apet.Text = "OFF"
  151. apet.TextColor3 = Color3.new(0, 0, 0)
  152. apet.TextScaled = true
  153. apet.TextSize = 14
  154. apet.TextWrapped = true
  155.  
  156. TextLabel_5.Parent = apet
  157. TextLabel_5.Active = true
  158. TextLabel_5.BackgroundColor3 = Color3.new(1, 1, 1)
  159. TextLabel_5.BackgroundTransparency = 1
  160. TextLabel_5.BorderSizePixel = 0
  161. TextLabel_5.Position = UDim2.new(1.21739125, 0, 0, 0)
  162. TextLabel_5.Size = UDim2.new(0, 224, 0, 33)
  163. TextLabel_5.Font = Enum.Font.SourceSans
  164. TextLabel_5.Text = "Auto Pet"
  165. TextLabel_5.TextColor3 = Color3.new(1, 1, 1)
  166. TextLabel_5.TextScaled = true
  167. TextLabel_5.TextSize = 14
  168. TextLabel_5.TextWrapped = true
  169.  
  170. local lp = game.Players.LocalPlayer
  171. local rservice = game:GetService("RunService")
  172.  
  173. aorb.MouseButton1Click:Connect(function()
  174.     if aorb.Text == "OFF" then
  175.         aorb.Text = "ON"
  176.     else
  177.         aorb.Text = "OFF"
  178.     end
  179. end)
  180. agem.MouseButton1Click:Connect(function()
  181.     if agem.Text == "OFF" then
  182.         agem.Text = "ON"
  183.     else
  184.         agem.Text = "OFF"
  185.     end
  186. end)
  187. abirth.MouseButton1Click:Connect(function()
  188.     if abirth.Text == "OFF" then
  189.         abirth.Text = "ON"
  190.     else
  191.         abirth.Text = "OFF"
  192.     end
  193. end)
  194. awinrace.MouseButton1Click:Connect(function()
  195.     for _,z in pairs(game.Workspace.raceMaps:GetChildren()) do
  196.         if z.mapValue.Value == lp.currentMap.Value then
  197.             lp.Character.HumanoidRootPart.CFrame = z.finishPart.CFrame
  198.         end
  199.     end
  200. end)
  201. apet.MouseButton1Click:Connect(function()
  202.     if apet.Text == "OFF" then
  203.         apet.Text = "ON"
  204.     else
  205.         apet.Text = "OFF"
  206.     end
  207. end)
  208.  
  209. rservice.Stepped:Connect(function()
  210.     if aorb.Text == "ON" then
  211.         game.ReplicatedStorage.rEvents.orbEvent:FireServer("collectOrb", "Orange Orb", "City")
  212.     end
  213.     if apet.Text == "ON" then
  214.         game.ReplicatedStorage.rEvents.openCrystalRemote:InvokeServer("openCrystal", "Yellow Crystal")
  215.         game.ReplicatedStorage.rEvents.openCrystalRemote:InvokeServer("openCrystal", "Blue Crystal")
  216.     end
  217.     if agem.Text == "ON" then
  218.         game.ReplicatedStorage.rEvents.orbEvent:FireServer("collectOrb", "Gem", "City")
  219.     end
  220.     if abirth.Text == "ON" then
  221.         game.ReplicatedStorage.rEvents.rebirthEvent:FireServer("rebirthRequest")
  222.     end
  223. end)
Add Comment
Please, Sign In to add comment