Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Simple attack tests--
- -- By Axelpuff --
- --Variables--
- local UIS = game:GetService("UserInputService")
- local Player = game.Players.LocalPlayer
- local Mouse = Player:GetMouse()
- local Character = Player.Character
- local Humanoid = Character.Humanoid
- local AbuseMode = false
- local Torso = Character.Torso
- local Tool = Instance.new("Tool")
- Tool.Name = "Maaaagic"
- Tool.RequiresHandle = false
- Tool.Parent = Player.Backpack
- --Functions--
- local function NewPillar(Color,Width)
- local Thing = Instance.new("Part")
- Thing.Shape = "Cylinder"
- Thing.Material = "Neon"
- Thing.BrickColor = BrickColor.new(Color)
- Thing.Size = Vector3.new(5000,Width,Width)
- Thing.CanCollide = false
- Thing.Orientation = Vector3.new(0,0,90)
- return(Thing)
- end
- --Abuse Mode--
- UIS.InputBegan:connect(function(input)
- if input.KeyCode == Enum.KeyCode.X then
- if Tool.Parent == Character then
- AbuseMode = true
- Humanoid.Name = "LOLyouidiot"
- print("Abuse on!")
- end
- end
- if input.KeyCode == Enum.KeyCode.C then
- if Tool.Parent == Character then
- AbuseMode = false
- Humanoid.Name = "Humanoid"
- print("Abuse off!")
- end
- end
- end)
- --Attacks--
- --Sky Pillar--
- UIS.InputBegan:connect(function(input)
- if input.KeyCode == Enum.KeyCode.Q then
- if Tool.Parent == Character then
- local pos = Mouse.Hit.p
- local Pillar = NewPillar("Really red",1)
- Pillar.Parent = workspace
- Pillar.Position = pos
- Pillar.Anchored = true
- wait(0.3)
- for i=1,10,1 do
- Pillar.Size = Pillar.Size+Vector3.new(0,8,8)
- Pillar.Transparency = Pillar.Transparency+0.1
- Pillar.Touched:connect(function(part)
- if part.Parent.ClassName ~= "Accessory" and part.Parent.ClassName ~= "Workspace" and part.Parent ~= Character then
- local Hum = part.Parent.Humanoid
- if Hum then
- if AbuseMode == false then
- Hum:TakeDamage(10)
- else
- part.Parent:Destroy()
- end
- end
- end
- end)
- wait(0.01)
- end
- Pillar:Destroy()
- end
- end
- end)
- --Teleport--
- UIS.InputBegan:connect(function(input)
- if input.KeyCode == Enum.KeyCode.E then
- if Tool.Parent == Character then
- local pos = Mouse.Hit
- local Pillar1 = NewPillar("Really red", 1)
- local Pillar2 = NewPillar("Really red", 1)
- Pillar1.Parent = workspace
- Pillar1.Position = Torso.Position
- Pillar1.Anchored = true
- Pillar2.Parent = workspace
- Pillar2.Position = pos.p
- Pillar2.Anchored = true
- for i =1,9,1 do
- Pillar1.Size = Pillar1.Size+Vector3.new(0,1,1)
- Pillar2.Size = Pillar1.Size
- wait(0.01)
- end
- Torso.CFrame = pos+Vector3.new(0,3,0)
- for i =1,10,1 do
- Pillar1.Size = Pillar1.Size+Vector3.new(0,-1,-1)
- Pillar2.Size = Pillar1.Size
- Pillar1.Transparency = Pillar1.Transparency+0.1
- Pillar2.Transparency = Pillar1.Transparency
- wait(0.01)
- end
- Pillar1:Destroy()
- Pillar2:Destroy()
- end
- end
- end)
- --Orb Throw--
- UIS.InputBegan:connect(function(input)
- if input.KeyCode == Enum.KeyCode.R then
- if Tool.Parent == Character then
- local Orb = Instance.new("Part")
- Orb.Shape = "Ball"
- Orb.Material = "Neon"
- Orb.BrickColor = BrickColor.new("Really red")
- Orb.Size = Vector3.new(1,1,1)
- Orb.CanCollide = false
- local PWalk = Humanoid.WalkSpeed
- Humanoid.WalkSpeed = 0
- local PJump = Humanoid.JumpPower
- Humanoid.JumpPower = 0
- Torso.Anchored = true
- Orb.Parent = workspace
- Orb.CFrame = Character.HumanoidRootPart.CFrame*CFrame.new(0,10,0)
- Orb.Anchored = true
- for i=1,9,1 do
- Orb.Size = Orb.Size+Vector3.new(1,1,1)
- wait(0.01)
- end
- wait(0.2)
- Orb.CFrame = CFrame.new(Orb.Position,Orb.Position+Vector3.new(0,500,0))
- local V = Instance.new("BodyVelocity")
- V.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- V.Velocity = Orb.CFrame.lookVector*1000
- V.Parent = Orb
- Orb.Anchored = false
- Torso.Anchored = false
- Humanoid.WalkSpeed = PWalk
- Humanoid.JumpPower = PJump
- wait(0.5)
- local MHit = Mouse.Hit
- Orb.Position = MHit.p+Vector3.new(0,500,0)
- Orb.Anchored = true
- Orb.CFrame = CFrame.new(Orb.Position, MHit.p)
- V.Velocity = Orb.CFrame.lookVector*1000
- Orb.Anchored = false
- wait(0.485)
- local OrbS = Orb.Size
- Orb:Destroy()
- local Boom = Instance.new("Part")
- Boom.Shape = "Ball"
- Boom.Material = "Neon"
- Boom.BrickColor = BrickColor.new("Really red")
- Boom.Size = OrbS*5
- Boom.CanCollide = false
- Torso.CFrame = MHit+Vector3.new(0,3,0)
- Boom.Parent = workspace
- Boom.CFrame = MHit
- Boom.Anchored = true
- Boom.Touched:connect(function(part)
- if part.Parent.ClassName ~= "Accessory" and part.Parent.ClassName ~= "Workspace" and part.Parent ~= Character then
- local Hum = part.Parent.Humanoid
- if Hum then
- Hum:TakeDamage(10)
- end
- end
- end)
- local Ring1 = Instance.new("Part")
- Ring1.BrickColor = BrickColor.new("Really red")
- Ring1.Material = "Neon"
- local RingMesh1 = Instance.new("SpecialMesh")
- RingMesh1.MeshId = "rbxassetid://9982590"
- RingMesh1.Parent = Ring1
- RingMesh1.Scale = Vector3.new(10,10,10)
- Ring1.CanCollide = false
- Ring1.Parent = workspace
- Ring1.CFrame = Boom.CFrame
- local BV = Instance.new("BodyVelocity")
- BV.Velocity = Vector3.new(0,0,0)
- BV.Parent = Ring1
- Ring1.RotVelocity = Vector3.new(10,0,0)
- for i =1,10,1 do
- Boom.Size = Boom.Size+Vector3.new(10,10,10)
- RingMesh1.Scale = RingMesh1.Scale+Vector3.new(4,4,4)
- Boom.Transparency = Boom.Transparency+0.1
- Ring1.Transparency = Boom.Transparency
- wait(0.02)
- end
- Boom:Destroy()
- Ring1:Destroy()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement