How to connect two players (like altitorture)

Hi there! I’m currently trying to learn how to connect two players with a rope, similar to the game Altitorture

Attaching two players to any type of constraint causes lag for one client. This is the issue I’m trying to find a workaround for.

I have read many devforum articles and none have found the answer. Clearly there is some way to achieve this, but it hasn’t been open-sourced.

There are other games that achieve something similar that I have not been able to replicate, such as Chained Together [2-3-4 PLAYER] - Roblox
and
[300M] Chained [2 Player Obby] - Roblox

Any suggestions? Changing the network owner does not work since there can only be one (from what I’ve seen).

Maybe there is some sort of accessory added to the player (chained together) and then once the players (link), they use something like a ropeconstraint, or attachments to make a line between each other. of course this is all just a thought, but hey it might work since I’m pretty sure its based off of roblox physics. good luck!

You can, when the player is joined, add an Attachment to the 0,0,0 of the player’s model, and then set up a system for when a player accepts an invitation, a Rope is created between the two players

local players = game:GetService("Players")

players.PlayerAdded:Connect(function(player)
	local hum = player:WaitForChild("Character"):WaitForChild("Humanoid")
	
	local att = Instance.new("Attachment")
	att.Parent = hum
	att.Position = hum.Position
	att.Name = "PlayerRopeAttachment0"
end)

Try this and adapt it to your thing. Script not local

The issue is that a RopeConstraint will cause one client to lag. Also, there are many things wrong with this script. You can’t do player:WaitForChild(“Character”) because Character is not a child of player, and you can’t parent an attachment to a humanoid (it’s not a Part).