Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = owner
- char = plr.Character
- char.Animate.idle.Animation1.AnimationId = "rbxassetid://180270832"
- char.Animate.idle.Animation2.AnimationId = "rbxassetid://180270832"
- char.Animate.walk.WalkAnim.AnimationId = "rbxassetid://180270832"
- char.Animate.jump.JumpAnim.AnimationId = "rbxassetid://180270832"
- char.Animate.fall.FallAnim.AnimationId = "rbxassetid://180270832"
- bike = Instance.new("Part",char)
- bike.CanCollide = false
- weld = Instance.new("Weld",bike)
- weld.Part0 = bike
- weld.Part1 = char.HumanoidRootPart
- mesh = Instance.new("SpecialMesh",bike)
- mesh.MeshId = "rbxassetid://130087381"
- mesh.TextureId = "rbxassetid://130087211"
- mesh.Scale = Vector3.new(2.5, 2.5, 2.5)
- mesh.Offset = Vector3.new(0, -1, -1.5)
- torso = Instance.new("Weld",char.Torso)
- torso.Part0 = char.Torso
- torso.Part1 = char.HumanoidRootPart
- torso.C0 = CFrame.new(0, -0.6, 0) * CFrame.Angles(-25, 0, 0)
- sine = 0
- anim = "Idle"
- trailer = false
- smashthem = false
- char.Torso.Touched:connect(function(hit)
- if smashthem == true then
- if hit.Parent ~= char then
- if hit.Parent:IsA("Model") then
- for _,v in pairs (hit.Parent:children()) do
- if v:IsA("Humanoid") then
- v.MaxHealth = 0
- v.Health = 0
- local fx = Instance.new("Part",bike)
- fx.CFrame = char.Torso.CFrame
- fx.Size = Vector3.new(1, 1, 1)
- fx.CanCollide = false
- fx.Anchored = true
- fx.Transparency = 0.5
- fx.BrickColor = BrickColor.new("Bright blue")
- fx.Material = "Neon"
- fx.Shape = "Ball"
- if hit.Parent:FindFirstChild("Torso") then
- fx.Position = hit.Parent:FindFirstChild("Torso").Position
- end
- for i = 1,15 do
- wait()
- fx.Size = fx.Size + Vector3.new(1, 1, 1)
- fx.Transparency = fx.Transparency + 0.01
- end
- for i = 1,15 do
- wait()
- fx.Size = fx.Size + Vector3.new(1, 1, 1)
- fx.Transparency = fx.Transparency + 0.01
- end
- for i = 1,25 do
- wait()
- fx.Size = fx.Size + Vector3.new(1, 1, 1)
- fx.Transparency = fx.Transparency + 0.01
- end
- fx:Destroy()
- end
- end
- end
- end
- end
- end)
- cycle = Instance.new("Sound",bike)
- cycle.Volume = 2
- cycle.SoundId = "rbxassetid://130091914"
- cycle.Pitch = 1
- cycle.Looped = true
- cycle:Play()
- while true do
- wait(.1)
- sine = sine + 1
- local torvel = (char.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- if char.HumanoidRootPart.Velocity.magnitude < 1000000 then
- anim = "Walk"
- end
- if torvel < 1 then
- anim = "Idle"
- end
- if anim == "Idle" then
- trailer = false
- smashthem = false
- char.Humanoid.WalkSpeed = 10
- if cycle.Pitch > 1 then
- cycle.Pitch = cycle.Pitch - 0.1
- end
- if cycle.Pitch < 1 then
- cycle.Pitch = 1
- end
- elseif anim == "Walk" then
- trailer = true
- smashthem = false
- char.Humanoid.WalkSpeed = char.Humanoid.WalkSpeed + 1
- if trailer == true then
- local trail = Instance.new("Part",char.Humanoid)
- trail.BrickColor = BrickColor.new("Bright blue")
- trail.CanCollide = false
- trail.Anchored = true
- trail.Material = "Neon"
- trail.Size = Vector3.new(0.5, 2.5, 7)
- trail.Transparency = 0.5
- trail.Position = bike.Position
- trail.Name = "Trail"
- trail.Orientation = bike.Orientation
- if char.Humanoid.WalkSpeed > 25 then
- smashthem = true
- trail.Size = Vector3.new(0.5, 2.5, 7)
- end
- if char.Humanoid.WalkSpeed > 75 then
- trail.Size = Vector3.new(0.5, 2.5, 15)
- end
- coroutine.resume(coroutine.create(function()
- wait(2)
- trail:Destroy()
- end))
- cycle.Pitch = cycle.Pitch + 0.01
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement