How do I make the tool stay in the right spot

  1. What do you want to achieve? Keep it simple and clear!
    I want to make a katana for my character

  2. What is the issue? Include screenshots / videos if possible!
    the katana wont stay with the hand

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Changing from welds to accessory both didn’t work.
    Code:

game.ReplicatedStorage.RemoteEvents.ToolEquip.OnServerEvent:Connect(function(Player)
	local PlayerWorkspace = game.Workspace:FindFirstChild(Player.Name)
	local motor6d = Instance.new("Motor6D")
	local katana = game.ReplicatedStorage.Katana:Clone()
	katana.Parent = PlayerWorkspace
	motor6d.Parent = PlayerWorkspace:FindFirstChild("HumanoidRootPart")
	motor6d.Part0 = PlayerWorkspace:FindFirstChild("HumanoidRootPart")
	motor6d.Part1 = katana:FindFirstChild("Handle")
	PlayerWorkspace:FindFirstChild("Humanoid"):AddAccessory(katana)
end)
1 Like