Where should intvalue, stringvalue be placed to be part of the server? I need to change its values constantly and return the values to put it in intvalue and local stringvalue
If your sharing the values with the Server & Client then place then in Replicated Storage. The only downside to this is that the client can change the values. On the other hand, if you only want the server to see the variables then place them in Server Storage.
I hope this helps. If it did consider marking this question as accepted.
I know this is used in other languages, but you could make getter/setter functions, and only allow the server to access both getter and setter functions while having the client only have access to getter functions.
Sorry if I am calling this the wrong thing in the context of lua, but I have not come across anyone using this method on roblox before.