Get function error in UI blueprint

I create some UI with slider to change sensitivity mouse and others but when I take function “Get Controller” come this error “Error This blueprint (self) is not a GameplayPlayerController_C, therefore ’ Target ’ must have a connection.”

How can I fix this?

Try using a Get Player Pawn and connect that to the Get Controller. You’re getting the error because the widget BP isn’t a/the controller BP.