-- FUNCTIONS --

return function(...)
	local Args = {...}


	local TargetPosition = Args[1]
	local fxPos = Vector3.new(TargetPosition.X, TargetPosition.Y - 1.5, TargetPosition.Z)

	local splashAttachment = Instance.new("Attachment")
	splashAttachment.Parent = workspace.Terrain
	splashAttachment.WorldPosition = fxPos
	game.Debris:AddItem(splashAttachment, 5)

	debrisModule.Shockwave(fxPos, 3, 13)

	coroutine.wrap(function()
		for i, v in pairs(script.FX:GetChildren()) do
			if v:IsA("ParticleEmitter") then
				local fx = v:Clone()
				fx.Parent = splashAttachment
				fx:Emit(fx:GetAttribute("EmitCount"))
			end
		end
	end)()

end
