Ball Welding Issues (pickup and drop)

i’ve been tackling a problem for months now and can not find a solution

  1. simple goal, attach ball to character HumanoidRootPart upon touch and make it droppable.
  2. my main problem: UIS or Motor6D

i used .touched and filtered hit to detect player, use a motor6d parented under the ball to weld it to the player. no problems so far.
then i made a localscript which detects input, drops the ball via setting Motor6D.Part1 and Part2 as nil. problems appeared here.

i could pick up and drop the ball once, but not after dropping it. using print i discovered that the player touch is being detected, the weld is being found, but the Part0 and Part1 stay blank and refuse to be changed
my theory on this is that my input from the localscript despite being only clicked once is instantly setting the Part1 and Part0 nil and resetting the pickup process instantly, but i have no idea where to go from here

i would site my scripts but its so simple and short that i explained everything i do with them above, no its not about misspelling or deprecation i made sure on that part

thanks for the help in advance

This is because you are detecting the touch on the server(probably) but your local script is dropping the ball, meaning the server still thinks you have the ball welded. You would need to use a remote event to make sure to replicates on the server.

Is the touched event firing while your still holding the ball? That would definitely cause issues.

this could definitely be the issue, I can’t believe i missed this… I’ll fix this right now and mark it as a solution if it worked, thank you for your help

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.