stunSound:Play()local y=TweenInfo.new(script.Parent.Time.Value,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0)local s=TweenService:Create(stunSound,TweenInfo.new(script.Parent.Time.Value),{Volume=stunSound.Volume*2})s:Play()local N=TweenService:Create(guiMain,y,{Brightness=0})N:Play()spawn(function()wait(script.Parent.Time.Value)local y=TweenService:Create(stunSound,TweenInfo.new(.5),{Volume=0})y:Play()end)wait(script.Parent.Time.Value+.5)
--stunSound.Volume = 1/(script.Parent.Dist.Value*script.Parent.Dist.Value)
stunSound:Play()

local tweenInfo = TweenInfo.new(
	script.Parent.Time.Value, -- Time
	Enum.EasingStyle.Linear, -- EasingStyle
	Enum.EasingDirection.InOut, -- EasingDirection
	0, -- RepeatCount (when less than zero the tween will loop indefinitely)
	false, -- Reverses (tween will reverse once reaching it's goal)
	0 -- DelayTime
)

local tween0 =
	TweenService:Create(stunSound, TweenInfo.new(script.Parent.Time.Value), { Volume = stunSound.Volume * 2 })
tween0:Play()

local tween = TweenService:Create(guiMain, tweenInfo, { Brightness = 0 })
tween:Play()

spawn(function()
	wait(script.Parent.Time.Value)

	local tween = TweenService:Create(stunSound, TweenInfo.new(0.5), { Volume = 0 })
	tween:Play()
end)

wait(script.Parent.Time.Value + 0.5)
