for m,t in pairs(script.Parent.PS.bu:GetChildren())do local l=math.abs(t.inf.Value.Y)==1 and 1 or 2 local e,N=t.Position.X.Offset+t.inf.Value.X*l,t.Position.Y.Offset+t.inf.Value.Y if N<0 then N=0 t.inf.Value=Vector3.new(t.inf.Value.X,-t.inf.Value.Y)end if N>36 then N=36 t.inf.Value=Vector3.new(t.inf.Value.X,-t.inf.Value.Y)end t.Position=UDim2.new(0,e,0,N)if e>75 then t:Destroy()end if e<1 then t:Destroy()end if col(t,script.Parent.PS.ca)then t:Destroy()end if t and(t.Parent and(t.inf.Value.X==1 and col(t,script.Parent.PS.p2)))then t:Destroy()if s2==0 then s2=1 sc1=sc1+1 rest()end end if t and(t.Parent and(t.inf.Value.X==-1 and col(t,script.Parent.PS.p1)))then t: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