#Using variables across scripts

1 messages · Page 1 of 1 (latest)

sturdy garden
#

hi, I'm really new to coding in roblox but need some help/ advice with using variables across scripts. The end goal for me is a way to calculate a value in one script and use it in another ^-^

rough night
#

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.

sturdy garden
lapis sedgeBOT
#

studio** You are now Level 1! **studio