Save this post...
Nika and Joy Boy from 800 years ago were two of different people. One a liberator like Dragon and the other an adventurer like Roger.
Luffy inherited Joyboy's will and ate Nika's devil fruit.
The reason Joyboy was defeated in the past was because he did not cooperate with Nika or vice versa.