Advertisement
Hydasi

Greenville - YUBX Hub

Feb 16th, 2023
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.84 KB | None | 0 0
  1.  
  2. loadstring(game:HttpGet("https://raw.githubusercontent.com/deeeity/mercury-lib/master/src.lua"))()
  3.  
  4. local Mercury = loadstring(game:HttpGet("https://raw.githubusercontent.com/deeeity/mercury-lib/master/src.lua"))()
  5.  
  6. local GUI = Mercury:Create{
  7. Name = "YUB-X",
  8. Size = UDim2.fromOffset(550, 350),
  9. Theme = Mercury.Themes.Dark,
  10. Link = "https://YUB-X.com/Greenville/"
  11. }
  12.  
  13. local Tab = GUI:Tab{
  14. Name = "Script",
  15. Icon = "rbxassetid://8569322835"
  16. }
  17.  
  18. Tab:Button{
  19. Name = "Rejoin",
  20. Description = nil,
  21. Callback = function()
  22. local ts = game:GetService("TeleportService")
  23. local p = game:GetService("Players").LocalPlayer
  24. ts:Teleport(game.PlaceId, p)
  25. end
  26.  
  27. }
  28.  
  29.  
  30.  
  31. Tab:Toggle{
  32. Name = "Auto From",
  33. StartingState = false,
  34. Description = nil,
  35. Callback = function(state)
  36.  
  37. if state == true then
  38. GUI:Notification{
  39. Title = "YUB-X:",
  40. Text = "Start Auto From",
  41. Duration = 3,
  42. Callback = function() end
  43. }
  44. end
  45. getgenv().lol = state
  46.  
  47.  
  48. local UserInputService = game:GetService("UserInputService")
  49. local GuiService = game:GetService("GuiService")
  50. local LocalPlayer = game:GetService("Players").LocalPlayer
  51. local Players = game:GetService("Players")
  52. local RunService = game:GetService("RunService")
  53. local UserInputService = game:GetService("UserInputService")
  54. local TweenService = game:GetService("TweenService")
  55.  
  56. local LocalPlayer = Players.LocalPlayer
  57. local Character = LocalPlayer.Character
  58. local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
  59.  
  60. local SeatPart = Humanoid.SeatPart
  61. local Vehicle = SeatPart.Parent
  62. local Wheels = Vehicle:FindFirstChild("Wheels")
  63. local Body = Vehicle:FindFirstChild("Body")
  64. spawn(function()
  65. wait(4.5)
  66. while getgenv().lol == true do
  67. wait()
  68. workspace.CurrentCamera.CameraSubject:ApplyImpulse(
  69. workspace.CurrentCamera.CameraSubject.CFrame.LookVector * Vector3.new(_G.speedd,_G.speedd,_G.speedd)
  70. )
  71. end
  72. end)
  73. spawn(function()
  74. wait(9.5)
  75. while wait(0) and getgenv().lol == true do
  76. _getgenv().lol = true
  77. wait(3)
  78. getgenv().lol = false
  79. end
  80. end)
  81. if SeatPart:FindFirstAncestor("Body") then
  82. Vehicle = SeatPart:FindFirstAncestor("Body").Parent
  83. Wheels = (Wheels ~= nil and Wheels) or Vehicle:FindFirstChild("Wheels")
  84. end
  85.  
  86. if game.PlaceId == 3351674303 then
  87. Wheels = Vehicle:FindFirstChild("Core")
  88. end
  89.  
  90. Vehicle.PrimaryPart = SeatPart
  91.  
  92. local function GetWheelVelocity()
  93. if game.PlaceId == 3351674303 then
  94. return Wheels:GetChildren()[1]["Wheel"].Velocity, Wheels:GetChildren()[1]["Wheel"].RotVelocity
  95. end
  96. for index, value in pairs(Wheels:GetDescendants()) do
  97. if value:IsA("BasePart") then
  98. return value.Velocity, value.RotVelocity
  99. end
  100. end
  101. end
  102.  
  103. local function SetWheelVelocity(Velocity, RotVelocity)
  104. for index, value in pairs(Wheels:GetDescendants()) do
  105. pcall(function()
  106. value.Velocity = Velocity
  107. if RotVelocity ~= nil then
  108. value.RotVelocity = RotVelocity
  109. end
  110. end)
  111. end
  112. end
  113.  
  114. Character.Parent = Vehicle
  115. Vehicle:MoveTo(Vector3.new(-761, -79, -10563))
  116. Character.Parent = workspace
  117.  
  118. if not Vehicle or not Vehicle.Parent or not Humanoid.SeatPart then
  119. end
  120. while wait(1) and getgenv().lol == true do
  121. local Speed = ((2/12) * (60/88)) * SeatPart.Velocity.Magnitude
  122. if SeatPart.Position.X > -14294.7607 then
  123. Character.Parent = Vehicle
  124. Vehicle:MoveTo(Vector3.new(-761, -79, -10563))
  125. Character.Parent = workspace
  126. end
  127. end
  128.  
  129. end
  130. }
  131.  
  132. Tab:Slider{
  133. Name = "Auto Farm Speed",
  134. Default = 0,
  135. Min = 0,
  136. Max = 50,
  137. Callback = function(Value)
  138. _G.speedd = Value -- 450 = 469KM/H
  139. end
  140.  
  141. }
  142.  
  143. Tab:Toggle{
  144. Name = "Boost speed Car",
  145. StartingState = false,
  146. Description = nil,
  147. Callback = function(state)
  148.  
  149. local UserInputService = game:GetService("UserInputService")
  150. local GuiService = game:GetService("GuiService")
  151. local LocalPlayer = game:GetService("Players").LocalPlayer
  152.  
  153. game:GetService("RunService").Stepped:Connect(function()
  154. if GuiService.MenuIsOpen and state == true then
  155. return
  156. end
  157. if workspace.CurrentCamera.CameraSubject:IsDescendantOf(LocalPlayer.Character) and state == true then
  158. return
  159. end
  160. if UserInputService:IsKeyDown(Enum.KeyCode.W
  161. ) and state == true then
  162. workspace.CurrentCamera.CameraSubject:ApplyImpulse(
  163. workspace.CurrentCamera.CameraSubject.CFrame.LookVector * Vector3.new(_G.SValue,_G.SValue,_G.SValue)
  164. )
  165. end
  166. end)
  167.  
  168. --LeftShift Speed
  169. game:GetService("RunService").Stepped:Connect(function()
  170. if GuiService.MenuIsOpen and state == true then
  171. return
  172. end
  173. if workspace.CurrentCamera.CameraSubject:IsDescendantOf(LocalPlayer.Character) and state == true then
  174. return
  175. end
  176. if UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) and state == true then
  177.  
  178.  
  179. workspace.CurrentCamera.CameraSubject:ApplyImpulse(
  180. workspace.CurrentCamera.CameraSubject.CFrame.LookVector * Vector3.new(_G.SValue,_G.SValue,_G.SValue)
  181. )
  182.  
  183. end
  184. end)
  185.  
  186. game:GetService("RunService").Stepped:Connect(function()
  187. if GuiService.MenuIsOpen and state == true then
  188. return
  189. end
  190. if workspace.CurrentCamera.CameraSubject:IsDescendantOf(LocalPlayer.Character) and state == true then
  191. return
  192. end
  193. if UserInputService:IsKeyDown(Enum.KeyCode.S) and state == true then
  194.  
  195.  
  196. workspace.CurrentCamera.CameraSubject:ApplyImpulse(
  197. workspace.CurrentCamera.CameraSubject.CFrame.LookVector * Vector3.new(-_G.SValue,-_G.SValue,-_G.SValue)
  198. )
  199. end
  200. end)
  201. end
  202. }
  203.  
  204. GUI:Notification{
  205. Title = "YUB-X:",
  206. Text = "Ready",
  207. Duration = 5,
  208. Callback = function() end
  209. }
  210.  
  211.  
  212. Tab:Slider{
  213. Name = "Car Speed",
  214. Default = 50,
  215. Min = 0,
  216. Max = 500,
  217. Callback = function(Value)
  218. _G.SValue = Value -- 450 = 469KM/H
  219. end
  220.  
  221. }
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229. GUI:Credit{
  230. Name = "Creditor's YuB - X#6832",
  231. Description = "Made By YUB-X",
  232. V3rm = "link/name",
  233. Discord = "YuB - X#6832"
  234. }
  235.  
  236.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement