How can one script view/communicate with another script?

What I would like to do is store a couple of lists in a server script, then have a local script that reads the data in the lists for it’s own use.

The problem is, I haven’t the faintest idea how to do this.

I would appreciate if someone could show me what I would do.

You would need to use either RemoteEvents or RemoteFunctions to do this.

If the list isn’t private, you could also use a ModuleScript containing the data and put it inside of ReplicatedStorage.

Thank you, it looks like a Remote Event is what I need.
Also, what do you mean by private?

1 Like

Like data that isn’t jeopardizing to your game if other clients can read it. I can’t really think of a good word, sorry.

Changes to ModuleScripts made by server scripts will not replicate across the client-server boundary. RemoteEvents are the way to go here.

2 Likes

I was saying that if the list wasn’t dynamic and just static.

2 Likes