Advertisement
urabigfatnoob

fly script

Oct 25th, 2015
17,928
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 30.54 KB | None | 0 0
  1. --key l disconnect first function
  2. --remove future keys
  3.  
  4. plr = game.Players.LocalPlayer
  5. chr = plr.Character or plr.CharacterAdded:wait()
  6. torso = chr.Torso
  7. hrp = chr.HumanoidRootPart
  8. mouse = plr:GetMouse()
  9. bv = Instance.new("BodyVelocity",hrp)
  10. bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  11. chr.Animate.Disabled = true
  12. wait()
  13. bv.Velocity = Vector3.new(0,50,0)
  14. wait(1)
  15. bv.Velocity = Vector3.new(0,0,0)
  16. bg = Instance.new("BodyGyro",hrp)
  17. speed = Instance.new("Vector3Value",chr)
  18. speed.Value = Vector3.new(0,.1,0)
  19. outline = Instance.new("Part")
  20. outline.BrickColor = BrickColor.new(0,0,0)
  21. outline.Material = "Neon"
  22. outline.Anchored = false
  23. outline.CanCollide = false
  24. outline.FormFactor = "Custom"
  25. outline.Size = Vector3.new(1,1,1)
  26. outline.TopSurface = "Smooth"
  27. outline.BottomSurface = "Smooth"
  28. local sbox = Instance.new("SelectionBox",outline)
  29. sbox.Adornee = outline
  30. sbox.Color3 = Color3.new(0,0,0)
  31. sbox.LineThickness = .001
  32. sbox.Transparency = .5
  33. w = false
  34. s = false
  35. p = false
  36. m = false
  37. pi = math.pi
  38. huge = math.huge
  39. ran = math.random(0,180)
  40. debounce = false
  41. ra = chr["Right Arm"]
  42. la = chr["Left Arm"]
  43. grass = Instance.new("Part")
  44. grass.BrickColor = BrickColor.new("Earth green")
  45. grass.Material = Enum.Material.Grass
  46. grass.Anchored = false
  47. grass.FormFactor = "Custom"
  48. grass.TopSurface = "Smooth"
  49. grass.BottomSurface = "Smooth"
  50.  
  51. --[[keys]]--
  52. --[[ n,m healing/protecting
  53. ]]
  54.  
  55. mouse.KeyDown:connect(function(key)
  56.     if key == 'w' then
  57.         w = true
  58.         while w == true do
  59.             game:GetService('RunService').RenderStepped:wait()
  60.             speed.Value = mouse.Hit.lookVector*50
  61.         end
  62.     elseif key == 'n' then
  63.         for i = 1,math.random(10,25) do
  64.             local clone = outline:Clone()
  65.             clone.Parent = workspace
  66.             clone.CanCollide = false
  67.             clone.Anchored = true
  68.             for i = 1,5,.5 do
  69.                 game:GetService('RunService').RenderStepped:wait()
  70.                 clone.Size = Vector3.new(i,i,i)
  71.                 clone.CFrame = torso.CFrame * CFrame.Angles(math.random(0,180),math.pi,math.random(0,180))
  72.                 clone.Transparency = clone.Transparency + .1
  73.                 clone.SelectionBox.Transparency = clone.Transparency
  74.             end
  75.             clone:Destroy()
  76.             chr:SetPrimaryPartCFrame(torso.CFrame + Vector3.new(math.random(-10,10),0,math.random(-10,10)))
  77.             wait()
  78.         end
  79.     elseif key == 's' then
  80.         s = true
  81.         while s == true do
  82.             game:GetService('RunService').RenderStepped:wait()
  83.             speed.Value = mouse.Hit.lookVector-mouse.Hit.lookVector*50
  84.         end
  85.     elseif key == 'q' then
  86.         local kill = outline:Clone()
  87.         kill.Size = Vector3.new(.2,1,.2)
  88.         kill.CFrame = chr.Torso.CFrame
  89.         kill.BrickColor = BrickColor.new(0,0,0)
  90.         kill.SelectionBox.Color3 = Color3.new(1,1,1)
  91.         kill.Anchored = false
  92.         kill.CanCollide = false
  93.         local bv = Instance.new("BodyVelocity",kill)
  94.         bv.MaxForce = Vector3.new(huge,huge,huge)
  95.         kill.Parent = workspace
  96.         bv.Velocity = torso.CFrame.lookVector*100
  97.         local touched = false
  98.         local sbox = kill.SelectionBox
  99.         kill.Rotation = Vector3.new(0,0,math.random(0,180))
  100.         kill.Touched:connect(function(p)
  101.             local h = p.Parent:FindFirstChild("Humanoid")
  102.             if h and h.Parent ~= chr and debounce == false then
  103.                 debounce = true
  104.                 touched = true
  105.                 h.Health = h.Health - h.MaxHealth/2
  106.                 for i = 0,1,.1 do
  107.                     game:GetService('RunService').RenderStepped:wait()
  108.                     kill.Transparency = i
  109.                     kill.SelectionBox.Transparency = i
  110.                 end
  111.                 kill:Destroy()
  112.                 debounce = false
  113.             end
  114.         end)
  115.         kill.ChildAdded:connect(function(c)
  116.             if c.ClassName == "Part" then
  117.                 for i = 0,1,.2 do
  118.                     game:GetService('RunService').RenderStepped:wait()
  119.                     c.Transparency = i
  120.                 end
  121.                 c:Destroy()
  122.             end
  123.         end)
  124.         while touched == false do
  125.             wait(.1)
  126.             kill.Size = kill.Size + Vector3.new(0,.75,0)
  127.             local clone = kill:Clone()
  128.             clone.CFrame = kill.CFrame
  129.             clone.Anchored = true
  130.             clone.Parent = kill
  131.             if kill.Size.Y>40 then
  132.                 touched = true
  133.                 for i = 0,1,.1 do
  134.                     game:GetService('RunService').RenderStepped:wait()
  135.                     kill.Transparency = i
  136.                     kill.SelectionBox.Transparency = i
  137.                 end
  138.                 kill:Destroy()
  139.             end
  140.         end
  141.     elseif key == 'e' then
  142.         local kill = outline:Clone()
  143.         kill.BrickColor = BrickColor.new(1,1,1)
  144.         kill.SelectionBox.Color3 = Color3.new(0,0,0)
  145.         kill.Size = Vector3.new(.2,.2,5)
  146.         kill.CFrame = chr["Right Arm"].CFrame-Vector3.new(0,1,0)
  147.         kill.Anchored = false
  148.         kill.CanCollide = false
  149.         local bv = Instance.new("BodyVelocity",kill)
  150.         bv.MaxForce = Vector3.new(huge,huge,huge)
  151.         for i = 1,20 do
  152.             wait()
  153.             local clone = kill:Clone()
  154.             clone.Touched:connect(function(p)
  155.                 local h = p.Parent:FindFirstChild("Humanoid")
  156.                 if h and h.Parent ~= chr then
  157.                     h.Health = h.Health - h.MaxHealth/15
  158.                 end
  159.             end)
  160.             clone.Parent = workspace
  161.             clone.BodyVelocity.Velocity = torso.CFrame.lookVector*200
  162.             clone.CFrame = torso.CFrame + Vector3.new(math.random(-5,5),math.random,math.random(-5,5))
  163.         end
  164.     elseif key == 'r' then
  165.         local touched = false
  166.         local bounce = outline:Clone()
  167.         local bv = Instance.new("BodyVelocity",bounce)
  168.         local bav = Instance.new("BodyAngularVelocity",bounce)
  169.         bav.MaxTorque = Vector3.new(huge,huge,huge)
  170.         bav.AngularVelocity = Vector3.new(math.random(-4,4),math.random(-4,4),math.random(-4,4))
  171.         bv.MaxForce = Vector3.new(huge,huge,huge)
  172.         bounce.Anchored = false
  173.         bounce.CFrame = ra.CFrame-Vector3.new(0,1,0)
  174.         bv.Velocity = torso.CFrame.lookVector*200
  175.         bounce.Parent = workspace
  176.         bounce.Touched:connect(function(p)
  177.             local h = p.Parent:FindFirstChild("Humanoid")
  178.             if h and h.Parent ~= chr and touched == false then
  179.                 local bf = Instance.new("BodyForce",h.Parent.Torso)
  180.                 local bavB = Instance.new("BodyAngularVelocity",h.Parent.Torso)
  181.                 bavB.MaxTorque = Vector3.new(huge,huge,huge)
  182.                 touched = true
  183.                 for i = 1,10 do
  184.                     game:GetService('RunService').RenderStepped:wait()
  185.                     bounce.Size = bounce.Size + Vector3.new(.5,.5,.5)
  186.                     bounce.Transparency = i/10
  187.                     bounce.SelectionBox.Transparency = i/10
  188.                     bounce.Anchored = true
  189.                     bounce.CFrame = h.Parent.Head.CFrame*CFrame.Angles(math.random(0,180),pi,math.random(0,180))
  190.                 end
  191.                 bounce:Destroy()
  192.                 bf.Force = Vector3.new(math.random(-5000,5000),math.random(-5000,5000),math.random(-5000,5000))
  193.                 bavB.AngularVelocity = Vector3.new(math.random(0,180),math.random(0,180),math.random(0,180))
  194.                 h.Sit = true
  195.                 local hbav = h.Parent.HumanoidRootPart:FindFirstChild("BodyVelocity")
  196.                 if hbav then
  197.                     h.Parent.HumanoidRootPart.BodyVelocity.MaxForce = Vector3.new(0,0,0)
  198.                 end
  199.             end
  200.         end)
  201.         bounce.ChildAdded:connect(function(c)
  202.             if c.ClassName == "Part" then
  203.                 for i = 0,1,.2 do
  204.                     game:GetService('RunService').RenderStepped:wait()
  205.                     c.Transparency = i
  206.                 end
  207.                 c:Destroy()
  208.             end
  209.         end)
  210.         while touched == false do
  211.             wait(.09)
  212.             bounce.Size = bounce.Size + Vector3.new(.25,.25,.25)
  213.             local clone = bounce:Clone()
  214.             clone.CFrame = bounce.CFrame
  215.             clone.Parent = bounce
  216.             clone.Anchored = true
  217.             if bounce.Size.X>10 then
  218.                 touched = true
  219.                 for i = 0,1,.1 do
  220.                     game:GetService('RunService').RenderStepped:wait()
  221.                     bounce.Transparency = i
  222.                     bounce.SelectionBox.Transparency = i
  223.                 end
  224.                 bounce:Destroy()
  225.             end
  226.         end
  227.     elseif key == ' ' then
  228.         local bf = chr:FindFirstChild("BodyForce",true)
  229.         local bav = chr:FindFirstChild("BodyAngularVelocity",true)
  230.         chr.Torso.Anchored = false
  231.         if bf then
  232.             bf:Destroy()
  233.             bv.MaxForce = Vector3.new(huge,huge,huge)
  234.         elseif bav then
  235.             bav:Destroy()
  236.             bv.MaxForce = Vector3.new(huge,huge,huge)
  237.         end
  238.     elseif key == 't' then
  239.         local touched = false
  240.         local jail = outline:Clone()
  241.         jail.CFrame = torso.CFrame
  242.         jail.BrickColor = BrickColor.new(0,0,0)
  243.         jail.SelectionBox.Color3 = Color3.new(1,1,1)
  244.         jail.Transparency = .5
  245.         jail.Anchored = false
  246.         local bv = Instance.new("BodyVelocity",jail)
  247.         bv.MaxForce = Vector3.new(huge,huge,huge)
  248.         local bav = Instance.new("BodyAngularVelocity",jail)
  249.         bav.MaxTorque = Vector3.new(huge,huge,huge)
  250.         bav.AngularVelocity = Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  251.         bv.Velocity = torso.CFrame.lookVector*150
  252.         jail.Parent = workspace
  253.         jail.Touched:connect(function(p)
  254.             local h = p.Parent:FindFirstChild("Humanoid")
  255.             if h and h.Parent ~= chr and touched == false then
  256.                 touched = true
  257.                 jail.Size = Vector3.new(25,25,25)
  258.                 jail.Anchored = true
  259.                 h.Parent.Torso.Anchored = true
  260.                 for i = 25,0,-.2 do
  261.                     wait()
  262.                     h.Health = h.Health - .8
  263.                     jail.Size = Vector3.new(i,i,i)
  264.                     jail.CFrame = h.Parent.Torso.CFrame*CFrame.Angles(math.random(0,180),pi,math.random(0,180))
  265.                 end
  266.                 jail:Destroy()
  267.                 if h.Health < 4 then
  268.                     h.Health = 0
  269.                 end
  270.             end
  271.         end)
  272.         jail.ChildAdded:connect(function(c)
  273.             if c.ClassName == "Part" then
  274.                 for i = .5,1,.2 do
  275.                     game:GetService('RunService').RenderStepped:wait()
  276.                     c.Transparency = i
  277.                 end
  278.                 c:Destroy()
  279.             end
  280.         end)
  281.         while touched == false do
  282.             wait(.06)
  283.             jail.Size = jail.Size + Vector3.new(.25,.25,.25)
  284.             local clone = jail:Clone()
  285.             clone.CFrame = clone.CFrame
  286.             clone.Anchored = true
  287.             clone.Parent = jail
  288.             if jail.Size.X>26 then
  289.                 touched = true
  290.                 for i = .5,1,.1 do
  291.                     game:GetService('RunService').RenderStepped:wait()
  292.                     jail.Transparency = i
  293.                 end
  294.                 jail:Destroy()
  295.             end
  296.         end
  297.     elseif key == 'f' then
  298.         local touched = false
  299.         local sword = outline:Clone()
  300.         sword.Touched:connect(function(p)
  301.             local h = p.Parent:FindFirstChild("Humanoid")
  302.             if h and h.Parent ~= chr and touched == false then
  303.                 touched = true
  304.                 sword.Weld.Part1 = p
  305.                 sword.Weld.C0 = CFrame.new(0,0,0)
  306.                 h.Health = h.Health - h.MaxHealth/3
  307.                 wait(1)
  308.                 sword:Destroy()
  309.             end
  310.         end)
  311.         sword.Size = Vector3.new(.2,.2,.2)
  312.         sword.BrickColor = BrickColor.new(0,0,0)
  313.         sword.SelectionBox.Color3 = Color3.new(0,0,0)
  314.         sword.Anchored = false
  315.         sword.Parent = chr
  316.         for i = 1,5,.5 do
  317.             game:GetService('RunService').RenderStepped:wait()
  318.             sword.Size = Vector3.new(.2,.2,i) do
  319.             sword.CFrame = ra.CFrame - Vector3.new(0,1,0)
  320.         end
  321.         local w = Instance.new("Weld",sword)
  322.         w.Part0 = sword
  323.         w.Part1 = ra
  324.         w.C0 = CFrame.new(0,1,0)
  325.         local handle = sword:Clone()
  326.         handle.Size = Vector3.new(.2,.2,1)
  327.         handle.BrickColor = BrickColor.new(1,0,0)
  328.         handle.Parent = chr
  329.         handle.Weld.Part0 = handle
  330.         handle.Weld.Part1 = sword
  331.         handle.Weld.C0 = CFrame.new(0,0,-3)
  332.         local handleB = handle:Clone()
  333.         handleB.Size = Vector3.new(.2,.2,1)
  334.         handleB.BrickColor = BrickColor.new(1,0,0)
  335.         handleB.Parent = chr
  336.         handleB.Weld.Part0 = handleB
  337.         handleB.Weld.Part1 = sword
  338.         handleB.Weld.C0 = CFrame.new(0,0,3)
  339.     end
  340.     elseif key == 'g' then
  341.         local touched = false
  342.         local dec = outline:Clone()
  343.         dec.Size = Vector3.new(.2,.2,.2)
  344.         dec.Anchored = true
  345.         dec.CFrame = torso.CFrame
  346.         dec.BrickColor = BrickColor.new(1,1,1)
  347.         dec.SelectionBox.Color3 = Color3.new(0,0,0)
  348.         dec.Parent = workspace
  349.         local sword = outline:Clone()
  350.         sword.Size = Vector3.new(0,0,5)
  351.         sword.Anchored = false
  352.         sword.BrickColor = BrickColor.new(1,1,1)
  353.         sword.SelectionBox.Color3 = Color3.new(0,0,0)
  354.         local w = Instance.new("Weld",sword)
  355.         w.Part0 = sword
  356.         w.Part1 = ra
  357.         w.C0 = CFrame.new(0,1,0)
  358.         for i = .2,10,.5 do
  359.             game:GetService('RunService').RenderStepped:wait()
  360.             dec.Size = Vector3.new(i,i,i)
  361.             dec.CFrame = torso.CFrame * CFrame.Angles(math.random(0,180),pi,math.random(0,180))
  362.         end
  363.         sword.Parent = chr
  364.         for i = 10,20 do
  365.             game:GetService('RunService').RenderStepped:wait()
  366.             dec.Size = dec.Size + Vector3.new(1,1,1)
  367.             dec.Transparency = dec.Transparency + .1
  368.             dec.CFrame = torso.CFrame * CFrame.Angles(math.random(0,180),pi,math.random(0,180))
  369.         end
  370.         dec:Destroy()
  371.         f = sword.Touched:connect(function(p)
  372.             local h = p.Parent:FindFirstChild("Humanoid")
  373.             local fbv = p.Parent:FindFirstChild("BodyVelocity",true)
  374.             if h and h.Parent ~= chr and touched == false then
  375.                 touched = true
  376.                 if fbv then
  377.                     fbv.MaxForce = Vector3.new(0,0,0)
  378.                 end
  379.                 local bf = Instance.new("BodyForce",h.Parent.Torso)
  380.                 bf.Force = Vector3.new(0,math.random(-10000,-5000),0)
  381.                 local bav = Instance.new("BodyAngularVelocity",h.Parent.Torso)
  382.                 bav.MaxTorque = Vector3.new(huge,huge,huge)
  383.                 bav.AngularVelocity = Vector3.new(math.random(0,180),math.random(0,180),math.random(0,180))
  384.                 for i,v in pairs(h.Parent:GetChildren()) do
  385.                     if v.ClassName == "Part" then
  386.                         v.Touched:connect(function(part)
  387.                             if part.Name == "Base" then
  388.                                 h.Health = h.Health - 1
  389.                                 local num = math.random(1,2)
  390.                                 for i = 1,5 do
  391.                                     local clone = grass:Clone()
  392.                                     clone.Name = "grassobj"
  393.                                     clone.Size = Vector3.new(num,num,num)
  394.                                     clone.CFrame = p.CFrame + Vector3.new(math.random(1,5),math.random(1,5),math.random(1,5))
  395.                                     clone.Parent = workspace
  396.                                 end
  397.                             end
  398.                         end)
  399.                     end
  400.                 end
  401.             end
  402.         wait(1)
  403.         sword:Destroy()
  404.         f:disconnect()
  405.         end)
  406.     elseif key == 'z' then
  407.         local shield = outline:Clone()
  408.         shield.Size = Vector3.new(.2,.2,.2)
  409.         shield.Parent = workspace
  410.         shield.Anchored = false
  411.         shield.BrickColor = BrickColor.new(1,1,1)
  412.         shield.SelectionBox.Color3 = Color3.new(0,0,0)
  413.         shield.CanCollide = false
  414.         shield.Transparency = .5
  415.         shield.CFrame = torso.CFrame
  416.         local bv = Instance.new("BodyVelocity",shield)
  417.         bv.MaxForce = Vector3.new(huge,huge,huge)
  418.         bv.Velocity = torso.CFrame.lookVector*120
  419.         wait()
  420.         shield.Touched:connect(function(p)
  421.             if p.Name ~= "Base" and p.Parent ~= chr and p.Name ~= "Handle" and p.Parent.ClassName ~= 'Model' then
  422.                 p.CanCollide = false
  423.                 p.Anchored = true
  424.                 for i = 0,1,.1 do
  425.                     game:GetService('RunService').RenderStepped:wait()
  426.                     p.Transparency = i
  427.                 end
  428.                 p:Destroy()
  429.                 end
  430.             end)
  431.         for i = 1,150 do
  432.             game:GetService('RunService').RenderStepped:wait()
  433.             shield.Size = shield.Size + Vector3.new(.5,.5,0)
  434.         end
  435.         for i = .5,1,.05 do
  436.             game:GetService('RunService').RenderStepped:wait()
  437.             shield.Transparency = i
  438.         end
  439.         shield:Destroy()
  440.     elseif key == 'x' then
  441.         local shield = outline:Clone()
  442.         shield.Size = Vector3.new(.2,.2,.2)
  443.         shield.CFrame = torso.CFrame
  444.         shield.Transparency = .25
  445.         shield.BrickColor = BrickColor.new(0,0,0)
  446.         shield.SelectionBox.Color3 = Color3.new(.5,.5,.5)
  447.         shield.Parent = workspace
  448.         shield.Touched:connect(function(p)
  449.             if p.Name ~= 'Base' and p.Parent ~= chr and p.Name ~= "Handle" and p.Parent.ClassName ~= 'Model' then
  450.                 p:Destroy()
  451.             end
  452.         end)
  453.         for i = .2,25,.25 do
  454.             game:GetService('RunService').RenderStepped:wait()
  455.             shield.Size = Vector3.new(i,i,i)
  456.             shield.CFrame = torso.CFrame*CFrame.Angles(math.random(0,180),pi,math.random(0,180))
  457.         end
  458.         for i = .25,1,.25 do
  459.             game:GetService('RunService').RenderStepped:wait()
  460.             shield.Transparency = i
  461.             shield.CFrame = torso.CFrame*CFrame.Angles(math.random(0,180),pi,math.random(0,180))
  462.         end
  463.         shield:Destroy()
  464.     elseif key == 'c' then
  465.         local heal = outline:Clone()
  466.         heal.BrickColor = BrickColor.new(0,1,0)
  467.         heal.SelectionBox.Color3 = Color3.new(1,1,1)
  468.         heal.Transparency = .25
  469.         heal.Size = Vector3.new(.2,.2,.2)
  470.         heal.CFrame = torso.CFrame
  471.         heal.Parent = workspace
  472.         heal.Anchored = true
  473.         for i = .2,25,.2 do
  474.             game:GetService('RunService').RenderStepped:wait()
  475.             heal.Size = Vector3.new(i,i,i)
  476.             heal.CFrame = torso.CFrame*CFrame.Angles(math.random(0,180),pi,math.random(0,180))
  477.             chr.Humanoid.Health = chr.Humanoid.Health + .8
  478.         end
  479.         for i = .25,1,.05 do
  480.             game:GetService('RunService').RenderStepped:wait()
  481.             heal.Transparency = i
  482.             heal.CFrame = torso.CFrame*CFrame.Angles(math.random(0,180),pi,math.random(0,180))
  483.         end
  484.         heal:Destroy()
  485.     elseif key == 'y' then
  486.         touched = false
  487.         local dec = outline:Clone()
  488.         dec.Size = Vector3.new(.2,.2,.2)
  489.         dec.CFrame = torso.CFrame
  490.         dec.BrickColor = BrickColor.new(1,0,0)
  491.         dec.SelectionBox.Color3 = Color3.new(0,0,0)
  492.         dec.Transparency = .25
  493.         dec.CanCollide = false
  494.         local sword = dec:Clone()
  495.         sword.Size = Vector3.new(.2,.2,5)
  496.         local bv = Instance.new("BodyVelocity",sword)
  497.         bv.MaxForce = Vector3.new(huge,huge,huge)
  498.         dec.Parent = workspace
  499.         for i = .2,10,.5 do
  500.             game:GetService('RunService').RenderStepped:wait()
  501.             dec.Size = Vector3.new(i,i,i)
  502.             dec.CFrame = torso.CFrame * CFrame.Angles(math.random(0,180),pi,math.random(0,180))
  503.         end
  504.         for i = 0,1,.1 do
  505.             game:GetService('RunService').RenderStepped:wait()
  506.             dec.Size = dec.Size + Vector3.new(.5,.5,.5)
  507.             dec.CFrame = torso.CFrame * CFrame.Angles(math.random(0,180),pi,math.random(0,180))
  508.             dec.Transparency = i
  509.         end
  510.         dec:Destroy()
  511.         for i = 1,180 do
  512.             local clone = sword:Clone()
  513.             clone.Name = "pl"
  514.             clone.Touched:connect(function(p)
  515.                 local h = p.Parent:FindFirstChild("Humanoid")
  516.                 if h and h.Parent ~= chr and touched == false then
  517.                     local bvB = h.Parent:FindFirstChild("BodyVelocity",true)
  518.                     touched = true
  519.                     h.Health = h.Health - 10
  520.                     for i = 5,0,.5 do
  521.                         game:GetService('RunService').RenderStepped:wait()
  522.                         clone.Size = Vector3.new(i,i,i)
  523.                         clone.Transparency = clone.Transparency + .1
  524.                         clone.SelectionBox.Transparency = clone.Transparency
  525.                     end
  526.                     clone:Destroy()
  527.                 end
  528.             end)
  529.             clone.CFrame = torso.CFrame * CFrame.Angles(pi,i+1,pi)
  530.             clone.Parent = workspace
  531.             clone.BodyVelocity.Velocity = clone.CFrame.lookVector*200
  532.         end
  533.         wait(5)
  534.         for i,v in pairs(workspace:GetChildren()) do
  535.             if v.Name == 'pl' then
  536.                 game:GetService('RunService').RenderStepped:wait()
  537.                 v:Destroy()
  538.             end
  539.         end
  540.     elseif key == 'v' then
  541.         local shield = outline:Clone()
  542.         shield.Size = Vector3.new(.2,.2,.2)
  543.         shield.CFrame = torso.CFrame
  544.         shield.BrickColor = BrickColor.new("Teal")
  545.         shield.Anchored = false
  546.         shield.SelectionBox.Color3 = Color3.new(1,1,1)
  547.         shield.Transparency = .25
  548.         shield.Touched:connect(function(p)
  549.             local bv = p.Parent:FindFirstChild("BodyVelocity",true)
  550.             if bv and p.Parent ~= chr then
  551.                 local clone = p:Clone()
  552.                 p:Destroy()
  553.                 clone.Parent = workspace
  554.                 clone.BodyVelocity.Velocity = -clone.BodyVelocity.Velocity
  555.                 clone.Anchored = false
  556.                 clone.Touched:connect(function(hit)
  557.                     local h = hit.Parent:FindFirstChild("Humanoid")
  558.                     if h and h.Parent ~= chr then
  559.                         h.Health = h.Health -50
  560.                     end
  561.                 end)
  562.             end
  563.         end)
  564.         shield.Parent = workspace
  565.         for i = .2,25,.5 do
  566.             game:GetService('RunService').RenderStepped:wait()
  567.             shield.Size = Vector3.new(i,i,i)
  568.             shield.CFrame = torso.CFrame * CFrame.Angles(math.random(0,180),pi,math.random(0,180))
  569.         end
  570.         for i = 1,10 do
  571.             game:GetService('RunService').RenderStepped:wait()
  572.             shield.Size = shield.Size + Vector3.new(.5,.5,.5)
  573.             shield.CFrame = torso.CFrame * CFrame.Angles(math.random(0,180),pi,math.random(0,180))
  574.             shield.Transparency = i/10
  575.         end
  576.         shield:Destroy()
  577.     elseif key == 'u' then
  578.         local touched = false
  579.         local stun = outline:Clone()
  580.         stun.BrickColor = BrickColor.new("Cool yellow")
  581.         stun.SelectionBox:Destroy()
  582.         stun.Anchored = false
  583.         stun.CFrame = torso.CFrame
  584.         stun.CanCollide = false
  585.         stun.Size = Vector3.new(.2,.2,.2)
  586.         local bv = Instance.new("BodyVelocity",stun)
  587.         bv.MaxForce = Vector3.new(huge,huge,huge)
  588.         local stunB = stun:Clone()
  589.         stun.Touched:connect(function(p)
  590.             local h = p.Parent:FindFirstChild("Humanoid")
  591.             if h and h.Parent ~= chr and touched == false then
  592.                 touched = true
  593.                 stun.Anchored = true
  594.                 local damage = 100/150
  595.                 stunB.Parent = workspace
  596.                 stunB.Anchored = true
  597.                 h.Parent.Torso.Anchored = true
  598.                 for i = 1,12 do
  599.                     game:GetService('RunService').RenderStepped:wait()
  600.                     stun.Size = stun.Size + Vector3.new(.2,0,.5)
  601.                     stunB.Size = stun.Size
  602.                     stun.CFrame = p.Parent.Torso.CFrame * CFrame.Angles(pi,math.random(0,180),pi)
  603.                     stunB.CFrame = p.Parent.Torso.CFrame * CFrame.Angles(pi,math.random(0,180),pi)
  604.                 end
  605.                 for i = 1,150 do
  606.                     game:GetService('RunService').RenderStepped:wait()
  607.                     h.Health = h.Health - damage
  608.                     stun.CFrame = p.Parent.Torso.CFrame * CFrame.Angles(pi,math.random(0,180),pi)
  609.                     stunB.CFrame = p.Parent.Torso.CFrame * CFrame.Angles(pi,math.random(0,180),pi)
  610.                 end
  611.                 for i = 1,10 do
  612.                     game:GetService('RunService').RenderStepped:wait()
  613.                     stun.Transparency = i/10
  614.                     stunB.Transparency = i/10
  615.                 end
  616.                 stun:Destroy()
  617.                 stunB:Destroy()
  618.                 if h.Health<4 then
  619.                     h.Parent:BreakJoints()
  620.                 end
  621.             end
  622.         end)
  623.         stun.Parent = workspace
  624.         stun.BodyVelocity.Velocity = torso.CFrame.lookVector*200
  625.     elseif key == 'p' then
  626.         p = true
  627.         local touched = false
  628.         local tem = outline:Clone()
  629.         tem.BrickColor = BrickColor.new(1,0,0)
  630.         tem.CanCollide = false
  631.         tem.Transparency = .25
  632.         tem.CFrame = torso.CFrame
  633.         local bv = Instance.new("BodyVelocity",tem)
  634.         bv.MaxForce = Vector3.new(huge,huge,huge)
  635.         local bav = Instance.new("BodyAngularVelocity",tem)
  636.         bav.MaxTorque = Vector3.new(huge,huge,huge)
  637.         while p == true do
  638.             for i = 1,2 do
  639.                 wait()
  640.                 local clone = tem:Clone()
  641.                 clone.Parent = workspace
  642.                 clone.Touched:connect(function(p)
  643.                     local h = p.Parent:FindFirstChild("Humanoid")
  644.                     if h and h.Parent ~= chr and touched == false then
  645.                         touched = true
  646.                         h.Health = h.Health - 5
  647.                         wait()
  648.                         touched = false
  649.                     end
  650.                 end)
  651.                 clone.Name = "ct"
  652.                 clone.BodyVelocity.Velocity = torso.CFrame.lookVector*math.random(100,200)
  653.                 clone.BodyAngularVelocity.AngularVelocity = Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  654.             end
  655.             wait(.35)
  656.         end
  657.     elseif key == 'h' then
  658.         local swordA = outline:Clone()
  659.         swordA.Transparency = 1
  660.         swordA.SelectionBox:Destroy()
  661.         swordA.Size = Vector3.new(.2,.2,5)
  662.         local w = Instance.new("Weld",swordA)
  663.         w.Part0  = swordA
  664.         w.Part1 = ra
  665.         w.C0 = CFrame.new(0,1,0)
  666.         local pe = Instance.new("ParticleEmitter",swordA)
  667.         pe.Texture = "http://www.roblox.com/asset/?id=241685484"
  668.         local color1 = Color3.new(1,1,1)
  669.         local color2 = Color3.new(0,0,0)
  670.         pe.Color = ColorSequence.new(color1,color2)
  671.         pe.Size = NumberSequence.new(.05)
  672.         pe.LockedToPart = true
  673.         pe.Acceleration = Vector3.new(0,0,0)
  674.         pe.Rate = 5000
  675.         pe.Lifetime = NumberRange.new(math.random(2,5))
  676.         pe.Speed = NumberRange.new(0)
  677.         local swordB = swordA:Clone()
  678.         swordB.Weld.Part0 = swordB
  679.         swordB.Weld.Part1 = la
  680.         swordB.Weld.C0 = CFrame.new(0,1,0)
  681.         function touched(hit)
  682.             local h = hit.Parent:FindFirstChild("Humanoid")
  683.             if h and h.Parent ~= chr then
  684.                 local bv = h.Parent:FindFirstChild("BodyVelocity",true)
  685.                 h.Health = h.Health - 10
  686.                 if bv then
  687.                     bv.MaxForce = Vector3.new(0,0,0)
  688.                     h.Sit = true
  689.                     local bf = Instance.new("BodyForce",h.Parent.Torso)
  690.                     bf.Force = Vector3.new(math.random(-5000,5000),math.random(-5000,5000),math.random(-5000,5000))
  691.                 end
  692.             end
  693.             wait(1)
  694.             swordA.ParticleEmitter.Lifetime = NumberRange.new(0)
  695.             swordB.ParticleEmitter.Lifetime = NumberRange.new(0)
  696.             wait(5)
  697.             swordA:Destroy()
  698.             swordB:Destroy()
  699.         end
  700.         swordA.Touched:connect(touched)
  701.         swordB.Touched:connect(touched)
  702.         swordA.Parent = chr
  703.         swordB.Parent = chr
  704.     elseif key == 'j' then
  705.         local touched = false
  706.         local sword = outline:Clone()
  707.         sword.Size = Vector3.new(.2,.2,5)
  708.         sword.Transparency = 1
  709.         sword.CanCollide = false
  710.         sword.CFrame = CFrame.new(ran,ran,ran)
  711.         sword.SelectionBox:Destroy()
  712.         local pe = Instance.new("ParticleEmitter",sword)
  713.         pe.Texture = "http://www.roblox.com/asset/?id=241685484"
  714.         pe.Color = ColorSequence.new(Color3.new(0,0,0),Color3.new(0,0,0))
  715.         pe.Size = NumberSequence.new(.05)
  716.         pe.LockedToPart = true
  717.         pe.Lifetime = NumberRange.new(math.random(2,5))
  718.         pe.Rate = 5000
  719.         pe.Speed = NumberRange.new(0)
  720.         sword.Parent = chr
  721.         sword.Touched:connect(function(p)
  722.             local h = p.Parent:FindFirstChild("Humanoid")
  723.             if h and h.Parent ~= chr and touched == false then
  724.                 touched = true
  725.                 h.Health = h.Health - 20
  726.                 local clone = sword:Clone()
  727.                 clone.Anchored = true
  728.                 clone.Parent = workspace
  729.                 h.Parent.Torso.Anchored = true
  730.                 clone.Weld:Destroy()
  731.                 clone.Parent = workspace
  732.                 for i = 1,80 do
  733.                     game:GetService('RunService').RenderStepped:wait()
  734.                     clone.Size = clone.Size + Vector3.new(0,0,.5)
  735.                     clone.CFrame = h.Parent.Torso.CFrame
  736.                     h.Health = h.Health - 1
  737.                 end
  738.                 clone.ParticleEmitter.Lifetime = NumberRange.new(0)
  739.                 sword.ParticleEmitter.Lifetime = NumberRange.new(0)
  740.                 wait(5)
  741.                 sword:Destroy()
  742.                 clone:Destroy()
  743.             end
  744.         end)
  745.         local w = Instance.new("Weld",sword)
  746.         w.Part0 = sword
  747.         w.Part1 = ra
  748.         w.C0 = CFrame.new(0,1,0)
  749.     elseif key == 'b' and mouse.Target then
  750.         local dec = outline:Clone()
  751.         dec.Size = Vector3.new(.2,.2,.2)
  752.         dec.CFrame = torso.CFrame
  753.         dec.BrickColor = BrickColor.new(0,0,0)
  754.         dec.SelectionBox.Color3 = Color3.new(1,1,1)
  755.         dec.CanCollide = false
  756.         dec.Parent = workspace
  757.         for i = 1,10 do
  758.             game:GetService('RunService').RenderStepped:wait()
  759.             dec.Size = Vector3.new(i,i,i)
  760.             dec.Transparency = i/10
  761.             dec.SelectionBox.Transparency = i/10
  762.             dec.CFrame = torso.CFrame * CFrame.Angles(math.random(0,180),pi,math.random(0,180))
  763.         end
  764.         dec:Destroy()
  765.         chr:MoveTo(mouse.Hit.p)
  766.     elseif key == 'k' then
  767.         local touched = false
  768.         local sword = outline:Clone()
  769.         local dec = outline:Clone()
  770.         dec.BrickColor = BrickColor.new(0,0,0)
  771.         dec.Size = Vector3.new(.2,.2,.2)
  772.         dec.CanCollide = false
  773.         dec.Transparency = .25
  774.         dec.CFrame = torso.CFrame
  775.         dec.Anchored = true
  776.         dec.SelectionBox.Color3 = Color3.new(1,1,1)
  777.         sword.SelectionBox:Destroy()
  778.         sword.Transparency = 1
  779.         sword.Touched:connect(function(p)
  780.             local h = p.Parent:FindFirstChild("Humanoid")
  781.             if h and h.Parent ~= chr and touched == false then
  782.                 touched = true
  783.                 dec.Parent= workspace
  784.                 local bv = h.Parent:FindFirstChild("BodyVelocity",true)
  785.                 for i = 1,10 do
  786.                     game:GetService('RunService').RenderStepped:wait()
  787.                     dec.Size = dec.Size + Vector3.new(.5,.5,.5)
  788.                     dec.CFrame = p.CFrame*CFrame.Angles(math.random(0,180),pi,math.random(0,180))
  789.                     dec.Transparency = i/10
  790.                     dec.SelectionBox.Transparency = i/10
  791.                 end
  792.                 h.Health = h.Health - 25
  793.                 if bv then
  794.                     local bf = Instance.new("BodyForce")
  795.                     bf.Force = Vector3.new(0,0,-bv.Velocity.Z*200)
  796.                     bv.MaxForce = Vector3.new(0,0,0)
  797.                 end
  798.             end
  799.             wait(2)
  800.             touched = false
  801.         end)
  802.         sword.Size = Vector3.new(.2,.2,6)
  803.         sword.CFrame = ra.CFrame - Vector3.new(0,1,0)
  804.         local pe  = Instance.new("ParticleEmitter",sword)
  805.         pe.Texture = "http://www.roblox.com/asset/?id=241685484"
  806.         pe.Color = ColorSequence.new(Color3.new(0,0,0),Color3.new(.5,0,0))
  807.         pe.Size = NumberSequence.new(.05)
  808.         pe.LockedToPart = true
  809.         pe.Lifetime = NumberRange.new(math.random(2,5))
  810.         pe.Rate = 5000
  811.         pe.Speed = NumberRange.new(0)
  812.         sword.Parent = chr
  813.         local w = Instance.new("Weld",sword)
  814.         w.Part0 = sword
  815.         w.Part1 = ra
  816.         w.C0 = CFrame.new(0,1,0)
  817.     elseif key == 'l' then
  818.         local touched = false
  819.         local sword = outline:Clone()
  820.         sword.Touched:connect(function(p)
  821.             local h = p.Parent:FindFirstChild("Humanoid")
  822.             if h and h.Parent~=chr and touched ==false then
  823.                 local weld = h.Parent:FindFirstChild("Weld",true)
  824.                 local bv = h.Parent:FindFirstChild("BodyVelocity",true)
  825.                 if weld and weld.Parent ~= sword then
  826.                     local bf = Instance.new("BodyForce",h.Parent)
  827.                     local bav = Instance.new("BodyAngularVelocity")
  828.                     bav.MaxTorque = Vector3.new(huge,huge,huge)
  829.                     bav.AngularVelocity = Vector3.new(ran,ran,ran)
  830.                     weld.Parent:Destroy()
  831.                     bf.Force = Vector3.new(0,-5000,0)
  832.                     sword.ParticleEmitter.Color = ColorSequence.new(Color3.new(0,0,0),Color3.new(.5,0,0))
  833.                     if bv then
  834.                         for i,v in pairs(h.Parent:GetChildren()) do
  835.                             if v.ClassName == "Part" then
  836.                                 fun = v.Touched:connect(function(part)
  837.                                     if part.Name == "Base" then
  838.                                         h.Health = h.Health - 10
  839.                                         for i = 1,10 do
  840.                                             local clone = grass:Clone()
  841.                                             local num = math.random(1,3)
  842.                                             clone.Size = Vector3.new(num,num,num)
  843.                                             clone.CFrame = v.CFrame
  844.                                             clone.Parent = workspace
  845.                                         end
  846.                                     end
  847.                                 end)
  848.                             end
  849.                         end
  850.                         bv.MaxForce = Vector3.new(0,0,0)
  851.                         bf.Parent = bv.Parent
  852.                         bav.Parent = bv.Parent
  853.                         wait(5)
  854.                         fun:disconnect()
  855.                         sword.ParticleEmitter.Lifetime = NumberRange.new(0)
  856.                         wait(5)
  857.                         sword:Destroy()
  858.                     end
  859.                 end
  860.             end
  861.         end)
  862.         sword.Size = Vector3.new(0,0,7)
  863.         sword.Transparency = 1
  864.         sword.SelectionBox.Transparency = 1
  865.         sword.CanCollide = false
  866.         local pe  = Instance.new("ParticleEmitter",sword)
  867.         pe.Texture = "http://www.roblox.com/asset/?id=241685484"
  868.         pe.Color = ColorSequence.new(Color3.new(1,1,1),Color3.new(.5,0,0))
  869.         pe.Size = NumberSequence.new(.05)
  870.         pe.LockedToPart = true
  871.         pe.Lifetime = NumberRange.new(math.random(2,5))
  872.         pe.Rate = 5000
  873.         pe.Speed = NumberRange.new(0)
  874.         sword.Parent = chr
  875.         local w = Instance.new("Weld",sword)
  876.         w.Part0 = sword
  877.         w.Part1 = ra
  878.         w.C0 = CFrame.new(0,1,2.1)
  879.     elseif key == 'm' then
  880.         touched = false
  881.         m = true
  882.         local tem = outline:Clone()
  883.         tem.BrickColor = BrickColor.new(0,0,0)
  884.         tem.CanCollide = false
  885.         tem.Transparency = .25
  886.         tem.SelectionBox.Transparency = .5
  887.         tem.SelectionBox.Color3 = Color3.new(.5,.5,.5)
  888.         tem.CFrame = torso.CFrame
  889.         local bv = Instance.new("BodyVelocity",tem)
  890.         bv.MaxForce = Vector3.new(huge,huge,huge)
  891.         local bav = Instance.new("BodyAngularVelocity",tem)
  892.         bav.MaxTorque = Vector3.new(huge,huge,huge)
  893.         while m == true do
  894.             for i = 1,2 do
  895.                 wait()
  896.                 local clone = tem:Clone()
  897.                 clone.Name = "Handle"
  898.                 clone.Parent = chr
  899.                 clone.Touched:connect(function(p)
  900.                     if p.Name ~="Base" and p.Parent.ClassName ~="Model" and p.Name ~="Handle" and touched == false then
  901.                         touched = true
  902.                         for i = 1,10 do
  903.                             game:GetService('RunService').RenderStepped:wait()
  904.                             clone.Size = clone.Size + Vector3.new(.5,.5,.5)
  905.                             clone.Transparency = clone.Transparency  + .05
  906.                             clone.SelectionBox.Transparency = clone.SelectionBox.Transparency + .05
  907.                         end
  908.                         clone:Destroy()
  909.                         p:Destroy()
  910.                     end
  911.                 end)
  912.                 clone.Name = "ct"
  913.                 clone.BodyVelocity.Velocity = torso.CFrame.lookVector*math.random(100,200)
  914.                 clone.BodyAngularVelocity.AngularVelocity = Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  915.             end
  916.             wait(.35)
  917.         end
  918.     end
  919. end)
  920.  
  921. mouse.KeyUp:connect(function(key)
  922.     if key == 'w' or key == 's' then
  923.         w = false
  924.         s = false
  925.         wait()
  926.         speed.Value = Vector3.new(0,.1,0)
  927.     elseif key == 'p' or m then
  928.         p = false
  929.         m = false
  930.         wait(5)
  931.         for i,v in pairs(workspace:GetChildren()) do
  932.             if v.Name == 'ct' then
  933.                 wait()
  934.                 v:Destroy()
  935.             end
  936.         end
  937.     end
  938. end)
  939.  
  940. while true do
  941.     game:GetService('RunService').RenderStepped:wait()
  942.     bv.Velocity = speed.Value
  943.     bg.CFrame = CFrame.new(chr.Torso.Position,mouse.Hit.p) * CFrame.Angles(0,math.rad(-90),0)
  944. end
  945. --fin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement