I'm trying to make a script where a rope is binded to the player so that they can swing on specific points. I assumed that it was easy to make constraints via script because then you can enable and disable the script based on which points you're on.
local attachmentA = Instance.new("Attachment")
attachmentA.Parent = game.Workspace.Constrainer
local attachmentB = Instance.new("Attachment")
attachmentB.Parent = game.Players.LocalPlayer.Character.UpperTorso
local ropeConstraint = Instance.new("RopeConstraint")
ropeConstraint.Length = 10
ropeConstraint.Parent = game.Workspace.Constrainer
ropeConstraint.Attachment0 = attachmentA
ropeConstraint.Attachment1 = attachmentB
ropeConstraint.Enabled = true
Despite this script, a rope constraint isn't spawning yet the attachment is.

4 comments
Both attachments are spawning? There's probably an error
There's an error in the output that says attempt to index nil with Character. The reason could possibly be due to the fact that this is a server script and not a local script, so localplayer might not be able to be seen.
I'm testing it.
yeah change this script to a local script and insert it into StarterPack and it should work! :)