Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- owner = game:GetService("Players").Lucas_YT111 -- Change name
- Seat = Instance.new("VehicleSeat")
- Seat.Parent = game.Workspace.Lucas_YT111 -- Change name
- Seat.Size = Vector3.new(4,1,10)
- Seat.Position = Vector3.new(10.278,6.5,-8.057)
- Seat.Anchored = true
- Seat.TurnSpeed = 2
- Seat.TopSurface = Enum.SurfaceType.Smooth
- Seat.BottomSurface = Enum.SurfaceType.Smooth
- wait(0.0001)
- local Rats = Instance.new("Sound", Seat)
- Rats.SoundId = "rbxassetid://2627574953"
- Rats.Volume = 1
- Rats.Looped = true
- Seat:Sit(owner.Character.Humanoid)
- back = Instance.new("Part")
- back2 = Instance.new("Part")
- back3 = Instance.new("Part")
- back4 = Instance.new("Part")
- back5 = Instance.new("Part")
- Steer = Instance.new("Part")
- back.TopSurface = Enum.SurfaceType.Smooth
- back.BottomSurface = Enum.SurfaceType.Smooth
- back2.TopSurface = Enum.SurfaceType.Smooth
- back2.BottomSurface = Enum.SurfaceType.Smooth
- back3.TopSurface = Enum.SurfaceType.Smooth
- back3.BottomSurface = Enum.SurfaceType.Smooth
- back4.TopSurface = Enum.SurfaceType.Smooth
- back4.BottomSurface = Enum.SurfaceType.Smooth
- back5.TopSurface = Enum.SurfaceType.Smooth
- back5.BottomSurface = Enum.SurfaceType.Smooth
- Weld = Instance.new("Weld")
- Weld2 = Instance.new("Weld")
- Weld3 = Instance.new("Weld")
- Weld4 = Instance.new("Weld")
- Weld5 = Instance.new("Weld")
- Weld6 = Instance.new("Weld")
- Steer.CFrame = CFrame.Angles(0, math.rad(180), 0)
- back.Parent = Seat
- back2.Parent = Seat
- back3.Parent = Seat
- back4.Parent = Seat
- back5.Parent = Seat
- Steer.Parent = Seat
- Weld.Parent = back
- Weld.Part0 = back
- Weld.Part1 = Seat
- Weld2.Parent = back2
- Weld2.Part0 = back2
- Weld2.Part1 = Seat
- Weld3.Parent = back3
- Weld3.Part0 = back3
- Weld3.Part1 = Seat
- Weld4.Parent = back4
- Weld4.Part0 = back4
- Weld4.Part1 = Seat
- Weld5.Parent = back5
- Weld5.Part0 = back5
- Weld5.Part1 = Seat
- Weld6.Parent = Steer
- Weld6.Part0 = Steer
- Weld6.Part1 = Seat
- back.Anchored = true
- back2.Anchored = true
- back3.Anchored = true
- back4.Anchored = true
- back5.Anchored = true
- Steer.Anchored = true
- Steer.Size = Vector3.new(2, 1, 1)
- back.Size = Vector3.new(3.2, 1.5, 0.5)
- back2.Size = Vector3.new(3.2, 1.5, 0.5)
- back3.Size = Vector3.new(0.35, 1.5, 10)
- back4.Size = Vector3.new(0.35, 1.5, 10)
- back5.Size = Vector3.new(3.2, 1.5, 3.5)
- Steer.Position = Vector3.new(10.278, 8.75, -9.685)
- back.Position = Vector3.new(10.278,7.75,-3.25)
- back2.Position = Vector3.new(10.278,7.75,-7.25)
- back3.Position = Vector3.new(12,7.75,-8.057)
- back4.Position = Vector3.new(8.5,7.75,-8.057)
- back5.Position = Vector3.new(10.25,7.75,-11.557)
- Mesh1 = Instance.new("SpecialMesh")
- Mesh1.Parent = Steer
- Mesh1.MeshId = "http://www.roblox.com/asset/?id=4666694012"
- Mesh1.TextureId = "http://www.roblox.com/asset/?id=4666694193"
- Mesh1.Scale = Vector3.new(5, 5, 5)
- wait(0.25)
- wheel = Instance.new("Part")
- wheel2 = Instance.new("Part")
- wheel3 = Instance.new("Part")
- wheel4 = Instance.new("Part")
- wheel.LeftSurface = Enum.SurfaceType.Hinge
- wheel.Parent = Seat
- wheel2.LeftSurface = Enum.SurfaceType.Hinge
- wheel2.Parent = Seat
- wheel3.LeftSurface = Enum.SurfaceType.Hinge
- wheel3.Parent = Seat
- wheel4.LeftSurface = Enum.SurfaceType.Hinge
- wheel4.Parent = Seat
- wheel.CFrame = CFrame.Angles(0, math.rad(180), 0)
- wheel2.CFrame = CFrame.Angles(0, math.rad(180), 0)
- wheel.Anchored = true
- wheel2.Anchored = true
- wheel3.Anchored = true
- wheel4.Anchored = true
- wheel.Position = Vector3.new(7.278,6.5,-12.057)
- wheel2.Position = Vector3.new(7.278,6.5,-4.057)
- wheel3.Position = Vector3.new(13.278,6.5,-12.057)
- wheel4.Position = Vector3.new(13.278,6.5,-4.057)
- wheel.Shape = Enum.PartType.Cylinder
- wheel2.Shape = Enum.PartType.Cylinder
- wheel3.Shape = Enum.PartType.Cylinder
- wheel4.Shape = Enum.PartType.Cylinder
- wheel.Size = Vector3.new(2, 2, 2)
- wheel2.Size = Vector3.new(2, 2, 2)
- wheel3.Size = Vector3.new(2, 2, 2)
- wheel4.Size = Vector3.new(2, 2, 2)
- Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = wheel
- Mesh.MeshId = "http://www.roblox.com/asset/?id=1629642306"
- Mesh.TextureId = "http://www.roblox.com/asset/?id=1629644149"
- Mesh.Scale = Vector3.new(5, 2.25, 2.25)
- Mesh2 = Instance.new("SpecialMesh")
- Mesh2.Parent = wheel2
- Mesh2.MeshId = "http://www.roblox.com/asset/?id=1629642306"
- Mesh2.TextureId = "http://www.roblox.com/asset/?id=1629644149"
- Mesh2.Scale = Vector3.new(5, 2.25, 2.25)
- Mesh3 = Instance.new("SpecialMesh")
- Mesh3.Parent = wheel3
- Mesh3.MeshId = "http://www.roblox.com/asset/?id=1629642306"
- Mesh3.TextureId = "http://www.roblox.com/asset/?id=1629644149"
- Mesh3.Scale = Vector3.new(5, 2.25, 2.25)
- Mesh4 = Instance.new("SpecialMesh")
- Mesh4.Parent = wheel4
- Mesh4.MeshId = "http://www.roblox.com/asset/?id=1629642306"
- Mesh4.TextureId = "http://www.roblox.com/asset/?id=1629644149"
- Mesh4.Scale = Vector3.new(5, 2.25, 2.25)
- wheel:MakeJoints({wheel, Seat})
- wheel2:MakeJoints({wheel2, Seat})
- wheel3:MakeJoints({wheel3, Seat})
- wheel4:MakeJoints({wheel4, Seat})
- wait(0.25)
- Seat.Anchored = false
- wheel.Anchored = false
- wheel2.Anchored = false
- wheel3.Anchored = false
- wheel4.Anchored = false
- back.Anchored = false
- back2.Anchored = false
- back3.Anchored = false
- back4.Anchored = false
- back5.Anchored = false
- Steer.Anchored = false
- Rats:Play()
- local isTouched = false
- local function damagePlayer(otherPart)
- local partParent = otherPart.Parent
- local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
- if humanoid then
- if not isTouched then -- Check that debounce variable is not true
- isTouched = true -- Set variable to true
- for i,v in pairs(humanoid:GetDescendants()) do
- if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then
- local Socket = Instance.new("BallSocketConstraint")
- local a1 = Instance.new("Attachment")
- local a2 = Instance.new("Attachment")
- a1.Parent = v.Part0
- a2.Parent = v.Part1
- Socket.Parent = v.Parent
- Socket.Attachment0 = a1
- Socket.Attachment1 = a2
- a1.CFrame = v.C0
- a2.CFrame = v.C1
- Socket.LimitsEnabled = True
- Socket.TwistLimitsEnabled = true
- v:Destroy()
- humanoid.RequiresNeck = false
- humanoid.PlatformStand = true
- humanoid.Health = humanoid.Health - 35
- print("OUCH!")
- wait(1) -- Wait for reset time duration
- for i,v in pairs(humanoid:GetDescendants()) do
- if v:IsA("BallSocketConstraint") then
- v.UpperAngle = 0
- v.TwistUpperAngle = 0
- v.TwistLowerAngle = 0
- local Joints = Instance.new("Motor6D",v.Parent)
- Joints.Part0 = v.Attachment0.Parent
- Joints.Part1 = v.Attachment1.Parent
- Joints.C0 = v.Attachment0.CFrame
- Joints.C1 = v.Attachment1.CFrame
- v:Destroy()
- humanoid.PlatformStand = true
- wait(0.5)
- isTouched = false -- Reset variable to false
- end
- end
- end
- end
- end
- end
- end
- back5.Touched:Connect(damagePlayer)
Add Comment
Please, Sign In to add comment