View difference between Paste ID: 5DT1Gnvd and WAGDuYRz
SHOW: | | - or go back to the newest paste.
1-
local p = game.Players.LocalPlayer
1+
local p = game.Players.timetodie23232223
2
local char = p.Character
3
local Torso = char.Torso
4
local mouse = p:GetMouse()
5
local Enabled = true
6
mouse.KeyDown:connect(function(key)
7
	if key == "e" then
8
		local EnergyCircle = Instance.new("Part",workspace)
9
		EnergyCircle.Size = Vector3.new(0.2,0.2,0.2)
10
		EnergyCircle.CFrame = CFrame.new(Torso.Position + Vector3.new(math.random(-5, 5), math.random(7, 9), math.random(-5, 5)), mouse.Hit.p)
11
		EnergyCircle.Anchored = true
12
		EnergyCircle.CanCollide = false
13
		EnergyCircle.Transparency = 1
14
		local d1 = Instance.new("Decal",EnergyCircle)
15
		d1.Face = "Front"
16
		d1.Texture = "http://www.roblox.com/asset/?id=359972767"
17
		local d2 = Instance.new("Decal",EnergyCircle)
18
		d2.Face = "Back"
19
		d2.Texture = "http://www.roblox.com/asset/?id=359972767"
20
		for i = 1,6 do
21
			EnergyCircle.Size = EnergyCircle.Size + Vector3.new(0.8,0.8,0.2)
22
			wait()
23
		end
24
		local Shoot = Instance.new("Part",workspace)
25
		Shoot.Size = Vector3.new(3,3,3)
26
		Shoot.Material = "Neon"
27
		Shoot.Transparency = 0.1
28
		Shoot.CanCollide = false
29
		Shoot.BrickColor = BrickColor.new("Navy blue")
30
		Shoot.CFrame = EnergyCircle.CFrame * CFrame.new(0,0,-2)
31
		game.Debris:AddItem(EnergyCircle,0.1)
32
		Shoot.Touched:connect(function(hit)
33
			if hit.Parent.Name ~= char.Name and hit.Parent.Name ~= "DebrisExplo" then
34
				Shoot:Destroy()
35
				hit.Parent.Humanoid:TakeDamage(30)
36
				local Explosion = Instance.new("Part",workspace)
37
				Explosion.Anchored = true
38
				Explosion.CanCollide = false
39
				Explosion.BrickColor = BrickColor.new("Navy blue")
40
				Explosion.Size = Vector3.new(0.2,0.2,0.2)
41
				Explosion.Material = "Neon"
42
				Explosion.CFrame = Shoot.CFrame
43
				Explosion.Name = "DebrisExplo"
44
				Explosionmesh = Instance.new("BlockMesh",Explosion)
45
				Explosionmesh.Scale = Vector3.new(5,5,5)
46
				for Scalement = 1,20 do
47
					Explosion.Transparency = Explosion.Transparency + 0.05
48
					Explosionmesh.Scale = Explosionmesh.Scale + Vector3.new(10,10,10)
49
					Explosion.CFrame = Explosion.CFrame * CFrame.Angles(10,10,10)
50
					wait()
51
				end
52
				Explosion:Destroy()
53
			end
54
		end)
55
		for i = 1,50 do
56
			Shoot.CFrame = Shoot.CFrame * CFrame.new(0,0,-10)
57
			EnergyCircle.Size = EnergyCircle.Size - Vector3.new(0.2,0.2,0.2)
58
			d1.Transparency = d1.Transparency + 0.1
59
			d2.Transparency = d1.Transparency + 0.2
60
			wait()
61
		end
62
		Shoot:destroy()
63
	end
64
end)