-- 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 l__Parent__8 = p2.Parent;
	local v9 = game.ReplicatedStorage.KillFX.Ghost.Ghost:Clone();
	v9.Name = "Ghost" .. l__Parent__8.Name;
	v9.Parent = workspace.Ignored.Animations;
	v9.PrimaryPart.CFrame = CFrame.new(l__Parent__8.LowerTorso.Position) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(math.random(-360, 360)), 0);
	v9:WaitForChild("Humanoid"):ApplyDescription((game.Players:GetHumanoidDescriptionFromUserId(game.Players:WaitForChild(l__Parent__8.Name).UserId)));
	game.Debris:AddItem(v9, 4);
	v9.HumanoidRootPart.Attachment.RingRelease.Enabled = false;
	task.delay(0, function()
		local u1 = nil;
		u1 = game["Run Service"].Stepped:Connect(function()
			if v9.Parent == nil then
				u1:Disconnect();
				return;
			end;
			for v10, v11 in pairs(v9:GetChildren()) do
				if v11:IsA("BasePart") or v11:IsA("MeshPart") then
					v11.CanCollide = false;
				end;
			end;
		end);
		for v12, v13 in pairs(v9:GetChildren()) do
			if (v13:IsA("BasePart") or v13:IsA("Decal")) and (v13.Transparency == 1 or v13.Transparency == 0) then
				game.TweenService:Create(v13, TweenInfo.new(0.5, Enum.EasingStyle.Quart), {
					Transparency = 0.5
				}):Play();
			end;
		end;
	end);
	local v14 = v9.Humanoid:LoadAnimation(v9.Animation);
	v14:Play();
	for v15, v16 in pairs(l__Parent__8.Humanoid:GetChildren()) do
		if v9.Humanoid:FindFirstChild(v16.Name) and v16:IsA("ValueBase") then
			v9.Humanoid[v16.Name].Value = v16.Value;
		end;
	end;
	v9.UpperTorso.Ar:Play();
	local u2 = nil;
	u2 = v14:GetMarkerReachedSignal("Start"):Connect(function()
		for v17, v18 in pairs(v9:GetDescendants()) do
			if v18:IsA("BasePart") or v18:IsA("Decal") then
				game.TweenService:Create(v18, TweenInfo.new(1.5), {
					Transparency = 1
				}):Play();
			end;
		end;
		v9.UpperTorso.Sound:Play();
		u2:Disconnect();
	end);
	return nil;
end;
return v1;

