Whenever I equip tools, they teleport me, or just falls into the ground, i don’t know how to fix this issue, because when spam equipping and unequipping the tool, you can noclip
Here is my part of the code where it welds and all of that
character.DescendantAdded:Connect(function(Obj)
if Obj:IsA("Weld") and Obj.Name == "RightGrip" then
task.wait()
local NewWeld = Obj:Clone()
NewWeld.Parent = Obj.Parent
NewWeld.Part0 = ViewModel:FindFirstChild(Obj.Part0.Name)
self.activeWelds[Obj] = NewWeld
--Obj:GetPropertyChangedSignal("C0"):Connect(function()
-- NewWeld.C0 = Obj.C0
--end)
Obj:Destroy()
end
end)
how do you even move viewmodel if such thing heppens?
Viewmodel has to be fully non colidable and adjust position in PreRender NO ANY WELDS TO A CHARACTER
What does it have to do with that?
Can’t you just copy entire item then?
You seem to be moving an actual model with a new weld instead of copy of said model
character.DescendantAdded:Connect(function(Obj)
if Obj:IsA("Weld") and Obj.Name == "RightGrip" then
for i = 1, 1 do
local newMotor = Instance.new("Motor6D")
newMotor.Name = "RightGrip"
newMotor.Part0 = ViewModel:FindFirstChild(Obj.Part0.Name)
newMotor.Part1 = Obj.Part1
newMotor.C0 = Obj.C0
newMotor.C1 = Obj.C1
newMotor.Parent = newMotor.Part0
local tool: Tool = Obj.Part1:FindFirstAncestorOfClass("Tool")
if tool then
local con = nil
con = tool:GetPropertyChangedSignal("Grip"):Connect(function()
if newMotor.Parent then
newMotor.C1 = tool.Grip
end
end)
end
self.activeWelds[Obj] = newMotor
end
Obj:Destroy()
end
end)