Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --key l disconnect first function
- --remove future keys
- plr = game.Players.LocalPlayer
- chr = plr.Character or plr.CharacterAdded:wait()
- torso = chr.Torso
- hrp = chr.HumanoidRootPart
- mouse = plr:GetMouse()
- bv = Instance.new("BodyVelocity",hrp)
- bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- chr.Animate.Disabled = true
- wait()
- bv.Velocity = Vector3.new(0,50,0)
- wait(1)
- bv.Velocity = Vector3.new(0,0,0)
- bg = Instance.new("BodyGyro",hrp)
- speed = Instance.new("Vector3Value",chr)
- speed.Value = Vector3.new(0,.1,0)
- outline = Instance.new("Part")
- outline.BrickColor = BrickColor.new(0,0,0)
- outline.Material = "Neon"
- outline.Anchored = false
- outline.CanCollide = false
- outline.FormFactor = "Custom"
- outline.Size = Vector3.new(1,1,1)
- outline.TopSurface = "Smooth"
- outline.BottomSurface = "Smooth"
- local sbox = Instance.new("SelectionBox",outline)
- sbox.Adornee = outline
- sbox.Color3 = Color3.new(0,0,0)
- sbox.LineThickness = .001
- sbox.Transparency = .5
- w = false
- s = false
- p = false
- m = false
- pi = math.pi
- huge = math.huge
- ran = math.random(0,180)
- debounce = false
- ra = chr["Right Arm"]
- la = chr["Left Arm"]
- grass = Instance.new("Part")
- grass.BrickColor = BrickColor.new("Earth green")
- grass.Material = Enum.Material.Grass
- grass.Anchored = false
- grass.FormFactor = "Custom"
- grass.TopSurface = "Smooth"
- grass.BottomSurface = "Smooth"
- --[[keys]]--
- --[[ n,m healing/protecting
- ]]
- mouse.KeyDown:connect(function(key)
- if key == 'w' then
- w = true
- while w == true do
- game:GetService('RunService').RenderStepped:wait()
- speed.Value = mouse.Hit.lookVector*50
- end
- elseif key == 'n' then
- for i = 1,math.random(10,25) do
- local clone = outline:Clone()
- clone.Parent = workspace
- clone.CanCollide = false
- clone.Anchored = true
- for i = 1,5,.5 do
- game:GetService('RunService').RenderStepped:wait()
- clone.Size = Vector3.new(i,i,i)
- clone.CFrame = torso.CFrame * CFrame.Angles(math.random(0,180),math.pi,math.random(0,180))
- clone.Transparency = clone.Transparency + .1
- clone.SelectionBox.Transparency = clone.Transparency
- end
- clone:Destroy()
- chr:SetPrimaryPartCFrame(torso.CFrame + Vector3.new(math.random(-10,10),0,math.random(-10,10)))
- wait()
- end
- elseif key == 's' then
- s = true
- while s == true do
- game:GetService('RunService').RenderStepped:wait()
- speed.Value = mouse.Hit.lookVector-mouse.Hit.lookVector*50
- end
- elseif key == 'q' then
- local kill = outline:Clone()
- kill.Size = Vector3.new(.2,1,.2)
- kill.CFrame = chr.Torso.CFrame
- kill.BrickColor = BrickColor.new(0,0,0)
- kill.SelectionBox.Color3 = Color3.new(1,1,1)
- kill.Anchored = false
- kill.CanCollide = false
- local bv = Instance.new("BodyVelocity",kill)
- bv.MaxForce = Vector3.new(huge,huge,huge)
- kill.Parent = workspace
- bv.Velocity = torso.CFrame.lookVector*100
- local touched = false
- local sbox = kill.SelectionBox
- kill.Rotation = Vector3.new(0,0,math.random(0,180))
- kill.Touched:connect(function(p)
- local h = p.Parent:FindFirstChild("Humanoid")
- if h and h.Parent ~= chr and debounce == false then
- debounce = true
- touched = true
- h.Health = h.Health - h.MaxHealth/2
- for i = 0,1,.1 do
- game:GetService('RunService').RenderStepped:wait()
- kill.Transparency = i
- kill.SelectionBox.Transparency = i
- end
- kill:Destroy()
- debounce = false
- end
- end)
- kill.ChildAdded:connect(function(c)
- if c.ClassName == "Part" then
- for i = 0,1,.2 do
- game:GetService('RunService').RenderStepped:wait()
- c.Transparency = i
- end
- c:Destroy()
- end
- end)
- while touched == false do
- wait(.1)
- kill.Size = kill.Size + Vector3.new(0,.75,0)
- local clone = kill:Clone()
- clone.CFrame = kill.CFrame
- clone.Anchored = true
- clone.Parent = kill
- if kill.Size.Y>40 then
- touched = true
- for i = 0,1,.1 do
- game:GetService('RunService').RenderStepped:wait()
- kill.Transparency = i
- kill.SelectionBox.Transparency = i
- end
- kill:Destroy()
- end
- end
- elseif key == 'e' then
- local kill = outline:Clone()
- kill.BrickColor = BrickColor.new(1,1,1)
- kill.SelectionBox.Color3 = Color3.new(0,0,0)
- kill.Size = Vector3.new(.2,.2,5)
- kill.CFrame = chr["Right Arm"].CFrame-Vector3.new(0,1,0)
- kill.Anchored = false
- kill.CanCollide = false
- local bv = Instance.new("BodyVelocity",kill)
- bv.MaxForce = Vector3.new(huge,huge,huge)
- for i = 1,20 do
- wait()
- local clone = kill:Clone()
- clone.Touched:connect(function(p)
- local h = p.Parent:FindFirstChild("Humanoid")
- if h and h.Parent ~= chr then
- h.Health = h.Health - h.MaxHealth/15
- end
- end)
- clone.Parent = workspace
- clone.BodyVelocity.Velocity = torso.CFrame.lookVector*200
- clone.CFrame = torso.CFrame + Vector3.new(math.random(-5,5),math.random,math.random(-5,5))
- end
- elseif key == 'r' then
- local touched = false
- local bounce = outline:Clone()
- local bv = Instance.new("BodyVelocity",bounce)
- local bav = Instance.new("BodyAngularVelocity",bounce)
- bav.MaxTorque = Vector3.new(huge,huge,huge)
- bav.AngularVelocity = Vector3.new(math.random(-4,4),math.random(-4,4),math.random(-4,4))
- bv.MaxForce = Vector3.new(huge,huge,huge)
- bounce.Anchored = false
- bounce.CFrame = ra.CFrame-Vector3.new(0,1,0)
- bv.Velocity = torso.CFrame.lookVector*200
- bounce.Parent = workspace
- bounce.Touched:connect(function(p)
- local h = p.Parent:FindFirstChild("Humanoid")
- if h and h.Parent ~= chr and touched == false then
- local bf = Instance.new("BodyForce",h.Parent.Torso)
- local bavB = Instance.new("BodyAngularVelocity",h.Parent.Torso)
- bavB.MaxTorque = Vector3.new(huge,huge,huge)
- touched = true
- for i = 1,10 do
- game:GetService('RunService').RenderStepped:wait()
- bounce.Size = bounce.Size + Vector3.new(.5,.5,.5)
- bounce.Transparency = i/10
- bounce.SelectionBox.Transparency = i/10
- bounce.Anchored = true
- bounce.CFrame = h.Parent.Head.CFrame*CFrame.Angles(math.random(0,180),pi,math.random(0,180))
- end
- bounce:Destroy()
- bf.Force = Vector3.new(math.random(-5000,5000),math.random(-5000,5000),math.random(-5000,5000))
- bavB.AngularVelocity = Vector3.new(math.random(0,180),math.random(0,180),math.random(0,180))
- h.Sit = true
- local hbav = h.Parent.HumanoidRootPart:FindFirstChild("BodyVelocity")
- if hbav then
- h.Parent.HumanoidRootPart.BodyVelocity.MaxForce = Vector3.new(0,0,0)
- end
- end
- end)
- bounce.ChildAdded:connect(function(c)
- if c.ClassName == "Part" then
- for i = 0,1,.2 do
- game:GetService('RunService').RenderStepped:wait()
- c.Transparency = i
- end
- c:Destroy()
- end
- end)
- while touched == false do
- wait(.09)
- bounce.Size = bounce.Size + Vector3.new(.25,.25,.25)
- local clone = bounce:Clone()
- clone.CFrame = bounce.CFrame
- clone.Parent = bounce
- clone.Anchored = true
- if bounce.Size.X>10 then
- touched = true
- for i = 0,1,.1 do
- game:GetService('RunService').RenderStepped:wait()
- bounce.Transparency = i
- bounce.SelectionBox.Transparency = i
- end
- bounce:Destroy()
- end
- end
- elseif key == ' ' then
- local bf = chr:FindFirstChild("BodyForce",true)
- local bav = chr:FindFirstChild("BodyAngularVelocity",true)
- chr.Torso.Anchored = false
- if bf then
- bf:Destroy()
- bv.MaxForce = Vector3.new(huge,huge,huge)
- elseif bav then
- bav:Destroy()
- bv.MaxForce = Vector3.new(huge,huge,huge)
- end
- elseif key == 't' then
- local touched = false
- local jail = outline:Clone()
- jail.CFrame = torso.CFrame
- jail.BrickColor = BrickColor.new(0,0,0)
- jail.SelectionBox.Color3 = Color3.new(1,1,1)
- jail.Transparency = .5
- jail.Anchored = false
- local bv = Instance.new("BodyVelocity",jail)
- bv.MaxForce = Vector3.new(huge,huge,huge)
- local bav = Instance.new("BodyAngularVelocity",jail)
- bav.MaxTorque = Vector3.new(huge,huge,huge)
- bav.AngularVelocity = Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
- bv.Velocity = torso.CFrame.lookVector*150
- jail.Parent = workspace
- jail.Touched:connect(function(p)
- local h = p.Parent:FindFirstChild("Humanoid")
- if h and h.Parent ~= chr and touched == false then
- touched = true
- jail.Size = Vector3.new(25,25,25)
- jail.Anchored = true
- h.Parent.Torso.Anchored = true
- for i = 25,0,-.2 do
- wait()
- h.Health = h.Health - .8
- jail.Size = Vector3.new(i,i,i)
- jail.CFrame = h.Parent.Torso.CFrame*CFrame.Angles(math.random(0,180),pi,math.random(0,180))
- end
- jail:Destroy()
- if h.Health < 4 then
- h.Health = 0
- end
- end
- end)
- jail.ChildAdded:connect(function(c)
- if c.ClassName == "Part" then
- for i = .5,1,.2 do
- game:GetService('RunService').RenderStepped:wait()
- c.Transparency = i
- end
- c:Destroy()
- end
- end)
- while touched == false do
- wait(.06)
- jail.Size = jail.Size + Vector3.new(.25,.25,.25)
- local clone = jail:Clone()
- clone.CFrame = clone.CFrame
- clone.Anchored = true
- clone.Parent = jail
- if jail.Size.X>26 then
- touched = true
- for i = .5,1,.1 do
- game:GetService('RunService').RenderStepped:wait()
- jail.Transparency = i
- end
- jail:Destroy()
- end
- end
- elseif key == 'f' then
- local touched = false
- local sword = outline:Clone()
- sword.Touched:connect(function(p)
- local h = p.Parent:FindFirstChild("Humanoid")
- if h and h.Parent ~= chr and touched == false then
- touched = true
- sword.Weld.Part1 = p
- sword.Weld.C0 = CFrame.new(0,0,0)
- h.Health = h.Health - h.MaxHealth/3
- wait(1)
- sword:Destroy()
- end
- end)
- sword.Size = Vector3.new(.2,.2,.2)
- sword.BrickColor = BrickColor.new(0,0,0)
- sword.SelectionBox.Color3 = Color3.new(0,0,0)
- sword.Anchored = false
- sword.Parent = chr
- for i = 1,5,.5 do
- game:GetService('RunService').RenderStepped:wait()
- sword.Size = Vector3.new(.2,.2,i) do
- sword.CFrame = ra.CFrame - Vector3.new(0,1,0)
- end
- local w = Instance.new("Weld",sword)
- w.Part0 = sword
- w.Part1 = ra
- w.C0 = CFrame.new(0,1,0)
- local handle = sword:Clone()
- handle.Size = Vector3.new(.2,.2,1)
- handle.BrickColor = BrickColor.new(1,0,0)
- handle.Parent = chr
- handle.Weld.Part0 = handle
- handle.Weld.Part1 = sword
- handle.Weld.C0 = CFrame.new(0,0,-3)
- local handleB = handle:Clone()
- handleB.Size = Vector3.new(.2,.2,1)
- handleB.BrickColor = BrickColor.new(1,0,0)
- handleB.Parent = chr
- handleB.Weld.Part0 = handleB
- handleB.Weld.Part1 = sword
- handleB.Weld.C0 = CFrame.new(0,0,3)
- end
- elseif key == 'g' then
- local touched = false
- local dec = outline:Clone()
- dec.Size = Vector3.new(.2,.2,.2)
- dec.Anchored = true
- dec.CFrame = torso.CFrame
- dec.BrickColor = BrickColor.new(1,1,1)
- dec.SelectionBox.Color3 = Color3.new(0,0,0)
- dec.Parent = workspace
- local sword = outline:Clone()
- sword.Size = Vector3.new(0,0,5)
- sword.Anchored = false
- sword.BrickColor = BrickColor.new(1,1,1)
- sword.SelectionBox.Color3 = Color3.new(0,0,0)
- local w = Instance.new("Weld",sword)
- w.Part0 = sword
- w.Part1 = ra
- w.C0 = CFrame.new(0,1,0)
- for i = .2,10,.5 do
- game:GetService('RunService').RenderStepped:wait()
- dec.Size = Vector3.new(i,i,i)
- dec.CFrame = torso.CFrame * CFrame.Angles(math.random(0,180),pi,math.random(0,180))
- end
- sword.Parent = chr
- for i = 10,20 do
- game:GetService('RunService').RenderStepped:wait()
- dec.Size = dec.Size + Vector3.new(1,1,1)
- dec.Transparency = dec.Transparency + .1
- dec.CFrame = torso.CFrame * CFrame.Angles(math.random(0,180),pi,math.random(0,180))
- end
- dec:Destroy()
- f = sword.Touched:connect(function(p)
- local h = p.Parent:FindFirstChild("Humanoid")
- local fbv = p.Parent:FindFirstChild("BodyVelocity",true)
- if h and h.Parent ~= chr and touched == false then
- touched = true
- if fbv then
- fbv.MaxForce = Vector3.new(0,0,0)
- end
- local bf = Instance.new("BodyForce",h.Parent.Torso)
- bf.Force = Vector3.new(0,math.random(-10000,-5000),0)
- local bav = Instance.new("BodyAngularVelocity",h.Parent.Torso)
- bav.MaxTorque = Vector3.new(huge,huge,huge)
- bav.AngularVelocity = Vector3.new(math.random(0,180),math.random(0,180),math.random(0,180))
- for i,v in pairs(h.Parent:GetChildren()) do
- if v.ClassName == "Part" then
- v.Touched:connect(function(part)
- if part.Name == "Base" then
- h.Health = h.Health - 1
- local num = math.random(1,2)
- for i = 1,5 do
- local clone = grass:Clone()
- clone.Name = "grassobj"
- clone.Size = Vector3.new(num,num,num)
- clone.CFrame = p.CFrame + Vector3.new(math.random(1,5),math.random(1,5),math.random(1,5))
- clone.Parent = workspace
- end
- end
- end)
- end
- end
- end
- wait(1)
- sword:Destroy()
- f:disconnect()
- end)
- elseif key == 'z' then
- local shield = outline:Clone()
- shield.Size = Vector3.new(.2,.2,.2)
- shield.Parent = workspace
- shield.Anchored = false
- shield.BrickColor = BrickColor.new(1,1,1)
- shield.SelectionBox.Color3 = Color3.new(0,0,0)
- shield.CanCollide = false
- shield.Transparency = .5
- shield.CFrame = torso.CFrame
- local bv = Instance.new("BodyVelocity",shield)
- bv.MaxForce = Vector3.new(huge,huge,huge)
- bv.Velocity = torso.CFrame.lookVector*120
- wait()
- shield.Touched:connect(function(p)
- if p.Name ~= "Base" and p.Parent ~= chr and p.Name ~= "Handle" and p.Parent.ClassName ~= 'Model' then
- p.CanCollide = false
- p.Anchored = true
- for i = 0,1,.1 do
- game:GetService('RunService').RenderStepped:wait()
- p.Transparency = i
- end
- p:Destroy()
- end
- end)
- for i = 1,150 do
- game:GetService('RunService').RenderStepped:wait()
- shield.Size = shield.Size + Vector3.new(.5,.5,0)
- end
- for i = .5,1,.05 do
- game:GetService('RunService').RenderStepped:wait()
- shield.Transparency = i
- end
- shield:Destroy()
- elseif key == 'x' then
- local shield = outline:Clone()
- shield.Size = Vector3.new(.2,.2,.2)
- shield.CFrame = torso.CFrame
- shield.Transparency = .25
- shield.BrickColor = BrickColor.new(0,0,0)
- shield.SelectionBox.Color3 = Color3.new(.5,.5,.5)
- shield.Parent = workspace
- shield.Touched:connect(function(p)
- if p.Name ~= 'Base' and p.Parent ~= chr and p.Name ~= "Handle" and p.Parent.ClassName ~= 'Model' then
- p:Destroy()
- end
- end)
- for i = .2,25,.25 do
- game:GetService('RunService').RenderStepped:wait()
- shield.Size = Vector3.new(i,i,i)
- shield.CFrame = torso.CFrame*CFrame.Angles(math.random(0,180),pi,math.random(0,180))
- end
- for i = .25,1,.25 do
- game:GetService('RunService').RenderStepped:wait()
- shield.Transparency = i
- shield.CFrame = torso.CFrame*CFrame.Angles(math.random(0,180),pi,math.random(0,180))
- end
- shield:Destroy()
- elseif key == 'c' then
- local heal = outline:Clone()
- heal.BrickColor = BrickColor.new(0,1,0)
- heal.SelectionBox.Color3 = Color3.new(1,1,1)
- heal.Transparency = .25
- heal.Size = Vector3.new(.2,.2,.2)
- heal.CFrame = torso.CFrame
- heal.Parent = workspace
- heal.Anchored = true
- for i = .2,25,.2 do
- game:GetService('RunService').RenderStepped:wait()
- heal.Size = Vector3.new(i,i,i)
- heal.CFrame = torso.CFrame*CFrame.Angles(math.random(0,180),pi,math.random(0,180))
- chr.Humanoid.Health = chr.Humanoid.Health + .8
- end
- for i = .25,1,.05 do
- game:GetService('RunService').RenderStepped:wait()
- heal.Transparency = i
- heal.CFrame = torso.CFrame*CFrame.Angles(math.random(0,180),pi,math.random(0,180))
- end
- heal:Destroy()
- elseif key == 'y' then
- touched = false
- local dec = outline:Clone()
- dec.Size = Vector3.new(.2,.2,.2)
- dec.CFrame = torso.CFrame
- dec.BrickColor = BrickColor.new(1,0,0)
- dec.SelectionBox.Color3 = Color3.new(0,0,0)
- dec.Transparency = .25
- dec.CanCollide = false
- local sword = dec:Clone()
- sword.Size = Vector3.new(.2,.2,5)
- local bv = Instance.new("BodyVelocity",sword)
- bv.MaxForce = Vector3.new(huge,huge,huge)
- dec.Parent = workspace
- for i = .2,10,.5 do
- game:GetService('RunService').RenderStepped:wait()
- dec.Size = Vector3.new(i,i,i)
- dec.CFrame = torso.CFrame * CFrame.Angles(math.random(0,180),pi,math.random(0,180))
- end
- for i = 0,1,.1 do
- game:GetService('RunService').RenderStepped:wait()
- dec.Size = dec.Size + Vector3.new(.5,.5,.5)
- dec.CFrame = torso.CFrame * CFrame.Angles(math.random(0,180),pi,math.random(0,180))
- dec.Transparency = i
- end
- dec:Destroy()
- for i = 1,180 do
- local clone = sword:Clone()
- clone.Name = "pl"
- clone.Touched:connect(function(p)
- local h = p.Parent:FindFirstChild("Humanoid")
- if h and h.Parent ~= chr and touched == false then
- local bvB = h.Parent:FindFirstChild("BodyVelocity",true)
- touched = true
- h.Health = h.Health - 10
- for i = 5,0,.5 do
- game:GetService('RunService').RenderStepped:wait()
- clone.Size = Vector3.new(i,i,i)
- clone.Transparency = clone.Transparency + .1
- clone.SelectionBox.Transparency = clone.Transparency
- end
- clone:Destroy()
- end
- end)
- clone.CFrame = torso.CFrame * CFrame.Angles(pi,i+1,pi)
- clone.Parent = workspace
- clone.BodyVelocity.Velocity = clone.CFrame.lookVector*200
- end
- wait(5)
- for i,v in pairs(workspace:GetChildren()) do
- if v.Name == 'pl' then
- game:GetService('RunService').RenderStepped:wait()
- v:Destroy()
- end
- end
- elseif key == 'v' then
- local shield = outline:Clone()
- shield.Size = Vector3.new(.2,.2,.2)
- shield.CFrame = torso.CFrame
- shield.BrickColor = BrickColor.new("Teal")
- shield.Anchored = false
- shield.SelectionBox.Color3 = Color3.new(1,1,1)
- shield.Transparency = .25
- shield.Touched:connect(function(p)
- local bv = p.Parent:FindFirstChild("BodyVelocity",true)
- if bv and p.Parent ~= chr then
- local clone = p:Clone()
- p:Destroy()
- clone.Parent = workspace
- clone.BodyVelocity.Velocity = -clone.BodyVelocity.Velocity
- clone.Anchored = false
- clone.Touched:connect(function(hit)
- local h = hit.Parent:FindFirstChild("Humanoid")
- if h and h.Parent ~= chr then
- h.Health = h.Health -50
- end
- end)
- end
- end)
- shield.Parent = workspace
- for i = .2,25,.5 do
- game:GetService('RunService').RenderStepped:wait()
- shield.Size = Vector3.new(i,i,i)
- shield.CFrame = torso.CFrame * CFrame.Angles(math.random(0,180),pi,math.random(0,180))
- end
- for i = 1,10 do
- game:GetService('RunService').RenderStepped:wait()
- shield.Size = shield.Size + Vector3.new(.5,.5,.5)
- shield.CFrame = torso.CFrame * CFrame.Angles(math.random(0,180),pi,math.random(0,180))
- shield.Transparency = i/10
- end
- shield:Destroy()
- elseif key == 'u' then
- local touched = false
- local stun = outline:Clone()
- stun.BrickColor = BrickColor.new("Cool yellow")
- stun.SelectionBox:Destroy()
- stun.Anchored = false
- stun.CFrame = torso.CFrame
- stun.CanCollide = false
- stun.Size = Vector3.new(.2,.2,.2)
- local bv = Instance.new("BodyVelocity",stun)
- bv.MaxForce = Vector3.new(huge,huge,huge)
- local stunB = stun:Clone()
- stun.Touched:connect(function(p)
- local h = p.Parent:FindFirstChild("Humanoid")
- if h and h.Parent ~= chr and touched == false then
- touched = true
- stun.Anchored = true
- local damage = 100/150
- stunB.Parent = workspace
- stunB.Anchored = true
- h.Parent.Torso.Anchored = true
- for i = 1,12 do
- game:GetService('RunService').RenderStepped:wait()
- stun.Size = stun.Size + Vector3.new(.2,0,.5)
- stunB.Size = stun.Size
- stun.CFrame = p.Parent.Torso.CFrame * CFrame.Angles(pi,math.random(0,180),pi)
- stunB.CFrame = p.Parent.Torso.CFrame * CFrame.Angles(pi,math.random(0,180),pi)
- end
- for i = 1,150 do
- game:GetService('RunService').RenderStepped:wait()
- h.Health = h.Health - damage
- stun.CFrame = p.Parent.Torso.CFrame * CFrame.Angles(pi,math.random(0,180),pi)
- stunB.CFrame = p.Parent.Torso.CFrame * CFrame.Angles(pi,math.random(0,180),pi)
- end
- for i = 1,10 do
- game:GetService('RunService').RenderStepped:wait()
- stun.Transparency = i/10
- stunB.Transparency = i/10
- end
- stun:Destroy()
- stunB:Destroy()
- if h.Health<4 then
- h.Parent:BreakJoints()
- end
- end
- end)
- stun.Parent = workspace
- stun.BodyVelocity.Velocity = torso.CFrame.lookVector*200
- elseif key == 'p' then
- p = true
- local touched = false
- local tem = outline:Clone()
- tem.BrickColor = BrickColor.new(1,0,0)
- tem.CanCollide = false
- tem.Transparency = .25
- tem.CFrame = torso.CFrame
- local bv = Instance.new("BodyVelocity",tem)
- bv.MaxForce = Vector3.new(huge,huge,huge)
- local bav = Instance.new("BodyAngularVelocity",tem)
- bav.MaxTorque = Vector3.new(huge,huge,huge)
- while p == true do
- for i = 1,2 do
- wait()
- local clone = tem:Clone()
- clone.Parent = workspace
- clone.Touched:connect(function(p)
- local h = p.Parent:FindFirstChild("Humanoid")
- if h and h.Parent ~= chr and touched == false then
- touched = true
- h.Health = h.Health - 5
- wait()
- touched = false
- end
- end)
- clone.Name = "ct"
- clone.BodyVelocity.Velocity = torso.CFrame.lookVector*math.random(100,200)
- clone.BodyAngularVelocity.AngularVelocity = Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
- end
- wait(.35)
- end
- elseif key == 'h' then
- local swordA = outline:Clone()
- swordA.Transparency = 1
- swordA.SelectionBox:Destroy()
- swordA.Size = Vector3.new(.2,.2,5)
- local w = Instance.new("Weld",swordA)
- w.Part0 = swordA
- w.Part1 = ra
- w.C0 = CFrame.new(0,1,0)
- local pe = Instance.new("ParticleEmitter",swordA)
- pe.Texture = "http://www.roblox.com/asset/?id=241685484"
- local color1 = Color3.new(1,1,1)
- local color2 = Color3.new(0,0,0)
- pe.Color = ColorSequence.new(color1,color2)
- pe.Size = NumberSequence.new(.05)
- pe.LockedToPart = true
- pe.Acceleration = Vector3.new(0,0,0)
- pe.Rate = 5000
- pe.Lifetime = NumberRange.new(math.random(2,5))
- pe.Speed = NumberRange.new(0)
- local swordB = swordA:Clone()
- swordB.Weld.Part0 = swordB
- swordB.Weld.Part1 = la
- swordB.Weld.C0 = CFrame.new(0,1,0)
- function touched(hit)
- local h = hit.Parent:FindFirstChild("Humanoid")
- if h and h.Parent ~= chr then
- local bv = h.Parent:FindFirstChild("BodyVelocity",true)
- h.Health = h.Health - 10
- if bv then
- bv.MaxForce = Vector3.new(0,0,0)
- h.Sit = true
- local bf = Instance.new("BodyForce",h.Parent.Torso)
- bf.Force = Vector3.new(math.random(-5000,5000),math.random(-5000,5000),math.random(-5000,5000))
- end
- end
- wait(1)
- swordA.ParticleEmitter.Lifetime = NumberRange.new(0)
- swordB.ParticleEmitter.Lifetime = NumberRange.new(0)
- wait(5)
- swordA:Destroy()
- swordB:Destroy()
- end
- swordA.Touched:connect(touched)
- swordB.Touched:connect(touched)
- swordA.Parent = chr
- swordB.Parent = chr
- elseif key == 'j' then
- local touched = false
- local sword = outline:Clone()
- sword.Size = Vector3.new(.2,.2,5)
- sword.Transparency = 1
- sword.CanCollide = false
- sword.CFrame = CFrame.new(ran,ran,ran)
- sword.SelectionBox:Destroy()
- local pe = Instance.new("ParticleEmitter",sword)
- pe.Texture = "http://www.roblox.com/asset/?id=241685484"
- pe.Color = ColorSequence.new(Color3.new(0,0,0),Color3.new(0,0,0))
- pe.Size = NumberSequence.new(.05)
- pe.LockedToPart = true
- pe.Lifetime = NumberRange.new(math.random(2,5))
- pe.Rate = 5000
- pe.Speed = NumberRange.new(0)
- sword.Parent = chr
- sword.Touched:connect(function(p)
- local h = p.Parent:FindFirstChild("Humanoid")
- if h and h.Parent ~= chr and touched == false then
- touched = true
- h.Health = h.Health - 20
- local clone = sword:Clone()
- clone.Anchored = true
- clone.Parent = workspace
- h.Parent.Torso.Anchored = true
- clone.Weld:Destroy()
- clone.Parent = workspace
- for i = 1,80 do
- game:GetService('RunService').RenderStepped:wait()
- clone.Size = clone.Size + Vector3.new(0,0,.5)
- clone.CFrame = h.Parent.Torso.CFrame
- h.Health = h.Health - 1
- end
- clone.ParticleEmitter.Lifetime = NumberRange.new(0)
- sword.ParticleEmitter.Lifetime = NumberRange.new(0)
- wait(5)
- sword:Destroy()
- clone:Destroy()
- end
- end)
- local w = Instance.new("Weld",sword)
- w.Part0 = sword
- w.Part1 = ra
- w.C0 = CFrame.new(0,1,0)
- elseif key == 'b' and mouse.Target then
- local dec = outline:Clone()
- dec.Size = Vector3.new(.2,.2,.2)
- dec.CFrame = torso.CFrame
- dec.BrickColor = BrickColor.new(0,0,0)
- dec.SelectionBox.Color3 = Color3.new(1,1,1)
- dec.CanCollide = false
- dec.Parent = workspace
- for i = 1,10 do
- game:GetService('RunService').RenderStepped:wait()
- dec.Size = Vector3.new(i,i,i)
- dec.Transparency = i/10
- dec.SelectionBox.Transparency = i/10
- dec.CFrame = torso.CFrame * CFrame.Angles(math.random(0,180),pi,math.random(0,180))
- end
- dec:Destroy()
- chr:MoveTo(mouse.Hit.p)
- elseif key == 'k' then
- local touched = false
- local sword = outline:Clone()
- local dec = outline:Clone()
- dec.BrickColor = BrickColor.new(0,0,0)
- dec.Size = Vector3.new(.2,.2,.2)
- dec.CanCollide = false
- dec.Transparency = .25
- dec.CFrame = torso.CFrame
- dec.Anchored = true
- dec.SelectionBox.Color3 = Color3.new(1,1,1)
- sword.SelectionBox:Destroy()
- sword.Transparency = 1
- sword.Touched:connect(function(p)
- local h = p.Parent:FindFirstChild("Humanoid")
- if h and h.Parent ~= chr and touched == false then
- touched = true
- dec.Parent= workspace
- local bv = h.Parent:FindFirstChild("BodyVelocity",true)
- for i = 1,10 do
- game:GetService('RunService').RenderStepped:wait()
- dec.Size = dec.Size + Vector3.new(.5,.5,.5)
- dec.CFrame = p.CFrame*CFrame.Angles(math.random(0,180),pi,math.random(0,180))
- dec.Transparency = i/10
- dec.SelectionBox.Transparency = i/10
- end
- h.Health = h.Health - 25
- if bv then
- local bf = Instance.new("BodyForce")
- bf.Force = Vector3.new(0,0,-bv.Velocity.Z*200)
- bv.MaxForce = Vector3.new(0,0,0)
- end
- end
- wait(2)
- touched = false
- end)
- sword.Size = Vector3.new(.2,.2,6)
- sword.CFrame = ra.CFrame - Vector3.new(0,1,0)
- local pe = Instance.new("ParticleEmitter",sword)
- pe.Texture = "http://www.roblox.com/asset/?id=241685484"
- pe.Color = ColorSequence.new(Color3.new(0,0,0),Color3.new(.5,0,0))
- pe.Size = NumberSequence.new(.05)
- pe.LockedToPart = true
- pe.Lifetime = NumberRange.new(math.random(2,5))
- pe.Rate = 5000
- pe.Speed = NumberRange.new(0)
- sword.Parent = chr
- local w = Instance.new("Weld",sword)
- w.Part0 = sword
- w.Part1 = ra
- w.C0 = CFrame.new(0,1,0)
- elseif key == 'l' then
- local touched = false
- local sword = outline:Clone()
- sword.Touched:connect(function(p)
- local h = p.Parent:FindFirstChild("Humanoid")
- if h and h.Parent~=chr and touched ==false then
- local weld = h.Parent:FindFirstChild("Weld",true)
- local bv = h.Parent:FindFirstChild("BodyVelocity",true)
- if weld and weld.Parent ~= sword then
- local bf = Instance.new("BodyForce",h.Parent)
- local bav = Instance.new("BodyAngularVelocity")
- bav.MaxTorque = Vector3.new(huge,huge,huge)
- bav.AngularVelocity = Vector3.new(ran,ran,ran)
- weld.Parent:Destroy()
- bf.Force = Vector3.new(0,-5000,0)
- sword.ParticleEmitter.Color = ColorSequence.new(Color3.new(0,0,0),Color3.new(.5,0,0))
- if bv then
- for i,v in pairs(h.Parent:GetChildren()) do
- if v.ClassName == "Part" then
- fun = v.Touched:connect(function(part)
- if part.Name == "Base" then
- h.Health = h.Health - 10
- for i = 1,10 do
- local clone = grass:Clone()
- local num = math.random(1,3)
- clone.Size = Vector3.new(num,num,num)
- clone.CFrame = v.CFrame
- clone.Parent = workspace
- end
- end
- end)
- end
- end
- bv.MaxForce = Vector3.new(0,0,0)
- bf.Parent = bv.Parent
- bav.Parent = bv.Parent
- wait(5)
- fun:disconnect()
- sword.ParticleEmitter.Lifetime = NumberRange.new(0)
- wait(5)
- sword:Destroy()
- end
- end
- end
- end)
- sword.Size = Vector3.new(0,0,7)
- sword.Transparency = 1
- sword.SelectionBox.Transparency = 1
- sword.CanCollide = false
- local pe = Instance.new("ParticleEmitter",sword)
- pe.Texture = "http://www.roblox.com/asset/?id=241685484"
- pe.Color = ColorSequence.new(Color3.new(1,1,1),Color3.new(.5,0,0))
- pe.Size = NumberSequence.new(.05)
- pe.LockedToPart = true
- pe.Lifetime = NumberRange.new(math.random(2,5))
- pe.Rate = 5000
- pe.Speed = NumberRange.new(0)
- sword.Parent = chr
- local w = Instance.new("Weld",sword)
- w.Part0 = sword
- w.Part1 = ra
- w.C0 = CFrame.new(0,1,2.1)
- elseif key == 'm' then
- touched = false
- m = true
- local tem = outline:Clone()
- tem.BrickColor = BrickColor.new(0,0,0)
- tem.CanCollide = false
- tem.Transparency = .25
- tem.SelectionBox.Transparency = .5
- tem.SelectionBox.Color3 = Color3.new(.5,.5,.5)
- tem.CFrame = torso.CFrame
- local bv = Instance.new("BodyVelocity",tem)
- bv.MaxForce = Vector3.new(huge,huge,huge)
- local bav = Instance.new("BodyAngularVelocity",tem)
- bav.MaxTorque = Vector3.new(huge,huge,huge)
- while m == true do
- for i = 1,2 do
- wait()
- local clone = tem:Clone()
- clone.Name = "Handle"
- clone.Parent = chr
- clone.Touched:connect(function(p)
- if p.Name ~="Base" and p.Parent.ClassName ~="Model" and p.Name ~="Handle" and touched == false then
- touched = true
- for i = 1,10 do
- game:GetService('RunService').RenderStepped:wait()
- clone.Size = clone.Size + Vector3.new(.5,.5,.5)
- clone.Transparency = clone.Transparency + .05
- clone.SelectionBox.Transparency = clone.SelectionBox.Transparency + .05
- end
- clone:Destroy()
- p:Destroy()
- end
- end)
- clone.Name = "ct"
- clone.BodyVelocity.Velocity = torso.CFrame.lookVector*math.random(100,200)
- clone.BodyAngularVelocity.AngularVelocity = Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
- end
- wait(.35)
- end
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key == 'w' or key == 's' then
- w = false
- s = false
- wait()
- speed.Value = Vector3.new(0,.1,0)
- elseif key == 'p' or m then
- p = false
- m = false
- wait(5)
- for i,v in pairs(workspace:GetChildren()) do
- if v.Name == 'ct' then
- wait()
- v:Destroy()
- end
- end
- end
- end)
- while true do
- game:GetService('RunService').RenderStepped:wait()
- bv.Velocity = speed.Value
- bg.CFrame = CFrame.new(chr.Torso.Position,mouse.Hit.p) * CFrame.Angles(0,math.rad(-90),0)
- end
- --fin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement