--print('stun starting')


if script.Parent.Parent.Parent.CurrentCamera:FindFirstChild("Stun") then
	script.Parent.Parent.Parent.CurrentCamera:FindFirstChild("Stun"):Destroy()
end

local guiMain = Instance.new("ColorCorrectionEffect") 
guiMain.Parent = script.Parent.Parent.Parent.CurrentCamera 
guiMain.Brightness = script.Parent:WaitForChild("Brightness").Value
guiMain.Name = "Stun"

local stunSound = script["stun"..math.random(1, #script:GetChildren())]:Clone()
stunSound.Parent = script