Basicly what im trying to do is to add a rope constraint to every player and attach it to the Right Hand for use in game

game.Players.PlayerAdded:connect(function(plr)
	plr.CharacterAdded:connect(function(char)
		local RopeConst = Instance.new("RopeConstraint",char.RightHand)
		RopeConst.Attachment0 = char.RightHand
		RopeConst.Name = "HangRope"
	end)
end)

It's giving me an error on line 4 saying "bad cast" does this have anything to do with that it's an union? Is it some other issue, im clueless.

2 comments

0

It needs to be an attachment not a base part.

0

I knew it was something simple. Im an idiot confirmed