[Pathfinding] Cross-Players. See players from other servers and interact with them!

I have made this cross players which allows you to see players from other servers

(if it doesn’t work, message me and I’ll check it and fix it)

Here are all the assets explained:

  • “CrossPlayersContainer” - The container for all the avatars
  • “CrossPlayersSettings” - The settings you can easily edit (like disabling the cross chat feature)
  • “CrossPlayersSettings”.Avatar - The avatar the script will use, you shouldn’t worry about it unless you change the “LoadPlayerAvatar” to false
  • “CrossPlayersServer” - The script itself which handles all the things
  • “CrossPlayersClient” - For now this only does anything when “TextChatSystemMessageEnabled” is enabled.
  • “CrossPlayersTOOLS” - Used for tools, tutorial below!

Here is the link to the UNCOPYLOCKED place:

Link to a test place with a map (Hangout test place)

The pros and cons you should know about before using this.

Pros:

  • You can chat with other players in the other servers
  • Will go the path the player went
  • It is supported to have more players in one server at once.
  • Supports Emotes
  • SUPPORTS TOOLS!!!
  • It’s cool

Cons:

  • When a game has a lot of players, the delay will be much bigger and might even not pass.

TOOLS SETUP TUTORIAL:

  1. To set up tools, you have to clone your chosen tool to “CrossPlayersTOOLS” in ReplicatedStorage.

  2. Create a bindable event called “Use” and change the tools code to be ServerSide if it wasn’t already.

  3. Change the code of the tool from “tool.Activated” to “Use.Event”

  4. It should be ready to go! If it doesn’t work, look first if you enabled “CanUseTool” in settings.

    Note: You need the tool to work on “activated” otherwise it will not work!


To test this you need atleast 1 other player in another server or enable “ReplicateToYourServer” setting for debuging without other players

9 Likes

Can i choose which player? Or specific server to replicate?

Yes you can with small code changes!

New update:

  • When you leave the clone on all servers should be deleted,
  • Added jumping, you can disable it in the settings
  • Added Settings “UpdateNewPlayerPos”, “UseDisplayName”, “TextChatSystemMessageEnabled” and “DontUpdateNewPlayerPosIfStudsClose”, Explained in the settings module of the uncopylocked place.
  • Added a little map to the main place (which is not uncopylocked)
  • Added emotes (/e wave, /e dance etc.)

Another update:

  • Tools have been added! You can use them and other players will see them, Tutorial is here:

Small update:

  • Made sitting replicate, can be toggled in the settings

Another small update:

  • A new setting called “UsePathfinding”. I think it explains itself