Is there a way to make a global interactive function?

  1. What do you want to achieve?
    A function which I can add information to and can be accessed from anywhere in the game.

  2. What is the issue? Include screenshots / videos if possible!
    I want to add values to the function but cannot find a way to do so.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I checked the developer Hub for information on remote functions and events.

I’m making a chess game and basically I want to tell the function to make the CFrame of the chess board parts offset according to the CFrame of another part. If I want to do this, I have to tell the function it’s CFrame, however I can’t do this with RemoteEvents

You could have a module on the server that has the movement functions and stores the positions of pieces, and does all other game mechanics, then on the client move the pieces and make it look like as well as have it select the piece and spot to move it to.

Oh yeah. I could make a module script which calculates the CFrame of the part and then returns that and uses that for the script. Any other ideas?

Nothing else I can think of really.

Other than having the stuff stored in a module and then return the new position and have clients move it on their screen.

1 Like