#Using variables across scripts
1 messages · Page 1 of 1 (latest)
Hey, I can help with that.
In Roblox, the usual way to share values between scripts is by using things like ModuleScripts or values stored in services like ReplicatedStorage or ServerStorage.
For example, you can calculate a value in one script, store it in a ModuleScript, and then require it in another script to access the same data.
Why not do it on the same script
module script
mainly for making it easier to read and a bit more optimized, didn't want a 300 line code
** You are now Level 1! **