Advertisement
zoga70122

speed hack 3.lua

Jan 7th, 2025 (edited)
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.08 KB | None | 0 0
  1. local VenyxLibrary = loadstring(game:HttpGet("https://raw.githubusercontent.com/Documantation12/Universal-Vehicle-Script/main/Library.lua"))()
  2. local Venyx = VenyxLibrary.new("Speed Hack Car | Universal (FOR OLD PITER)", 5013109572)
  3.  
  4. local Players = game:GetService("Players")
  5. local RunService = game:GetService("RunService")
  6. local UserInputService = game:GetService("UserInputService")
  7. local LocalPlayer = Players.LocalPlayer
  8.  
  9. local Theme = {
  10. Background = Color3.fromRGB(61, 60, 124),
  11. Glow = Color3.fromRGB(60, 63, 221),
  12. Accent = Color3.fromRGB(55, 52, 90),
  13. LightContrast = Color3.fromRGB(64, 65, 128),
  14. DarkContrast = Color3.fromRGB(32, 33, 64),
  15. TextColor = Color3.fromRGB(255, 255, 255)
  16. }
  17.  
  18. for index, value in pairs(Theme) do
  19. pcall(Venyx.setTheme, Venyx, index, value)
  20. end
  21.  
  22. local function GetVehicleFromDescendant(Descendant)
  23. return
  24. Descendant:FindFirstAncestor(LocalPlayer.Name .. "\'s Car") or
  25. (Descendant:FindFirstAncestor("Body") and Descendant:FindFirstAncestor("Body").Parent) or
  26. (Descendant:FindFirstAncestor("Misc") and Descendant:FindFirstAncestor("Misc").Parent) or
  27. Descendant:FindFirstAncestorWhichIsA("Model")
  28. end
  29.  
  30. local function TeleportVehicle(CoordinateFrame: CFrame)
  31. local Parent = LocalPlayer.Character.Parent
  32. local Vehicle = GetVehicleFromDescendant(LocalPlayer.Character:FindFirstChildWhichIsA("Humanoid").SeatPart)
  33. LocalPlayer.Character.Parent = Vehicle
  34. local success, response = pcall(function()
  35. return Vehicle:SetPrimaryPartCFrame(CoordinateFrame)
  36. end)
  37. if not success then
  38. return Vehicle:MoveTo(CoordinateFrame.Position)
  39. end
  40. end
  41.  
  42.  
  43. local vehiclePage = Venyx:addPage("Vehicle", 8356815386)
  44. local usageSection = vehiclePage:addSection("Usage")
  45. local velocityEnabled = true;
  46. usageSection:addToggle("Keybinds Active", velocityEnabled, function(v) velocityEnabled = v end)
  47. local flightSection = vehiclePage:addSection("Flight")
  48. local flightEnabled = false
  49. local flightSpeed = 1
  50. flightSection:addToggle("Enabled", false, function(v) flightEnabled = v end)
  51. flightSection:addSlider("Speed", 100, 0, 800, function(v) flightSpeed = v / 100 end)
  52. local defaultCharacterParent
  53. RunService.Stepped:Connect(function()
  54. local Character = LocalPlayer.Character
  55. if flightEnabled == true then
  56. if Character and typeof(Character) == "Instance" then
  57. local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
  58. if Humanoid and typeof(Humanoid) == "Instance" then
  59. local SeatPart = Humanoid.SeatPart
  60. if SeatPart and typeof(SeatPart) == "Instance" and SeatPart:IsA("VehicleSeat") then
  61. local Vehicle = GetVehicleFromDescendant(SeatPart)
  62. if Vehicle and Vehicle:IsA("Model") then
  63. Character.Parent = Vehicle
  64. if not Vehicle.PrimaryPart then
  65. if SeatPart.Parent == Vehicle then
  66. Vehicle.PrimaryPart = SeatPart
  67. else
  68. Vehicle.PrimaryPart = Vehicle:FindFirstChildWhichIsA("BasePart")
  69. end
  70. end
  71. local PrimaryPartCFrame = Vehicle:GetPrimaryPartCFrame()
  72. Vehicle:SetPrimaryPartCFrame(CFrame.new(PrimaryPartCFrame.Position, PrimaryPartCFrame.Position + workspace.CurrentCamera.CFrame.LookVector) * (UserInputService:GetFocusedTextBox() and CFrame.new(0, 0, 0) or CFrame.new((UserInputService:IsKeyDown(Enum.KeyCode.D) and flightSpeed) or (UserInputService:IsKeyDown(Enum.KeyCode.A) and -flightSpeed) or 0, (UserInputService:IsKeyDown(Enum.KeyCode.E) and flightSpeed / 2) or (UserInputService:IsKeyDown(Enum.KeyCode.Q) and -flightSpeed / 2) or 0, (UserInputService:IsKeyDown(Enum.KeyCode.S) and flightSpeed) or (UserInputService:IsKeyDown(Enum.KeyCode.W) and -flightSpeed) or 0)))
  73. SeatPart.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
  74. SeatPart.AssemblyAngularVelocity = Vector3.new(0, 0, 0)
  75. end
  76. end
  77. end
  78. end
  79. else
  80. if Character and typeof(Character) == "Instance" then
  81. Character.Parent = defaultCharacterParent or Character.Parent
  82. defaultCharacterParent = Character.Parent
  83. end
  84. end
  85. end)
  86. local speedSection = vehiclePage:addSection("Acceleration")
  87. local velocityMult = 0.025;
  88. speedSection:addSlider("Multiplier (Thousandths)", 25, 0, 50, function(v) velocityMult = v / 500; end)
  89. local velocityEnabledKeyCode = Enum.KeyCode.W;
  90. speedSection:addKeybind("Velocity Enabled", velocityEnabledKeyCode, function()
  91. if not velocityEnabled then
  92. return
  93. end
  94. while UserInputService:IsKeyDown(velocityEnabledKeyCode) do
  95. task.wait(0)
  96. local Character = LocalPlayer.Character
  97. if Character and typeof(Character) == "Instance" then
  98. local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
  99. if Humanoid and typeof(Humanoid) == "Instance" then
  100. local SeatPart = Humanoid.SeatPart
  101. if SeatPart and typeof(SeatPart) == "Instance" and SeatPart:IsA("VehicleSeat") then
  102. SeatPart.AssemblyLinearVelocity *= Vector3.new(1 + velocityMult, 1, 1 + velocityMult)
  103. end
  104. end
  105. end
  106. if not velocityEnabled then
  107. break
  108. end
  109. end
  110. end, function(v) velocityEnabledKeyCode = v.KeyCode end)
  111. local decelerateSelection = vehiclePage:addSection("Deceleration")
  112. local qbEnabledKeyCode = Enum.KeyCode.S
  113. local velocityMult2 = 150e-3
  114. decelerateSelection:addSlider("Brake Force (Thousandths)", velocityMult2*1e3, 0, 300, function(v) velocityMult2 = v / 1000; end)
  115. decelerateSelection:addKeybind("Quick Brake Enabled", qbEnabledKeyCode, function()
  116. if not velocityEnabled then
  117. return
  118. end
  119. while UserInputService:IsKeyDown(qbEnabledKeyCode) do
  120. task.wait(0)
  121. local Character = LocalPlayer.Character
  122. if Character and typeof(Character) == "Instance" then
  123. local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
  124. if Humanoid and typeof(Humanoid) == "Instance" then
  125. local SeatPart = Humanoid.SeatPart
  126. if SeatPart and typeof(SeatPart) == "Instance" and SeatPart:IsA("VehicleSeat") then
  127. SeatPart.AssemblyLinearVelocity *= Vector3.new(1 - velocityMult2, 1, 1 - velocityMult2)
  128. end
  129. end
  130. end
  131. if not velocityEnabled then
  132. break
  133. end
  134. end
  135. end, function(v) qbEnabledKeyCode = v.KeyCode end)
  136. decelerateSelection:addKeybind("Stop the Vehicle", Enum.KeyCode.P, function(v)
  137. if not velocityEnabled then
  138. return
  139. end
  140. local Character = LocalPlayer.Character
  141. if Character and typeof(Character) == "Instance" then
  142. local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
  143. if Humanoid and typeof(Humanoid) == "Instance" then
  144. local SeatPart = Humanoid.SeatPart
  145. if SeatPart and typeof(SeatPart) == "Instance" and SeatPart:IsA("VehicleSeat") then
  146. SeatPart.AssemblyLinearVelocity *= Vector3.new(0, 0, 0)
  147. SeatPart.AssemblyAngularVelocity *= Vector3.new(0, 0, 0)
  148. end
  149. end
  150. end
  151. end)
  152. local springSection = vehiclePage:addSection("Springs")
  153. springSection:addToggle("Visible", false, function(v)
  154. local Character = LocalPlayer.Character
  155. if Character and typeof(Character) == "Instance" then
  156. local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
  157. if Humanoid and typeof(Humanoid) == "Instance" then
  158. local SeatPart = Humanoid.SeatPart
  159. if SeatPart and typeof(SeatPart) == "Instance" and SeatPart:IsA("VehicleSeat") then
  160. local Vehicle = GetVehicleFromDescendant(SeatPart)
  161. for _, SpringConstraint in pairs(Vehicle:GetDescendants()) do
  162. if SpringConstraint:IsA("SpringConstraint") then
  163. SpringConstraint.Visible = v
  164. end
  165. end
  166. end
  167. end
  168. end
  169. end)
  170. repeat
  171. task.wait(0)
  172. until game:IsLoaded() and game.PlaceId > 0
  173. if game.PlaceId == 3351674303 then
  174. local drivingEmpirePage = Venyx:addPage("Wayfort", 8357222903)
  175. local dealershipSection = drivingEmpirePage:addSection("Vehicle Dealership")
  176. local dealershipList = {}
  177. for index, value in pairs(workspace:WaitForChild("Game"):WaitForChild("Dealerships"):WaitForChild("Dealerships"):GetChildren()) do
  178. table.insert(dealershipList, value.Name)
  179. end
  180. dealershipSection:addDropdown("Dealership", dealershipList, function(v)
  181. game:GetService("ReplicatedStorage").Remotes.Location:FireServer("Enter", v)
  182. end)
  183. elseif game.PlaceId == 891852901 then
  184. local greenvillePage = Venyx:addPage("Greenville", 8360925727)
  185. elseif game.PlaceId == 54865335 then
  186. local ultimateDrivingPage = Venyx:addPage("Westover", 8360954483)
  187. elseif game.PlaceId == 5232896677 then
  188. local pacificoPage = Venyx:addPage("Pacifico", 3028235557)
  189. end
  190. local infoPage = Venyx:addPage("Information", 8356778308)
  191. local discordSection = infoPage:addSection("Telegram")
  192. discordSection:addButton(syn and "Join the Telegram server" or "Copy Telegram Link", function()
  193. if syn then
  194. syn.request({
  195. Url = "http://127.0.0.1:6463/rpc?v=1",
  196. Method = "POST",
  197. Headers = {
  198. ["Content-Type"] = "application/json",
  199. ["Origin"] = "https://web.telegram.org"
  200. },
  201. Body = game:GetService("HttpService"):JSONEncode({
  202. cmd = "INVITE_BROWSER",
  203. args = {
  204. code = "ENHYznSPmM"
  205. },
  206. nonce = game:GetService("HttpService"):GenerateGUID(false)
  207. }),
  208. })
  209. return
  210. end
  211. setclipboard("t.me/rkd_piter_scripts")
  212. end)
  213.  
  214.  
  215. local function CloseGUI()
  216. Venyx:toggle()
  217. end
  218.  
  219. UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
  220. if not gameProcessedEvent and input.KeyCode == Enum.KeyCode.RightBracket then
  221. CloseGUI()
  222. end
  223. end)
Tags: #lua
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement