Weird BallSocket Attachment issue

My game uses ballsockets created on the client to allow the player to grab any surface their hand comes in contact with

Creating the attachment 0 Through studio’s viewport manually works great, however when i create the attachment in a local script:

			local HitAttach = Instance.new("Attachment",hit)
								HitAttach.Name = "HitAttachRight"
								HitAttach.WorldPosition = raycastResult.Position + raycastResult.Normal * 0.45
								local RightGrab = NewCharacter.GrabStuff.RightGrab
								RightGrab.Attachment0 = HitAttach	

Doing this results in some sort of network ownership or physics error

Using network ownership visualization shows me a black color which i can find no documentation on. The player character is devoid of physics and cannot be moved on the server either

Unsure as to why creating the attachment via the explorer does not replicate this issue, any suggestions?

2 Likes

The black color I believe means the obj is currently anchored.

I’m assuming the “studio viewport” means the command line where you can run code during testing. If it works on the command line but not in a local script it’s likely there’s other stuff in the local script happening causing something to break.