One remote for each player or one for all?


  • I have tools. Currently I have a folder with remotes inside of them, and another folder with a Script and LocalScript inside it. I do this for accessibility reasons.

    -- Tool
        -- Remote Folder
            -- Remotes
        -- Script Folder
            -- Script
            -- LocalScript
        -- Handle
        -- Other parts 
    

    But I was wondering if I should have the remotes in ReplicatedStorage instead, so players don't get their own remotes and it's only one, and for the server I can send the tool for the server to work with, e.g

    RemoteEvent.OnServerEvent:Connect(function(client, tool, ...)
    
        -- I do stuff
    
    end)
    
    RemoteFunction.OnServerInvoke = function(client, tool, ...)
    
        -- I do stuff 
    
    end
    

    Tree

    -- ReplicatedStorage
        -- Remote Folder
            -- Remotes
    

    So which is the best way? Should I continue doing my method of having the remotes in each tool? Or one remote for all?


  • @incapaz

    I think It'll be much easier and cleaner by doing it that way. Roblox-made tools like that sword I'm pretty sure you know about that is listed in the free models uses that system (The sword has some deprecation problems but nothing important).


  • @Aimarekin 👍

  • Global Moderator

    Ultimately it doesn't matter. It will all work the same.


  • This post is deleted!

  • @Link150 Would it be better that one remote is fired / invoked by tons of players or tons of players firing / invoking their own remote?


  • @incapaz Opt for maintainability.

Log in to reply
 

Looks like your connection to Scripting Helpers was lost, please wait while we try to reconnect.