View difference between Paste ID: 3byzGw3F and mpyqWEiz
SHOW: | | - or go back to the newest paste.
1
function e(p,y) 
2
	local gui = Instance.new("ScreenGui")
3
	gui.DisplayOrder = 0
4
	gui.ResetOnSpawn = false
5
	local sound = Instance.new("Sound",gui)
6
	sound.SoundId = "rbxassetid://165224484"
7
	sound.Volume = 0
8
	sound.Looped = true
9-
	local aaaa = Instance.new("DistortionSoundEffect",sound)
9+
10-
	aaaa.Level = 10
10+
11
	image.Size = UDim2.new(0,0,0,0)
12
	image.Position = UDim2.new(0.5,0,0.5,0)
13
	image.BackgroundTransparency = 1
14
	image.ImageColor3 = Color3.new(0,0,0)
15
	image.ZIndex = 100
16
	local background = Instance.new("Frame",gui)
17
	background.Size = UDim2.new(1,0,1,0)
18
	background.BackgroundColor3 = Color3.new()
19
	for _,v in pairs(game.Players:GetChildren()) do
20
		local gui2 = gui:Clone()
21
		local intense = 0
22
		local intense2 = 10
23
		gui2.Parent = v.PlayerGui
24
		gui2.Sound:Play()
25
		spawn(function()
26
			while wait(math.random() / 5) do
27
				gui2.Sound.Pitch = (math.random() * intense2) + 1.5
28
				gui2.Sound.Volume = intense * 6
29
			end
30
		end)
31
		spawn(function()
32
			while wait() do
33
				gui2.ImageLabel.ImageColor3 = Color3.fromHSV(math.random(),1,intense * (math.random() / 2))
34
				gui2.ImageLabel.Size = UDim2.new(0,intense * 800,0,intense * 800)
35
				gui2.ImageLabel.Position = UDim2.new(0.5,intense * -400,0.5,intense * -400)
36
			end
37
		end)
38
		spawn(function()
39
			intense = 1
40
			wait(0.2)
41
			--for i=1,30 do
42
			--	wait()
43
				--	intense = 1 - (i/30)
44
			--end
45
			--v:Kick("9840285")
46
		end)
47
		spawn(function()
48
			for i=0,300 do
49
				wait()
50
				intense2 = 10 - ((i/300) * 5.5)
51
			end
52
		end)
53
		if not y then
54
			spawn(function()
55
				wait(0.2)
56
				gui2:Destroy()
57
			end)
58
		else
59
			game.Debris:AddItem(gui2,20)
60
		end
61
	end
62
end
63
e(nil,true)