#NPC cant move when given weapon

1 messages · Page 1 of 1 (latest)

fickle bridge
#

local tool=repser.Weapons[uuid]:Clone()
tool.Parent=char
local weapon=tool.Main
local motor = Instance.new("Motor6D")
motor.Parent=char["Torso"
motor.Part0= char["Right Arm"]
motor.Part1=weapon
motor.C1=CFrame.new(0, 0.755, 0.013)
weapon.Massless=true

this same code works with player and they can move fine but when done to the npc theyll just move in place, eveything is unanchored and cancollide is off. No ChatGPT fix works. If i get rid off any one of the line of code that set the motor6d the npc is able to move but the weapon wont be in their hand.

fickle bridge
#

also i realized it happens no matter what the object is and even if it is welded not motor6d

gray spear
#

when you attach a motor6d or even weld between your torso then right arm and your weapon I'm gussing it locks cause of competing joints between ur torso and right arm

#

instaed I would use a weld with Part0 = right arm and Part1 = handle and Parent = rightArm

fickle bridge
#

ok ill try that

gray spear
#

if you tryna really use Motor6d jus parent to ur rightArm and Name it something Unique, might help

fickle bridge
#

none of that worked, i really dont understand why it doesnt work and it needs to be motor6d's cause the weapon is animated

fickle bridge
#

nvm i found out why, you have to move the NPC on the server side when they have anything welded to them for some reason, even though you can usually do so on the local