The arrival of a groom at his wedding festivities naturally sets off a flurry of activity, and Samson's arrival immediately prompts the gathering of a local entourage to accompany him. There are different perspectives on exactly who spots Samson first as he makes his appearance. It is possible that the bride and her father are the ones who see him approaching right behind his own father [מצודת דוד]. Alternatively, it might be the Philistine in-laws who take notice of his arrival [ביאור שטיינזלץ]. Another approach suggests that the gathering companions themselves are the ones who see Samson, prompting them to flock to his side [רד״ק].
The formation of this group happens organically, as individuals take their friends and bring them along to join the gathering [רד״ק]. Ultimately, a group of thirty young men is assembled to serve as groomsmen [רש״י, מצודת ציון, ביאור שטיינזלץ]. Their role is to act as Samson's personal entourage throughout the festivities. They are there to keep him company, talk with him, lift his spirits, and fully participate in the joy of his wedding celebration [מצודת דוד, ביאור שטיינזלץ].