I’m not sure if this is happening to anyone else too but the problem is kinda confusing and seems like it just started happening recently.
I made a Motor6D tool and whenever it is equipped the equipping and tool idling animation will be played. The problem is that the Motor6D part thingy doesn’t seem to appear in the right position whenever it is equipped by someone else on my screen but appears in the right position for their screen.
And the weirdest part is that touching the other player’s character seem to fix the positioning issue.
Almost forgot to provide the code, but this is also happening to the other code that I wrote.
local Tool = script.Parent
local AllModel = {}
local a, b
local function AttachMotor(GetModel, Part0)
local Model = GetModel:Clone()
local Motor6D = Instance.new("Motor6D")
Motor6D.Part1 = Model.BasePart
Motor6D.Part0 = Part0
Motor6D.Parent = Tool.Parent["Left Arm"]
Model.Parent = Tool
table.insert(AllModel, Model)
table.insert(AllModel, Motor6D)
end
script.Parent.Equipped:Connect(function()
AttachMotor(
game.ServerStorage.ToolMotor6D["Bat"],
Tool.Parent["Right Arm"]
)
a = Tool.Parent.Humanoid:LoadAnimation(Tool.Animation.Idle) a:Play()
b = Tool.Parent.Humanoid:LoadAnimation(Tool.Animation.Equip) b:Play()
end)
script.Parent.Unequipped:Connect(function()
for _,Model in pairs(AllModel) do
Model:Destroy()
end
a:Stop()
b:Stop()
end)