return function(A,...)local J={...}if A=="\083\112\108\097\115\104"then local A=J[1]local X=J[2]local o=Vector3.new(A.X,X+1,A.Z)local l=Instance.new("\065\116\116\097\099\104\109\101\110\116")l.Parent=workspace.Terrain l.WorldPosition=o game.Debris:AddItem(l,5)debrisModule.Shockwave(o,3,13);(coroutine.wrap(function()for A,J in pairs(script.Splash:GetChildren())do if J:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then local A=J:Clone()A.Parent=l A:Emit(A:GetAttribute("\069\109\105\116\067\111\117\110\116"))end end end))()end end

return function(Action, ...)
	local Args = {...}
	
	if Action == "Splash" then
		local TargetPosition = Args[1]
		local oceanHeight = Args[2]
		
		local splashPos = Vector3.new(TargetPosition.X, oceanHeight + 1, TargetPosition.Z)
		
		local splashAttachment = Instance.new("Attachment")
		splashAttachment.Parent = workspace.Terrain
		splashAttachment.WorldPosition = splashPos
		game.Debris:AddItem(splashAttachment, 5)
		
		debrisModule.Shockwave(splashPos, 3, 13)
		
		coroutine.wrap(function()
			for i, v in pairs(script.Splash:GetChildren()) do
				if v:IsA("ParticleEmitter") then
					local fx = v:Clone()
					fx.Parent = splashAttachment
					fx:Emit(fx:GetAttribute("EmitCount"))
				end
			end
		end)()
	end
end
