when using this framework in a large game makes it very laggy because of the updatestate function. Its sending the remote to all the scripts that use it
I just encountered two bugs with this: 1. In PlayerDataService in the Start remote event call, “state” is always set to nil, which can never fire the “SetState” event to the client. I just put the code in a while loop to keep trying to get the state. (Idk if theres a better way of doing this, I’m new to scripting) 2. In StarterPlayer under Controllers, StateController, the GetState() function always returns nil. I’m not sure why it’s not returning the players state like it’s supposed to, so any way of resolving this would be appreciated. Loving the framework so far though, it’s been super helpful for organization and development. 🙏
I think I may have resolved the issue, not sure if its a good solution or not though. All I did was move both client events outside of the OnStart() function.
when using this framework in a large game makes it very laggy because of the updatestate function. Its sending the remote to all the scripts that use it
@MonzterDEV ?
u are the goat bro i love ur videos
Interesting video this seems to be very different to how you would save player data in your simulator series as this version seems to be more modular.
this is amazing! well done
Are you planning to make a modren tycoon tutorial ?
And i love your videos ❤
Hi i ❤ ur vids
Can you make a series on how to make a game like PSX or PS99!
I just encountered two bugs with this:
1. In PlayerDataService in the Start remote event call, “state” is always set to nil, which can never fire the “SetState” event to the client. I just put the code in a while loop to keep trying to get the state. (Idk if theres a better way of doing this, I’m new to scripting)
2. In StarterPlayer under Controllers, StateController, the GetState() function always returns nil. I’m not sure why it’s not returning the players state like it’s supposed to, so any way of resolving this would be appreciated.
Loving the framework so far though, it’s been super helpful for organization and development. 🙏
I think I may have resolved the issue, not sure if its a good solution or not though. All I did was move both client events outside of the OnStart() function.
Second
First plz pin