Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I connect a constraint to BodyBackAttachment?

Asked by 7 years ago
Edited 7 years ago

Hello there, I currently have this script:

local a = game.Workspace.a.Attachment

script.Parent.Touched:connect(function(player)
    local r = Instance.new("RopeConstraint", a.Parent)
    r.Attachment0 = r
    r.Attachment1 = player.Torso.BodyBackAttachment
    r.Length = 10
end)

This script doesn't work. Can anyone explain why, and how I can fix it?

Answer this question