I'm attempting to create a rod between my player's right hand and a part, so i can swing from the rod, im getting no errors but the rod doesn't create itself. (im very new, sorry if code is sloppy)
local myPart = game.Workspace.Part
local attachmentA = Instance.new("Attachment",myPart)
attachmentA.Position = Vector3.new(9.98, 34.57, -16.924)
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local RightHand = character:WaitForChild("RightHand")
local grapple = Instance.new("Attachment",RightHand)
local rodConstraint = Instance.new("RodConstraint",myPart)
rodConstraint.Attachment0 = attachmentA
rodConstraint.Attachment1 = grapple
rodConstraint.Length = 17
end)
end)
