Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Settings--
- local lp = game.Players.LocalPlayer
- local lpc = lp.Character
- local mouse = lp:GetMouse()
- local firing = false
- local equipped = false
- local speed = 12
- local max = 15
- local min = 5
- local orb = "e"
- local blast = "q"
- local attack = "nope"
- local debris = Instance.new("Folder", game.Workspace)
- debris.Name = lp.Name.."_Debris"
- --End Settings--
- --Orbs
- function Orbs()
- lpc.Humanoid.WalkSpeed = 0
- if debris:FindFirstChild("Holdster") then
- debris.Holdster:Destroy()
- end
- cyl = Instance.new("Part", debris)
- cyl.Name = "Holdster"
- cyl.Size = Vector3.new(5,0.2,7)
- cyl.CanCollide = false
- cyl.Position = lpc.Torso.Position
- mesh = Instance.new("CylinderMesh", cyl)
- mesh.Offset = Vector3.new(0,0,0)
- mesh.Scale = Vector3.new(0.1,0.1,0.1)
- local weld = Instance.new("ManualWeld", cyl)
- weld.Part0 = cyl
- weld.Part1 = lpc.Torso
- weld.C0 = CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
- for i = 1, 20 do
- wait(0.03)
- mesh.Scale = mesh.Scale+Vector3.new(0.05,0.05,0.05)
- end
- CreateParts()
- end
- function CreateParts()
- for i = 1, 100 do
- wait(0.08)
- local part = Instance.new("Part", debris)
- part.Name = "Fired"
- part.BottomSurface = "Smooth"
- part.TopSurface = "Smooth"
- part.Size = Vector3.new(0.5,0.5,0.5)
- part.CanCollide = false
- part.Position = Vector3.new(cyl.Position.X+math.random(-1.5,1.5),cyl.Position.Y+math.random(-1.5,1.5),cyl.Position.Z+math.random(-1.5,1.5))
- local push = Instance.new("BodyVelocity", part)
- push.Velocity = lpc.Torso.CFrame.lookVector*speed
- push.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- part.Touched:connect(function(hit)
- part:Destroy()
- if hit.Parent:FindFirstChild("Humanoid") then
- if hit.Parent.Name ~= game.Players.LocalPlayer.Name then
- hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health-math.random(min,max)
- end
- end
- end)
- end
- wait(5)
- for i = 1, 20 do
- wait(0.03)
- mesh.Scale = mesh.Scale-Vector3.new(0.05,0.05,0.05)
- end
- cyl:Destroy()
- for _,v in pairs(debris:GetChildren()) do
- v:Destroy()
- end
- lpc.Humanoid.WalkSpeed = 16
- firing = false
- end
- --End Orbs
- --Start Blasts
- function Blasts()
- local main = Instance.new("Part", debris)
- main.Shape = "Ball"
- main.CanCollide = false
- main.Position = lpc.Head.Position
- main.Size = Vector3.new(32,32,32)
- local weld = Instance.new("ManualWeld", debris)
- weld.Part0 = main
- weld.Part1 = lpc.Head
- weld.C0 = CFrame.new(0,-20,0)
- end
- --End Blasts
- --Start Ups--
- mouse.KeyDown:connect(function(key)
- if key == orb and not firing then
- firing = true
- attack = "orb"
- Orbs()
- elseif key == blast and not firing then
- firing = true
- attack = "blast"
- Blasts()
- end
- end)
- --End Start Ups--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement