func on_Hook_body_entered(body):
if body.is_in_group("surface"):
#Whatever you need to do.
queuefree()
else:
queuefree()
Their could be anything wrong but lets start.
1.Is the collision shape or the parent of the collision shape in the group?
--If so then you may need to do
if body.get_parent().is_in_group("surface"):
2. If it is a tilemap then make sure the tilemap is in a group.
--if it's not then nothing will make it work except adding it to a group.
if none of these work or are the problem then tell me.