Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Vars
- local player = game.Players.LocalPlayer
- repeat wait() until player.Character
- local character = player.Character
- local Mouse = player:GetMouse()
- local part = Instance.new('Part')
- part.Material = Enum.Material.Neon
- part.Color = Color3.fromRGB(170, 85, 0)
- part.Transparency = .25
- part.Shape = 'Ball'
- local name = player.Name
- local inputservice = game:GetService("UserInputService")
- local cool1 = 1
- local cool2 = 2
- local cool3 = 3
- local cool4 = 4
- local cool5 = 5
- local cool6 = 6
- local cool7 = 7
- local cool8 = 8
- local canuse1 = true
- local canuse2 = true
- local canuse3 = true
- local canuse4 = true
- local canuse5 = true
- --Code
- inputservice.InputBegan:connect(function(input)
- if input.KeyCode == Enum.KeyCode.Z then
- if canuse1 == true then
- canuse1 = false
- local part = part:Clone()
- part.Parent = workspace
- part.CFrame = character:FindFirstChild("UpperTorso").CFrame * CFrame.new(0, 0, -3)
- part.Size = Vector3.new(4)
- local vel = Instance.new("BodyVelocity")
- vel.Parent = part
- vel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- vel.Velocity = Mouse.Hit.lookVector * 210
- part.Touched:connect(function(hit)
- local hum = hit.Parent:FindFirstChild("Humanoid")
- local humName = hit.Parent.Name
- local canpart = true
- if hum then
- if humName ~= name then
- print(humName)
- hum:TakeDamage(12.5)
- part.fire.Parent = hit
- part:Destroy()
- wait(.5)
- hum:TakeDamage(math.random(1, 5))
- wait(.5)
- hum:TakeDamage(math.random(1, 5))
- wait(.5)
- hum:TakeDamage(math.random(1, 5))
- hit.fire:Destroy()
- end
- end
- if not hum then
- for i = 1, 20, 1 do
- local clone = part:Clone()
- clone.Parent = workspace
- clone.Size = Vector3.new(math.random(1.25, 2.75))
- clone.CFrame = part.CFrame
- if clone:FindFirstChildOfClass("BodyVelocity") then
- clone:FindFirstChildOfClass("BodyVelocity"):Destroy()
- end
- local vel = Instance.new("BodyVelocity")
- vel.Parent = clone
- vel.Velocity = Vector3.new(math.random(-45, 45), math.random(-45, 45), math.random(-45, 45))
- game.Debris:AddItem(vel, .5)
- end
- part:Destroy()
- end
- end)
- if character:FindFirstChild("Humanoid").Health <= 0 then
- part:Destroy()
- end
- game.Debris:AddItem(part, 1.5)
- wait(.5)
- wait(cool2 + .5)
- canuse1 = true
- end
- end
- if input.KeyCode == Enum.KeyCode.X then
- if canuse2 == true then
- canuse2 = false
- for i = 1, 60 do
- local part = part:Clone()
- part.Parent = workspace
- part.CFrame = player.Character:FindFirstChild("UpperTorso").CFrame * CFrame.new(math.random(-28, 28), math.random(70, 80), math.random(-28, 28))
- part.Size = Vector3.new(math.random(7, 13))
- part.Touched:connect(function(hit)
- local hum = hit.Parent:FindFirstChild("Humanoid")
- local humName = hit.Parent.Name
- if hum then
- if humName ~= name then
- hum:TakeDamage(1.5)
- part:Destroy()
- wait(.5)
- hum:TakeDamage(math.random(.25, .5))
- wait(.5)
- hum:TakeDamage(math.random(.25, .5))
- wait(.5)
- hum:TakeDamage(math.random(.25, .5))
- end
- end
- if not hum then
- if hit.Name ~= "FireBall" then
- for i = 1, 5, 1 do
- local clone = part:Clone()
- clone.Parent = workspace
- clone.Size = Vector3.new(math.random(1, 2.5))
- clone.CFrame = part.CFrame
- if clone:FindFirstChildOfClass("BodyVelocity") then
- clone:FindFirstChildOfClass("BodyVelocity"):Destroy()
- end
- local vel = Instance.new("BodyVelocity")
- vel.Parent = clone
- vel.Velocity = Vector3.new(math.random(-45, 45), math.random(-45, 45), math.random(-45, 45))
- game.Debris:AddItem(vel, .5)
- end
- part:Destroy()
- end
- end
- end)
- wait(.001)
- end
- wait(cool4)
- canuse2 = true
- end
- end
- if input.KeyCode == Enum.KeyCode.C then
- if canuse3 == true then
- canuse3 = false
- local part = part:Clone()
- part.Parent = workspace
- part.Shape = "Cylinder"
- part.Anchored = true
- part.Position = character:FindFirstChild("HumanoidRootPart").Position + Vector3.new(0, 200, 0)
- part.Orientation = Vector3.new(0, 0, 90)
- part.Size = Vector3.new(30, 150, 30)
- wait(.01)
- part.Anchored = false
- part.Touched:connect(function(hit)
- local hum = hit.Parent:FindFirstChild("Humanoid")
- local humName = hit.Parent.Name
- if hum then
- if humName ~= name then
- hum:TakeDamage(2)
- end
- end
- end)
- wait(cool4)
- canuse3 = true
- end
- end
- if input.KeyCode == Enum.KeyCode.V then
- if canuse4 == true then
- canuse4 = false
- for i = 1, 50 do
- local part = part:Clone()
- part.Parent = workspace
- part.CFrame = player.Character:FindFirstChild("UpperTorso").CFrame * CFrame.new(math.random(-9, 9), math.random(-2, 2), math.random(-6, 6))
- part.Size = Vector3.new(math.random(4, 10))
- local vel = Instance.new("BodyVelocity")
- vel.Parent = part
- vel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- vel.Velocity = Mouse.hit.lookVector * 210
- part.Touched:connect(function(hit)
- local hum = hit.Parent:FindFirstChild("Humanoid")
- local humName = hit.Parent.Name
- if hum then
- if humName ~= name then
- hum:TakeDamage(1.25)
- part:Destroy()
- wait(.5)
- hum:TakeDamage(math.random(.5, .75))
- wait(.5)
- hum:TakeDamage(math.random(.5, .75))
- wait(.5)
- hum:TakeDamage(math.random(.5, .75))
- end
- end
- if not hum then
- if hit.Name ~= "FireBall" then
- for i = 1, 10, 1 do
- local clone = part:Clone()
- clone.Parent = workspace
- clone.Size = Vector3.new(math.random(1, 2.5))
- clone.CFrame = part.CFrame
- if clone:FindFirstChildOfClass("BodyVelocity") then
- clone:FindFirstChildOfClass("BodyVelocity"):Destroy()
- end
- local vel = Instance.new("BodyVelocity")
- vel.Parent = clone
- vel.Velocity = Vector3.new(math.random(-45, 45), math.random(-45, 45), math.random(-45, 45))
- game.Debris:AddItem(vel, .5)
- end
- part:Destroy()
- end
- end
- end)
- if character:FindFirstChild("Humanoid").Health <= 0 then
- part:Destroy()
- break
- end
- wait()
- game.Debris:AddItem(part, 2)
- end
- wait(cool4 + .5)
- canuse4 = true
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement