Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local p = game.Players.LocalPlayer
- local char = p.Character
- local Torso = char.Torso
- local mouse = p:GetMouse()
- local Enabled = true
- mouse.KeyDown:connect(function(key)
- if key == "e" then
- local EnergyCircle = Instance.new("Part",workspace)
- EnergyCircle.Size = Vector3.new(0.2,0.2,0.2)
- EnergyCircle.CFrame = CFrame.new(Torso.Position + Vector3.new(math.random(-5, 5), math.random(7, 9), math.random(-5, 5)), mouse.Hit.p)
- EnergyCircle.Anchored = true
- EnergyCircle.CanCollide = false
- EnergyCircle.Transparency = 1
- local d1 = Instance.new("Decal",EnergyCircle)
- d1.Face = "Front"
- d1.Texture = "http://www.roblox.com/asset/?id=359972767"
- local d2 = Instance.new("Decal",EnergyCircle)
- d2.Face = "Back"
- d2.Texture = "http://www.roblox.com/asset/?id=359972767"
- for i = 1,6 do
- EnergyCircle.Size = EnergyCircle.Size + Vector3.new(0.8,0.8,0.2)
- wait()
- end
- local Shoot = Instance.new("Part",workspace)
- Shoot.Size = Vector3.new(3,3,3)
- Shoot.Material = "Neon"
- Shoot.Transparency = 0.1
- Shoot.CanCollide = false
- Shoot.BrickColor = BrickColor.new("Navy blue")
- Shoot.CFrame = EnergyCircle.CFrame * CFrame.new(0,0,-2)
- game.Debris:AddItem(EnergyCircle,0.1)
- Shoot.Touched:connect(function(hit)
- if hit.Parent.Name ~= char.Name and hit.Parent.Name ~= "DebrisExplo" then
- Shoot:Destroy()
- hit.Parent.Humanoid:TakeDamage(30)
- local Explosion = Instance.new("Part",workspace)
- Explosion.Anchored = true
- Explosion.CanCollide = false
- Explosion.BrickColor = BrickColor.new("Navy blue")
- Explosion.Size = Vector3.new(0.2,0.2,0.2)
- Explosion.Material = "Neon"
- Explosion.CFrame = Shoot.CFrame
- Explosion.Name = "DebrisExplo"
- Explosionmesh = Instance.new("BlockMesh",Explosion)
- Explosionmesh.Scale = Vector3.new(5,5,5)
- for Scalement = 1,20 do
- Explosion.Transparency = Explosion.Transparency + 0.05
- Explosionmesh.Scale = Explosionmesh.Scale + Vector3.new(10,10,10)
- Explosion.CFrame = Explosion.CFrame * CFrame.Angles(10,10,10)
- wait()
- end
- Explosion:Destroy()
- end
- end)
- for i = 1,50 do
- Shoot.CFrame = Shoot.CFrame * CFrame.new(0,0,-10)
- EnergyCircle.Size = EnergyCircle.Size - Vector3.new(0.2,0.2,0.2)
- d1.Transparency = d1.Transparency + 0.1
- d2.Transparency = d1.Transparency + 0.2
- wait()
- end
- Shoot:destroy()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement