Advertisement
Meliodas0_0

Car Fly JB

Oct 16th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. game.StarterGui:SetCore('SendNotification', {Duration = 2; Title='RedExploit'; Text='Executed Correctly'; Icon='rbxassetid://2833536589';})
  2. lp = game:service'Players'.LocalPlayer
  3. uis = lp:GetMouse()
  4. uis.KeyDown:Connect(function(key)
  5. if key == 'W' or key == 'w' then
  6. W = true
  7. end
  8. end)
  9. uis.KeyUp:Connect(function(key)
  10. if key == 'W' or key == 'w' then
  11. W = false
  12. end
  13. end)
  14. lp = game:service'Players'.LocalPlayer.Character
  15. for i,v in pairs(workspace.Vehicles:GetChildren()) do
  16. if v:FindFirstChild'Seat' and v.Seat:FindFirstChild'PlayerName' then
  17. if v.Seat.PlayerName.Value == game:service'Players'.LocalPlayer.Name then
  18. car = v
  19. car.PrimaryPart = car.Engine
  20. end
  21. end
  22. end
  23. _G.CarFly = game:service'RunService'.RenderStepped:Connect(function()
  24. car.Model.Body.Velocity = Vector3.new(0,0,0)
  25. if W and lp:FindFirstChildOfClass'Humanoid'.Sit then
  26. car:SetPrimaryPartCFrame(car.PrimaryPart.CFrame + workspace.CurrentCamera.CFrame.LookVector*3)
  27. car.Model.Body.CFrame = CFrame.new(car.Model.Body.Position,workspace.CurrentCamera.CFrame.Position)
  28. elseif lp:FindFirstChildOfClass'Humanoid'.Sit then
  29. car.Model.Body.CFrame = CFrame.new(car.Model.Body.Position,workspace.CurrentCamera.CFrame.Position)
  30. end
  31. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement