-
What do you want to achieve? Keep it simple and clear!
I want to make a katana for my character -
What is the issue? Include screenshots / videos if possible!
the katana wont stay with the hand
-
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)