Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Where should I put intvalue and stringvalue of the server?

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

1 comment

0

replicated storage

2 answers

✓ Accepted answer

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.

1 comment

0

A LocalScript Can access the replicated storage? It would help me a lot, but the most important thing is that the values are not from the client, but from the server.

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.