Advertisement
IHackShootingGames

Hover

Sep 10th, 2014
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. local Name = "IHackShootingGames"
  2.  
  3. local Model = Instance.new("Model", Workspace)
  4. Model.Name = Name .. "'s Vehicle"
  5. local ride = Instance.new("VehicleSeat", Model)
  6. ride.Position = game.Workspace[Name].Torso.Position
  7. ride.HeadsUpDisplay = False
  8. ride.TopSurface = "Smooth"
  9. ride.BottomSurface = "Smooth"
  10. ride.BrickColor = BrickColor.new("Blue")
  11. ride.Size = Vector3.new(5,2,5)
  12. do
  13. Instance.new("BlockMesh", ride)
  14. local d1 = Instance.new("Part", Model)
  15. d1.CanCollide = False
  16. d1.FormFactor = "Custom"
  17. d1.TopSurface = "Smooth"
  18. d1.BottomSurface = "Smooth"
  19. d1.BrickColor = BrickColor.new("Blue")
  20. d1.Size = Vector3.new(7,10,15.12)
  21. Instance.new("BlockMesh", d1)
  22. local w1 = Instance.new("Weld", ride)
  23. w1.Part0 = ride
  24. w1.Part1 = d1
  25. w1.C0 = CFrame.new(0,0.05,0) * CFrame.Angles(0,math.pi/4,0)
  26. coroutine.resume(coroutine.create(function()
  27. while wait(0.05) do
  28. w1.C0 = w1.C0 * CFrame.Angles(0,math.pi/40,0)
  29. end
  30. end))
  31. end
  32.  
  33. local bg = Instance.new("BodyGyro", ride)
  34. bg.maxTorque = Vector3.new(1e10,1e10,1e10)
  35. local bp = Instance.new("BodyPosition", ride)
  36. bp.position = game.Workspace[Name].Torso.Position
  37. bp.maxForce = Vector3.new(1e10,1e10,1e10)
  38.  
  39. while wait() do
  40. bg.cframe = bg.cframe * CFrame.Angles(0,math.pi/60*(-ride.Steer),0)
  41. bp.position = bp.position + bg.cframe.lookVector*ride.Throttle
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement