UGameplayStatics is not a class or namespace name error?!

It would be useful if you could include your full header and cpp file including ‘include statements’. Are you sure you have included all relevant classes?