Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ Creates a basic car -ulti55 ]]
- e = Instance.new("Part")
- e.BrickColor = BrickColor.new("Black")
- e.Material = "Plastic"
- e.Name = "engine"
- e.Position = Vector3.new(0,14.6,0)
- e.Shape = "Block"
- e.Size = Vector3.new(8,1.2,22)
- e.formFactor = "Brick"
- e.Anchored = false
- e.CanCollide = true
- e.Locked = false
- e.BackSurface = "Weld"
- e.BottomSurface = "Weld"
- e.FrontSurface = "Weld"
- e.LeftSurface = "Weld"
- e.RightSurface = "Weld"
- e.TopSurface = "Weld"
- rb = Instance.new("Part")
- rb.BrickColor = BrickColor.new("Black")
- rb.Material = "Plastic"
- rb.Name = "rightbackwheel"
- rb.Position = Vector3.new(6,14.8,8)
- rb.Shape = "Cylinder"
- rb.Size = Vector3.new(4,4,4)
- rb.formFactor = "Symmetric"
- rb.Anchored = false
- rb.CanCollide = true
- rb.Locked = false
- rb.BackSurface = "Smooth"
- rb.BottomSurface = "Smooth"
- rb.FrontSurface = "Smooth"
- rb.LeftSurface = "Hinge"
- rb.RightSurface = "Weld"
- rb.TopSurface = "Smooth"
- rf = Instance.new("Part")
- rf.BrickColor = BrickColor.new("Black")
- rf.Material = "Plastic"
- rf.Name = "rightfrontwheel"
- rf.Position = Vector3.new(6,14.8,-8)
- rf.Shape = "Cylinder"
- rf.Size = Vector3.new(4,4,4)
- rf.formFactor = "Symmetric"
- rf.Anchored = false
- rf.CanCollide = true
- rf.Locked = false
- rf.BackSurface = "Smooth"
- rf.BottomSurface = "Smooth"
- rf.FrontSurface = "Smooth"
- rf.LeftSurface = "Hinge"
- rf.RightSurface = "Weld"
- rf.TopSurface = "Smooth"
- rm = Instance.new("Part")
- rm.BrickColor = BrickColor.new("Black")
- rm.Material = "Plastic"
- rm.Name = "rightfrontwheel"
- rm.Position = Vector3.new(6,14.8,4)
- rm.Shape = "Cylinder"
- rm.Size = Vector3.new(4,4,4)
- rm.formFactor = "Symmetric"
- rm.Anchored = false
- rm.CanCollide = true
- rm.Locked = false
- rm.BackSurface = "Smooth"
- rm.BottomSurface = "Smooth"
- rm.FrontSurface = "Smooth"
- rm.LeftSurface = "Hinge"
- rm.RightSurface = "Weld"
- rm.TopSurface = "Smooth"
- lf = Instance.new("Part")
- lf.BrickColor = BrickColor.new("Black")
- lf.Material = "Plastic"
- lf.Name = "leftfrontwheel"
- lf.Position = Vector3.new(-6,14.8,-8)
- lf.Shape = "Cylinder"
- lf.Size = Vector3.new(4,4,4)
- lf.formFactor = "Symmetric"
- lf.Anchored = false
- lf.CanCollide = true
- lf.Locked = false
- lf.BackSurface = "Smooth"
- lf.BottomSurface = "Smooth"
- lf.FrontSurface = "Smooth"
- lf.LeftSurface = "Weld"
- lf.RightSurface = "Hinge"
- lf.TopSurface = "Smooth"
- lb = Instance.new("Part")
- lb.BrickColor = BrickColor.new("Black")
- lb.Material = "Plastic"
- lb.Name = "leftbackwheel"
- lb.Position = Vector3.new(-6,14.8,8)
- lb.Shape = "Cylinder"
- lb.Size = Vector3.new(4,4,4)
- lb.formFactor = "Symmetric"
- lb.Anchored = false
- lb.CanCollide = true
- lb.Locked = false
- lb.BackSurface = "Smooth"
- lb.BottomSurface = "Smooth"
- lb.FrontSurface = "Smooth"
- lb.LeftSurface = "Weld"
- lb.RightSurface = "Hinge"
- lb.TopSurface = "Smooth"
- lm = Instance.new("Part")
- lm.BrickColor = BrickColor.new("Black")
- lm.Material = "Plastic"
- lm.Name = "leftbackwheel"
- lm.Position = Vector3.new(-6,14.8,4)
- lm.Shape = "Cylinder"
- lm.Size = Vector3.new(4,4,4)
- lm.formFactor = "Symmetric"
- lm.Anchored = false
- lm.CanCollide = true
- lm.Locked = false
- lm.BackSurface = "Smooth"
- lm.BottomSurface = "Smooth"
- lm.FrontSurface = "Smooth"
- lm.LeftSurface = "Weld"
- lm.RightSurface = "Hinge"
- lm.TopSurface = "Smooth"
- s = Instance.new("VehicleSeat")
- s.BrickColor = BrickColor.new("Black")
- s.Material = "Plastic"
- s.Name = "vehicleseat"
- s.Position = Vector3.new(0,15.7,5)
- s.Size = Vector3.new(2,1,2)
- s.MaxSpeed = 40
- s.Torque = 10
- s.TurnSpeed = 1
- s.Anchored = false
- s.CanCollide = true
- s.Locked = false
- s.BackSurface = "Weld"
- s.BottomSurface = "Weld"
- s.FrontSurface = "Weld"
- s.LeftSurface = "Weld"
- s.RightSurface = "Weld"
- s.TopSurface = "Weld"
- e.Parent = game.Workspace
- rb.Parent = game.Workspace
- rf.Parent = game.Workspace
- lf.Parent = game.Workspace
- lb.Parent = game.Workspace
- rm.Parent = game.Workspace
- lm.Parent = game.Workspace
- s.Parent = game.Workspace
- e:MakeJoints()
- rb:MakeJoints()
- rf:MakeJoints()
- rm:MakeJoint()
- lf:MakeJoints()
- lb:MakeJoints()
- lm:MakeJoints()
- s:MakeJoints()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement