function SpawnPuddle(l,b,A)local L,K,a=Raycast(l,(CFrame.new(l,l-Vector3.new(0,1,0))).lookVector,12,b)if L then coroutine.resume(coroutine.create(function()local l=CreatePart(3,Effects,"\083\109\111\111\116\104\080\108\097\115\116\105\099",0,1,"\087\104\105\116\101","\071\111\114\101",VT(3,0,3),true)local b=script.Puddle:Clone()b.Parent=l if A==true then b.Image.ImageColor3=C3(1,1,1)end l.CFrame=CFrame.new(K,K+a)*CFrame.Angles(math.rad(-90),math.rad(math.random(0,360)),0)for b=1,math.random(25,65),1 do Swait()l.Size=l.Size+Vector3.new(.1,0,.1)end wait(math.random(10,25)/50)for l=1,25,1 do Swait()b.Image.ImageTransparency=b.Image.ImageTransparency+.04 end l:Remove()end))end end


function SpawnPuddle(POSITION,IGNR,GOO)
	local HIT,POS,NOR = Raycast(POSITION, CFrame.new(POSITION,POSITION-Vector3.new(0,1,0)).lookVector, 12, IGNR)
	if HIT then
		coroutine.resume(coroutine.create(function()
			local GOREPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "White", "Gore", VT(3,0,3), true)
			local SURFACE = script.Puddle:Clone()
			SURFACE.Parent = GOREPART
			if GOO == true then
				SURFACE.Image.ImageColor3 = C3(1,1,1)
			end
			GOREPART.CFrame = CFrame.new(POS,POS+NOR)*CFrame.Angles(math.rad(-90),math.rad(math.random(0,360)),0)
			for i = 1, math.random(25,65) do
				Swait()
				GOREPART.Size = GOREPART.Size + Vector3.new(0.1,0,0.1)
			end
			wait(math.random(10,25)/50)
			for i = 1, 25 do
				Swait()
				SURFACE.Image.ImageTransparency = SURFACE.Image.ImageTransparency + 1/25
			end
			GOREPART:Remove()
		end))
	end
end
