How To Fire A FireServer() on another server sided script

please Help

Enter Bottom Text

You can’t really do that, best way would be to make a bindable event and make it do the same thing as the remote event

1 Like

I’d personally consider modularizing your scripts via ModuleScripts. It’s much more organized and allows for communication between various components.

However, if you simply can’t solve the problem using modularization, a BindableEvent is a plausible last resort as @zhenjie2003 mentioned. I usually don’t promote the usage of BindableEvents too often because overuse can lead to disorganized, janky hierarchy.

can u make an example of using an module script please

Sure, here is an example:

Module script:
local module

module.something = {
[1] = “hello”,
[2] = “bye”,
}

return module

Server- or Local script:
local modulescript = workspace.ModuleScript
print(require(modulescript).something[1])
warn(require(modulescript).something[2])

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.