-- Decompiled with the Synapse X Luau decompiler.


local v1 = {};
local l__ReplicatedStorage__2 = game.ReplicatedStorage;
local v3 = require(game.ReplicatedStorage.Modules.Lightning);
local v4 = require(game.ReplicatedStorage.Modules.Xeno);
local v5 = require(game.ReplicatedStorage.Modules.CameraShaker);
local l__TweenService__6 = game.TweenService;
local l__Debris__7 = game.Debris;
function v1.RunStompFx(p1, p2, p3, p4)
	local v8 = game.ReplicatedStorage.KillFX.Sero.Cero:Clone();
	v8.PrimaryPart.CFrame = CFrame.new(p2.CFrame.p) * CFrame.new(math.random(-25, 25), math.random(7, 15), math.random(-25, 25));
	v8.PrimaryPart.CFrame = CFrame.lookAt(v8.PrimaryPart.CFrame.p, p2.Position + CFrame.new(0, 5, 0).Position);
	v8.Parent = workspace.Ignored.Animations;
	for v9, v10 in pairs(v8:GetChildren()) do
		if v10:IsA("BasePart") and v10.Name ~= "HumanoidRootPart" then
			game.TweenService:Create(v10, TweenInfo.new(0.7, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {
				Transparency = 0
			}):Play();
		end;
	end;
	game.Debris:AddItem(v8, 3);
	v8.gg:Play();
	local v11 = v8.AnimationController:LoadAnimation(v8.Animation);
	v11:Play();
	v11:AdjustSpeed(0.7);
	v11:GetMarkerReachedSignal("Blast"):Connect(function()
		v8.ar:Play();
		v11:AdjustSpeed(1.3);
		local v12 = game.ReplicatedStorage.KillFX.Sero.Beam:Clone();
		local l__Magnitude__13 = (p2.Position - v8.Head.Attachment.WorldPosition).Magnitude;
		v12.Parent = v8;
		v12.CFrame = CFrame.lookAt(v8.Head.Attachment.WorldPosition, p2.Position) * CFrame.new(0, 0, -l__Magnitude__13 / 2) * CFrame.Angles(1.5707963267948966, 0, 0);
		task.delay(0.1, function()
			for v14, v15 in pairs(p2.Parent:GetDescendants()) do
				if v15:IsA("BasePart") then
					v15.Transparency = 1;
				end;
			end;
			v12.Sound:Play();
			local v16 = game.ReplicatedStorage.KillFX.Sero.Particle:Clone();
			local v17 = Instance.new("Attachment", p2);
			v16.Parent = p2;
			for v18, v19 in pairs(v16:GetChildren()) do
				v19.Enabled = true;
				v19.Parent = v17;
			end;
			task.wait(0.25);
			for v20, v21 in pairs(v17:GetChildren()) do
				v21.Enabled = false;
			end;
		end);
		task.delay(0, function()
			game.TweenService:Create(v12, TweenInfo.new(0.4, Enum.EasingStyle.Bounce), {
				Transparency = 0.5, 
				Size = Vector3.new(7, l__Magnitude__13 + 15, 7)
			}):Play();
			while true do
				v12.Attachment.Position = Vector3.new(0, v12.Size.Y / 2, 0);
				v12.Attachment1.Position = Vector3.new(0, -v12.Size.Y / 2, 0);
				v12.CFrame = CFrame.lookAt(v8.Head.Attachment.WorldPosition, p2.Position) * CFrame.new(0, 0, -l__Magnitude__13 / 2 - 10) * CFrame.Angles(1.5707963267948966, 0, 0);
				task.wait();
				if v8.Parent == nil then
					break;
				end;			
			end;
		end);
		v8.Sound:Play();
		task.delay(0.25, function()
			for v22, v23 in pairs(v8:GetChildren()) do
				if v23:IsA("BasePart") and v23.Name ~= "HumanoidRootPart" then
					game.TweenService:Create(v23, TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut), {
						Transparency = 1
					}):Play();
				end;
			end;
			task.wait(0.25);
			for v24, v25 in pairs(v12.Beam:GetChildren()) do
				v25.Enabled = false;
			end;
			game.TweenService:Create(v12, TweenInfo.new(0.5, Enum.EasingStyle.Quart), {
				Transparency = 0, 
				Size = Vector3.new(0, l__Magnitude__13 + 15, 0)
			}):Play();
		end);
	end);
	return nil;
end;
return v1;

