im trying to set the cframe of the handle to the player’s character but the tool keeps going someone far. How would i fix this? And i get teleported randomly
local drawRemote = script.Parent:WaitForChild("Draw")
drawRemote.OnServerEvent:Connect(function(player, drawAnim)
local character = player.Character
local humanoid = character:WaitForChild("Humanoid")
local drawOut = humanoid:LoadAnimation(script:WaitForChild("DrawOut"))
print(drawOut)
local weldCO = Instance.new("WeldConstraint")
weldCO.Parent = player.Character
weldCO.Part0 = character["Left Arm"]
weldCO.Part1 = script.Parent.Handle1
script.Parent.Handle1.CFrame = character["Left Arm"].CFrame
drawOut:Play()
end)
Adding on to what Forummer said about anchoring, to adjust the WeldConstraint you’ll need to use the .Position and .Rotation properties instead of the CFrame property: