Back again talking about capabilities
I created a value attached to the player called 'Nentype' which is equal to 0 initially, the plan is to make it so that when the player loads into the game an event in run which changes 'Nentype' to a random number between 1 and 5 if it's currently set to 0, which will then save upon death/leaving the game, meaning it can't be changed and is set in place.
For some reason, whenever I run the client it loads up fine, but then upon initialization of my world it crashes at the last second and closes down!
My EventHandler;
I've rooted the cause down to being this section, though I'm not sure why it's causing issues... I thought that maybe it's because it's some kind of looping issue causing the crash, but who knows.
Crash Log: