Advertisement
BobMe

Experiment 3

Jan 5th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.90 KB | None | 0 0
  1. --By Rufus12 (lol jk its Rufus14)
  2. mouse = game.Players.LocalPlayer:GetMouse()
  3. used = false
  4. attacking = false
  5. smashing = false
  6. kick = Instance.new("Sound", game.Players.LocalPlayer.Character["Right Leg"])
  7. kick.SoundId = "rbxassetid://507150998"
  8. kick.Volume = 6
  9. kick1 = Instance.new("Sound", game.Players.LocalPlayer.Character["Right Leg"])
  10. kick1.SoundId = "rbxassetid://169380525"
  11. kick1.Volume = 6
  12. kick11 = Instance.new("Sound", game.Players.LocalPlayer.Character["Right Leg"])
  13. kick11.SoundId = "rbxassetid://165969964"
  14. kick11.Volume = 50
  15. function sensor(key)
  16.     key = key:lower()
  17.     if key == "e" then
  18.         if not used then
  19.         used = true
  20.         local detect = Instance.new("Part", game.Players.LocalPlayer.Character)
  21.         detect.Size = Vector3.new(1,1,4)
  22.         detect:BreakJoints()
  23.         detect.CanCollide = false
  24.         detect.Transparency = 0.9
  25.         detect.BrickColor = BrickColor.new("Really red")
  26.         local weld = Instance.new("Weld", detect)
  27.         weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  28.         weld.Part1 = detect
  29.         weld.C0 = weld.C0 * CFrame.new(0,-1,0)
  30.         local function attack(part)
  31.             if not attacking then
  32.                 attacking = true
  33.                 local torso = part.Parent:findFirstChild("Torso")
  34.                 if torso ~= nil then
  35.                     local humanoid = part.Parent:findFirstChild("Humanoid")
  36.                     if humanoid ~= nil then
  37.                         local weld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  38.                         humanoid.WalkSpeed = 0
  39.                         humanoid.JumpPower = 0
  40.                         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  41.                         game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  42.                         for i = 1,5 do
  43.                             wait()
  44.                             game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,0.25)
  45.                             game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
  46.                             game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,0.2)
  47.                             game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,0.2)
  48.                             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(-0.2,0,0)
  49.                         end
  50.                         kick:Play()
  51.                         used = true
  52.                         local bodyvelocity = Instance.new("BodyVelocity", torso)
  53.                         bodyvelocity.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 67
  54.                         bodyvelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  55.                         wait(1.4)
  56.                         local bodyposition = Instance.new("BodyPosition", torso)
  57.                         bodyposition.Position = torso.Position
  58.                         bodyposition.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  59.                         bodyvelocity:destroy()
  60.                         wait(1)
  61.                         for i = 1,5 do
  62.                             wait()
  63.                             game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
  64.                             game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,0.25)
  65.                             game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  66.                             game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  67.                             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0.2,0,0)
  68.                         end
  69.                         for i = 1,5 do
  70.                             wait()
  71.                             game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,0.25)
  72.                             game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
  73.                             game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,0.2)
  74.                             game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  75.                             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0.2,0,0)
  76.                         end
  77.                         wait(1)
  78.                         for i = 1,5 do
  79.                             wait()
  80.                             game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
  81.                             game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,0.25)
  82.                             game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,-0.1)
  83.                             game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,0.1)
  84.                             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(-0.1,0,0)
  85.                         end
  86.                         local bodypositionme = Instance.new("BodyPosition", game.Players.LocalPlayer.Character.Torso)
  87.                         bodypositionme.Position = torso.Position
  88.                         bodypositionme.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  89.                         wait(1.1)
  90.                         for i = 1,5 do
  91.                             game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,0.25)
  92.                             game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
  93.                         end
  94.                         kick1:Play()
  95.                         bodypositionme:destroy()
  96.                         local torsowelding = Instance.new("Weld", torso)
  97.                         torsowelding.Part0 = torso
  98.                         torsowelding.Part1 = game.Players.LocalPlayer.Character.Torso
  99.                         torsowelding.C0 = torsowelding.C0 * CFrame.new(0,0,-2)
  100.                         torsowelding.C0 = torsowelding.C0 * CFrame.Angles(0,3.08,0)
  101.                         wait(1.3)
  102.                         torsowelding:destroy()
  103.                         bodyposition:destroy()
  104.                         local mybodyvel = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.Torso)
  105.                         mybodyvel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * -90
  106.                         mybodyvel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  107.                         local bodyvel = Instance.new("BodyVelocity", torso)
  108.                         bodyvel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 80
  109.                         bodyvel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  110.                         humanoid.PlatformStand = true
  111.                         wait(0.3)
  112.                         bodyvel:destroy()
  113.                         mybodyvel:destroy()
  114.                         wait(0.25)
  115.                         game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  116.                         game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  117.                         game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  118.                         game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  119.                         game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  120.                         game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  121.                         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  122.                         game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
  123.                         wait(2.5)
  124.                         local block = Instance.new("Part", workspace)
  125.                         block.Position = torso.Position + Vector3.new(0,1200,0)
  126.                         block.Material = ("Glass")
  127.                         block.BrickColor = BrickColor.new("Crimson")
  128.                         block.Size = Vector3.new(100,600,100)
  129.                         block.Transparency = 0.6
  130.                         local soof = Instance.new("Sound",Workspace.Part)
  131.                         soof.Name = "Sound"
  132.                         soof.SoundId = "http://www.roblox.com/asset/?id=626777433"
  133.                         soof.Volume = 50
  134.                         soof.Looped = true
  135.                         soof.archivable = false
  136.                         wait()
  137.                         soof:Play()
  138.                         local function smash()
  139.                         if not smashing then
  140.                         smashing = true
  141.                         local explosion = Instance.new("Explosion", block)
  142.                         explosion.BlastRadius = 45
  143.                         humanoid.Health = 0
  144.                         kick11:Play()
  145.                         explosion.Position = torso.Position
  146.                         wait(6)
  147.                         smashing = false
  148.                         end
  149.                         end
  150.                         block.Touched:connect(smash)
  151.                         used = false
  152.                         attacking = false
  153.                         wait(11)
  154.                         block:destroy()
  155.                      end
  156.                 end
  157.                 wait(1)
  158.                 attacking = false
  159.             end
  160.         end
  161.         detect.Touched:connect(attack)
  162.         wait(0.1)
  163.         detect:destroy()
  164.         used = false
  165.         end
  166.     end
  167. end
  168. mouse.KeyDown:connect(sensor)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement