weire Posted June 4, 2025 Share Posted June 4, 2025 if TheNet:GetIsServer() then dosomething(config_data, nil, true) else dosomething(config_data, nil, false) end I have this code in the top level of a lua file, and when enter the world, dosomething is run 6 times? why it's not simple 1 on server and 1 on client? is it run both on cave and master? even so, it's only 4 times Link to comment https://forums.kleientertainment.com/forums/topic/166132-why-code-in-top-level-got-run-6-times/ Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now