I keep on having an error with my code and I have no clue how to fix it

It should be two colons. If it is saying something like “UGameplayStatics is not a class or namespace name” then it means the compiler hasn’t seen that name before in this file – you may have forgotten to include the header for that class (GameplayStatics.h according to the docs).