return function(u,...)local r={...}if u=="\083\112\108\097\115\104"then local u=r[1]local m=r[2]local S=Vector3.new(u.X,m+1,u.Z)local H=Instance.new("\065\116\116\097\099\104\109\101\110\116")H.Parent=workspace.Terrain H.WorldPosition=S game.Debris:AddItem(H,5)debrisModule.Shockwave(S,3,13);(coroutine.wrap(function()for u,r in pairs(script.Splash:GetChildren())do if r:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then local u=r:Clone()u.Parent=H u:Emit(u:GetAttribute("\069\109\105\116\067\111\117\110\116"))end end end))()end end
-- FUNCTIONS --
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
