SHOW:
|
|
- or go back to the newest paste.
| 1 | - | owner = game:GetService("Players").Lucas_YT111 -- Change name
|
| 1 | + | |
| 2 | Seat.Parent = owner.Character | |
| 3 | - | Seat.Parent = game.Workspace.Lucas_YT111 -- Change name |
| 3 | + | |
| 4 | - | myplayer = owner |
| 4 | + | |
| 5 | Seat.Anchored = true | |
| 6 | Seat.TurnSpeed = 2 | |
| 7 | Seat.MaxSpeed = 65 | |
| 8 | Seat.TopSurface = Enum.SurfaceType.Smooth | |
| 9 | Seat.BottomSurface = Enum.SurfaceType.Smooth | |
| 10 | wait(0.0001) | |
| 11 | Seat:Sit(owner.Character.Humanoid) | |
| 12 | - | local Rats = Instance.new("Sound", Seat)
|
| 12 | + | |
| 13 | - | Rats.SoundId = "rbxassetid://2627574953" |
| 13 | + | |
| 14 | - | Rats.Volume = 1 |
| 14 | + | |
| 15 | - | Rats.Looped = true |
| 15 | + | |
| 16 | wheel4 = Instance.new("Part")
| |
| 17 | wheel.RightSurface = Enum.SurfaceType.Hinge | |
| 18 | wheel.Parent = Seat | |
| 19 | wheel2.RightSurface = Enum.SurfaceType.Hinge | |
| 20 | wheel2.Parent = Seat | |
| 21 | wheel3.LeftSurface = Enum.SurfaceType.Hinge | |
| 22 | - | wheel.LeftSurface = Enum.SurfaceType.Hinge |
| 22 | + | |
| 23 | wheel4.LeftSurface = Enum.SurfaceType.Hinge | |
| 24 | - | wheel2.LeftSurface = Enum.SurfaceType.Hinge |
| 24 | + | |
| 25 | wheel.Anchored = true | |
| 26 | wheel2.Anchored = true | |
| 27 | wheel3.Anchored = true | |
| 28 | wheel4.Anchored = true | |
| 29 | wheel.Position = Vector3.new(7.278,6.5,-12.057) | |
| 30 | - | wheel.CFrame = CFrame.Angles(0, math.rad(180), 0) |
| 30 | + | |
| 31 | - | wheel2.CFrame = CFrame.Angles(0, math.rad(180), 0) |
| 31 | + | |
| 32 | wheel4.Position = Vector3.new(13.278,6.5,-4.057) | |
| 33 | wheel.Shape = Enum.PartType.Cylinder | |
| 34 | wheel2.Shape = Enum.PartType.Cylinder | |
| 35 | wheel3.Shape = Enum.PartType.Cylinder | |
| 36 | wheel4.Shape = Enum.PartType.Cylinder | |
| 37 | wheel.Size = Vector3.new(2, 3, 3) | |
| 38 | wheel2.Size = Vector3.new(2, 3, 3) | |
| 39 | wheel3.Size = Vector3.new(2, 3, 3) | |
| 40 | wheel4.Size = Vector3.new(2, 3, 3) | |
| 41 | wheel:MakeJoints({wheel, Seat})
| |
| 42 | wheel2:MakeJoints({wheel2, Seat})
| |
| 43 | wheel3:MakeJoints({wheel3, Seat})
| |
| 44 | - | wheel.Size = Vector3.new(2, 2, 2) |
| 44 | + | |
| 45 | - | wheel2.Size = Vector3.new(2, 2, 5) |
| 45 | + | |
| 46 | - | wheel3.Size = Vector3.new(2, 2, 2) |
| 46 | + | |
| 47 | - | wheel4.Size = Vector3.new(2, 2, 2) |
| 47 | + | |
| 48 | - | Mesh = Instance.new("SpecialMesh")
|
| 48 | + | |
| 49 | - | Mesh.Parent = wheel |
| 49 | + | |
| 50 | - | Mesh.MeshId = "http://www.roblox.com/asset/?id=1629642306" |
| 50 | + | wheel4.Anchored = false |
| 51 | - | Mesh.TextureId = "http://www.roblox.com/asset/?id=1629644149" |
| 51 | + | local density = 1 |
| 52 | - | Mesh.Scale = Vector3.new(5, 2.25, 2.25) |
| 52 | + | local friction = 1 |
| 53 | - | Mesh2 = Instance.new("SpecialMesh")
|
| 53 | + | local elasticity = 0 |
| 54 | - | Mesh2.Parent = wheel2 |
| 54 | + | local frictionWeight = 100000000000 |
| 55 | - | Mesh2.MeshId = "http://www.roblox.com/asset/?id=1629642306" |
| 55 | + | local elasticityWeight = 0 |
| 56 | - | Mesh2.TextureId = "http://www.roblox.com/asset/?id=1629644149" |
| 56 | + | local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight) |
| 57 | - | Mesh2.Scale = Vector3.new(5, 2.25, 2.25) |
| 57 | + | Seat.CustomPhysicalProperties = physProperties |
| 58 | - | Mesh3 = Instance.new("SpecialMesh")
|
| 58 | + | wheel.CustomPhysicalProperties = physProperties |
| 59 | - | Mesh3.Parent = wheel3 |
| 59 | + | wheel2.CustomPhysicalProperties = physProperties |
| 60 | - | Mesh3.MeshId = "http://www.roblox.com/asset/?id=1629642306" |
| 60 | + | wheel3.CustomPhysicalProperties = physProperties |
| 61 | - | Mesh3.TextureId = "http://www.roblox.com/asset/?id=1629644149" |
| 61 | + | wheel4.CustomPhysicalProperties = physProperties |
| 62 | - | Mesh3.Scale = Vector3.new(5, 2.25, 2.25) |
| 62 | + | |
| 63 | - | Mesh4 = Instance.new("SpecialMesh")
|
| 63 | + | function killfunction(part) |
| 64 | - | Mesh4.Parent = wheel4 |
| 64 | + | pcall(function() |
| 65 | - | Mesh4.MeshId = "http://www.roblox.com/asset/?id=1629642306" |
| 65 | + | local Model = part:FindFirstAncestorOfClass("Model")
|
| 66 | - | Mesh4.TextureId = "http://www.roblox.com/asset/?id=1629644149" |
| 66 | + | if Model then |
| 67 | - | Mesh4.Scale = Vector3.new(5, 2.25, 2.25) |
| 67 | + | local PC = game:GetService("Players"):GetPlayerFromCharacter(Model)
|
| 68 | if PC then | |
| 69 | if PC ~= owner then | |
| 70 | PC.Character.Humanoid.BreakJointsOnDeath = false | |
| 71 | PC.Character.Humanoid.Health = 0 | |
| 72 | local limbcollider = Instance.new("Part", PC.Character:findFirstChild("Right Arm"))
| |
| 73 | limbcollider.Size = Vector3.new(1.4,1,1) | |
| 74 | limbcollider.Shape = "Cylinder" | |
| 75 | limbcollider.Transparency = 1 | |
| 76 | limbcollider.Name = "LimbCollider" | |
| 77 | - | wheel4.Anchored = false |
| 77 | + | local limbcolliderweld = Instance.new("Weld", limbcollider)
|
| 78 | - | Rats:Play() |
| 78 | + | limbcolliderweld.Part0 = PC.Character:findFirstChild("Right Arm")
|
| 79 | limbcolliderweld.Part1 = limbcollider | |
| 80 | limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) | |
| 81 | local limbcollider2 = Instance.new("Part", PC.Character:findFirstChild("Left Arm"))
| |
| 82 | limbcollider2.Size = Vector3.new(1.4,1,1) | |
| 83 | limbcollider2.Shape = "Cylinder" | |
| 84 | limbcollider2.Transparency = 1 | |
| 85 | limbcollider2.Name = "LimbCollider" | |
| 86 | local limbcolliderweld2 = Instance.new("Weld", limbcollider)
| |
| 87 | limbcolliderweld2.Part0 = PC.Character:findFirstChild("Left Arm")
| |
| 88 | limbcolliderweld2.Part1 = limbcollider2 | |
| 89 | limbcolliderweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) | |
| 90 | local limbcollider3 = Instance.new("Part", PC.Character:findFirstChild("Right Leg"))
| |
| 91 | limbcollider3.Size = Vector3.new(1.3,1,1) | |
| 92 | limbcollider3.Shape = "Cylinder" | |
| 93 | limbcollider3.Transparency = 1 | |
| 94 | limbcollider3.Name = "LimbCollider" | |
| 95 | local limbcolliderweld3 = Instance.new("Weld", limbcollider)
| |
| 96 | limbcolliderweld3.Part0 = PC.Character:findFirstChild("Right Leg")
| |
| 97 | limbcolliderweld3.Part1 = limbcollider3 | |
| 98 | limbcolliderweld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) | |
| 99 | local limbcollider4 = Instance.new("Part", PC.Character:findFirstChild("Left Leg"))
| |
| 100 | limbcollider4.Size = Vector3.new(1.3,1,1) | |
| 101 | limbcollider4.Shape = "Cylinder" | |
| 102 | limbcollider4.Transparency = 1 | |
| 103 | limbcollider4.Name = "LimbCollider" | |
| 104 | local limbcolliderweld4 = Instance.new("Weld", limbcollider)
| |
| 105 | limbcolliderweld4.Part0 = PC.Character:findFirstChild("Left Leg")
| |
| 106 | limbcolliderweld4.Part1 = limbcollider4 | |
| 107 | limbcolliderweld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) | |
| 108 | for i,v in pairs(PC.Character:GetDescendants()) do | |
| 109 | if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then
| |
| 110 | local Socket = Instance.new("BallSocketConstraint")
| |
| 111 | local a1 = Instance.new("Attachment")
| |
| 112 | local a2 = Instance.new("Attachment")
| |
| 113 | a1.Parent = v.Part0 | |
| 114 | a2.Parent = v.Part1 | |
| 115 | Socket.Parent = v.Parent | |
| 116 | Socket.Attachment0 = a1 | |
| 117 | Socket.Attachment1 = a2 | |
| 118 | a1.CFrame = v.C0 | |
| 119 | a2.CFrame = v.C1 | |
| 120 | Socket.LimitsEnabled = true | |
| 121 | Socket.TwistLimitsEnabled = true | |
| 122 | v:Destroy() | |
| 123 | end | |
| 124 | end | |
| 125 | end | |
| 126 | end | |
| 127 | end | |
| 128 | end) | |
| 129 | end | |
| 130 | Seat.Touched:Connect(killfunction) |