View difference between Paste ID: eenmAfYS and VwDRFAga
SHOW: | | - or go back to the newest paste.
1
2
--target = "BNutty07"
3-
--target = "RomanGuy"
3+
4
5
human = workspace[target]
6
function Lightning(pos,pos2,radius,numParts,model)
7
	radius = radius or 0.2
8
	numParts = numParts or 10
9
	model = model or workspace
10
	local lv = CFrame.new(pos,pos2).lookVector
11
	local dist = (pos-pos2).magnitude
12
	local dbp = dist/numParts
13
	local last = pos
14
	for i = 1,numParts do
15
		local p = Instance.new("Part",model)
16
		p.FormFactor = "Symmetric"
17
		p.Size = Vector3.new(1,1,1)
18
		p.CanCollide = false
19
		p.Anchored = true
20
		p.BrickColor = BrickColor.Yellow()
21
		local x = math.random(-100,100)/100*dbp/2
22
		local y = math.random(-100,100)/100*dbp/2
23
		local p2 = CFrame.new(pos+lv*(i*dbp),pos2+lv)*CFrame.new(x,y,0)
24
		local dist2 = (p2.p-last).magnitude
25
		local mid = (p2.p+last)/2
26
		local m = Instance.new("BlockMesh",p)
27
		m.Scale = Vector3.new(radius,radius,dist2)
28
		p.CFrame = CFrame.new(mid,p2.p)
29
		last = p2.p
30
		game:GetService("Debris"):AddItem(p, 0.5)
31
	end
32
end
33
wait(2)
34
human.Humanoid.WalkSpeed = 0
35
cloud = Instance.new("Part")
36
cloud.Size = Vector3.new(1,1,1)
37
cloud.Anchored = true
38
cloud.Position = human.Head.Position + Vector3.new(0,15,0)
39
cloud.CanCollide = false
40
cloud.BrickColor = BrickColor.new(199)
41
cloud.Transparency = 1
42
cloudmesh = Instance.new("SpecialMesh")
43
cloudmesh.Scale = Vector3.new(10,10,10)
44
cloudmesh.MeshType = Enum.MeshType.FileMesh
45
cloudmesh.MeshId = "rbxassetid://111820358"
46
cloudmesh.Parent = cloud
47
cloud.Parent = workspace
48
for i=1, 25 do
49
	print(i)
50
	cloud.Transparency = cloud.Transparency - 0.04
51
	wait()
52
end
53
wait(1)
54
Lightning(human.Head.Position, human.Head.Position + Vector3.new(0,15,0), 0.2, 20)
55
explode = Instance.new("Explosion")
56
explode.BlastPressure = 100000
57
explode.BlastRadius = 10
58
explode.Position = human.Head.Position
59
explode.Parent = workspace
60
oof = Instance.new("Sound")
61
oof.SoundId = "rbxasset://sounds/uuhhh.wav"
62
oof.PlaybackSpeed = 0.5
63
oof.Parent = human.Head
64
oof.Volume = 2
65
distort = Instance.new("DistortionSoundEffect")
66
distort.Level = 1
67
distort.Parent = oof
68
pitch = Instance.new("PitchShiftSoundEffect")
69
pitch.Octave = 2
70
pitch.Parent = oof
71
oof:Play()
72
wait(1)
73
for i=1, 50 do
74
	print(i)
75
	cloud.Transparency = cloud.Transparency + 0.05
76
	wait()
77
end
78
cloud:Destroy()