Advertisement
ultimate55

Roblox Basic Car (not local)

Feb 5th, 2013
3,497
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.17 KB | None | 0 0
  1. --[[ Creates a basic car -ulti55                                               ]]
  2. e = Instance.new("Part")
  3. e.BrickColor = BrickColor.new("Black")
  4. e.Material = "Plastic"
  5. e.Name = "engine"
  6. e.Position = Vector3.new(0,14.6,0)
  7. e.Shape = "Block"
  8. e.Size = Vector3.new(8,1.2,22)
  9. e.formFactor = "Brick"
  10. e.Anchored = false
  11. e.CanCollide = true
  12. e.Locked = false
  13. e.BackSurface = "Weld"
  14. e.BottomSurface = "Weld"
  15. e.FrontSurface = "Weld"
  16. e.LeftSurface = "Weld"
  17. e.RightSurface = "Weld"
  18. e.TopSurface = "Weld"
  19.  
  20.  
  21. rb = Instance.new("Part")
  22. rb.BrickColor = BrickColor.new("Black")
  23. rb.Material = "Plastic"
  24. rb.Name = "rightbackwheel"
  25. rb.Position = Vector3.new(6,14.8,8)
  26. rb.Shape = "Cylinder"
  27. rb.Size = Vector3.new(4,4,4)
  28. rb.formFactor = "Symmetric"
  29. rb.Anchored = false
  30. rb.CanCollide = true
  31. rb.Locked = false
  32. rb.BackSurface = "Smooth"
  33. rb.BottomSurface = "Smooth"
  34. rb.FrontSurface = "Smooth"
  35. rb.LeftSurface = "Hinge"
  36. rb.RightSurface = "Weld"
  37. rb.TopSurface = "Smooth"
  38.  
  39.  
  40. rf = Instance.new("Part")
  41. rf.BrickColor = BrickColor.new("Black")
  42. rf.Material = "Plastic"
  43. rf.Name = "rightfrontwheel"
  44. rf.Position = Vector3.new(6,14.8,-8)
  45. rf.Shape = "Cylinder"
  46. rf.Size = Vector3.new(4,4,4)
  47. rf.formFactor = "Symmetric"
  48. rf.Anchored = false
  49. rf.CanCollide = true
  50. rf.Locked = false
  51. rf.BackSurface = "Smooth"
  52. rf.BottomSurface = "Smooth"
  53. rf.FrontSurface = "Smooth"
  54. rf.LeftSurface = "Hinge"
  55. rf.RightSurface = "Weld"
  56. rf.TopSurface = "Smooth"
  57.  
  58. rm = Instance.new("Part")
  59. rm.BrickColor = BrickColor.new("Black")
  60. rm.Material = "Plastic"
  61. rm.Name = "rightfrontwheel"
  62. rm.Position = Vector3.new(6,14.8,4)
  63. rm.Shape = "Cylinder"
  64. rm.Size = Vector3.new(4,4,4)
  65. rm.formFactor = "Symmetric"
  66. rm.Anchored = false
  67. rm.CanCollide = true
  68. rm.Locked = false
  69. rm.BackSurface = "Smooth"
  70. rm.BottomSurface = "Smooth"
  71. rm.FrontSurface = "Smooth"
  72. rm.LeftSurface = "Hinge"
  73. rm.RightSurface = "Weld"
  74. rm.TopSurface = "Smooth"
  75.  
  76. lf = Instance.new("Part")
  77. lf.BrickColor = BrickColor.new("Black")
  78. lf.Material = "Plastic"
  79. lf.Name = "leftfrontwheel"
  80. lf.Position = Vector3.new(-6,14.8,-8)
  81. lf.Shape = "Cylinder"
  82. lf.Size = Vector3.new(4,4,4)
  83. lf.formFactor = "Symmetric"
  84. lf.Anchored = false
  85. lf.CanCollide = true
  86. lf.Locked = false
  87. lf.BackSurface = "Smooth"
  88. lf.BottomSurface = "Smooth"
  89. lf.FrontSurface = "Smooth"
  90. lf.LeftSurface = "Weld"
  91. lf.RightSurface = "Hinge"
  92. lf.TopSurface = "Smooth"
  93.  
  94.  
  95. lb = Instance.new("Part")
  96. lb.BrickColor = BrickColor.new("Black")
  97. lb.Material = "Plastic"
  98. lb.Name = "leftbackwheel"
  99. lb.Position = Vector3.new(-6,14.8,8)
  100. lb.Shape = "Cylinder"
  101. lb.Size = Vector3.new(4,4,4)
  102. lb.formFactor = "Symmetric"
  103. lb.Anchored = false
  104. lb.CanCollide = true
  105. lb.Locked = false
  106. lb.BackSurface = "Smooth"
  107. lb.BottomSurface = "Smooth"
  108. lb.FrontSurface = "Smooth"
  109. lb.LeftSurface = "Weld"
  110. lb.RightSurface = "Hinge"
  111. lb.TopSurface = "Smooth"
  112.  
  113. lm = Instance.new("Part")
  114. lm.BrickColor = BrickColor.new("Black")
  115. lm.Material = "Plastic"
  116. lm.Name = "leftbackwheel"
  117. lm.Position = Vector3.new(-6,14.8,4)
  118. lm.Shape = "Cylinder"
  119. lm.Size = Vector3.new(4,4,4)
  120. lm.formFactor = "Symmetric"
  121. lm.Anchored = false
  122. lm.CanCollide = true
  123. lm.Locked = false
  124. lm.BackSurface = "Smooth"
  125. lm.BottomSurface = "Smooth"
  126. lm.FrontSurface = "Smooth"
  127. lm.LeftSurface = "Weld"
  128. lm.RightSurface = "Hinge"
  129. lm.TopSurface = "Smooth"
  130.  
  131.  
  132. s = Instance.new("VehicleSeat")
  133. s.BrickColor = BrickColor.new("Black")
  134. s.Material = "Plastic"
  135. s.Name = "vehicleseat"
  136. s.Position = Vector3.new(0,15.7,5)
  137. s.Size = Vector3.new(2,1,2)
  138. s.MaxSpeed = 40
  139. s.Torque = 10
  140. s.TurnSpeed = 1
  141. s.Anchored = false
  142. s.CanCollide = true
  143. s.Locked = false
  144. s.BackSurface = "Weld"
  145. s.BottomSurface = "Weld"
  146. s.FrontSurface = "Weld"
  147. s.LeftSurface = "Weld"
  148. s.RightSurface = "Weld"
  149. s.TopSurface = "Weld"
  150.  
  151.  
  152. e.Parent = game.Workspace
  153. rb.Parent = game.Workspace
  154. rf.Parent = game.Workspace
  155. lf.Parent = game.Workspace
  156. lb.Parent = game.Workspace
  157. rm.Parent = game.Workspace
  158. lm.Parent = game.Workspace
  159. s.Parent = game.Workspace
  160.  
  161. e:MakeJoints()
  162. rb:MakeJoints()
  163. rf:MakeJoints()
  164. rm:MakeJoint()
  165. lf:MakeJoints()
  166. lb:MakeJoints()
  167. lm:MakeJoints()
  168. s:MakeJoints()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement