I have this below script, but the Motor6D keeps disappearing. On the second print, it print’s “nil” but the first one prints the parent I set it to.
game:GetService("Players").PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
local M6D = Instance.new("Motor6D",Character:WaitForChild("UpperTorso"))
print("M6D Attached! Its parent is "..M6D.Parent:GetFullName())
wait(10)
print(M6D.Parent.Name)
end)
end)
I’ve tried setting the parent to different things and messing with the Motor6D settings, and I found that it didn’t disappear when I set its parent to HumanoidRootPart. What? Why? (I’d prefer the parent was something else, so I don’t want this to be my solution yet.)
I then tested manually adding a Motor6D into a dummy and running the game, and it was just fine…
The Motor6D might be getting disconnected somehow, even though it’s not being welded to anything.
I searched before posting.