I wanted to make something like this: Wiki, so I made this code:
local partA = game.Workspace.PartA local attachmentA = Instance.new("Attachment", partA) attachmentA.Position = Vector3.new(0, 0, -1) local partB = game.Workspace.PartB local attachmentB = Instance.new("Attachment", partB) attachmentB.Position = Vector3.new(0, 0, 1) local rodConstraint = Instance.new("RodConstraint", partA) rodConstraint.Attachment0 = attachmentA rodConstraint.Attachment1 = attachmentB rodConstraint.Length = 5
The constraint appears as PartA's child, but PartB doesn't move towards it. I made sure to name the blocks accordingly.
http://wiki.roblox.com/index.php?title=API:Class/RopeConstraint
Disabled:This feature is currently unavailable. This could be due to the iOS version of Roblox not being caught up to the latest version, or the feature is incomplete and still in development.
They are currently still in testing but if you wish to test it you can do it here. https://www.gametest1.robloxlabs.com/develop# This is not a scam it doesn't even accept your ROBLOX account if you try. You have to register a new account.