for b,W in pairs(script.Parent.PS.bu:GetChildren())do local s=math.abs(W.inf.Value.Y)==1 and 1 or 2 local D,j=W.Position.X.Offset+W.inf.Value.X*s,W.Position.Y.Offset+W.inf.Value.Y if j<0 then j=0 W.inf.Value=Vector3.new(W.inf.Value.X,-W.inf.Value.Y)end if j>36 then j=36 W.inf.Value=Vector3.new(W.inf.Value.X,-W.inf.Value.Y)end W.Position=UDim2.new(0,D,0,j)if D>75 then W:Destroy()end if D<1 then W:Destroy()end if col(W,script.Parent.PS.ca)then W:Destroy()end if W and(W.Parent and(W.inf.Value.X==1 and col(W,script.Parent.PS.p2)))then W:Destroy()if s2==0 then s2=1 sc1=sc1+1 rest()end end if W and(W.Parent and(W.inf.Value.X==-1 and col(W,script.Parent.PS.p1)))then W:Destroy()if s1==0 then s1=1 sc2=sc2+1 rest()end end end
-----------------------
------
for _, v in pairs(script.Parent.PS.bu:GetChildren()) do
	local dx = math.abs(v.inf.Value.Y) == 1 and 1 or 2
	local x, y = v.Position.X.Offset + v.inf.Value.X * dx, v.Position.Y.Offset + v.inf.Value.Y
	if y < 0 then
		y = 0
		v.inf.Value = Vector3.new(v.inf.Value.X, -v.inf.Value.Y)
	end
	if y > 36 then
		y = 36
		v.inf.Value = Vector3.new(v.inf.Value.X, -v.inf.Value.Y)
	end
	v.Position = UDim2.new(0, x, 0, y)
	if x > 75 then
		v:Destroy()
	end
	if x < 1 then
		v:Destroy()
	end
	if col(v, script.Parent.PS.ca) then
		v:Destroy()
	end
	if v and v.Parent and v.inf.Value.X == 1 and col(v, script.Parent.PS.p2) then
		v:Destroy()
		if s2 == 0 then
			s2 = 1
			sc1 = sc1 + 1
			rest()
		end
	end

	if v and v.Parent and v.inf.Value.X == -1 and col(v, script.Parent.PS.p1) then
		v:Destroy()
		if s1 == 0 then
			s1 = 1
			sc2 = sc2 + 1
			rest()
		end
	end
end
