-----------------------
------

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