Tool's grip broken after cloning and pasting in non-player char

I am trying to clone hammer and place it inside cloned character, but hammer’s grip is broken
image
Yes, i edited hammer’s grip. And it isnt working

plr = game.Players.LocalPlayer.Name
x = game.Workspace:FindFirstChild(plr)
x.Archivable = true
chr = x:Clone()
chr.HumanoidRootPart.Anchored = true
local hammer = game.ReplicatedStorage.Tools.Hammer:Clone()
chr.Parent = game.Workspace
chr.HumanoidRootPart.CFrame = game.Workspace.Dummy.HumanoidRootPart.CFrame
hammer.Parent = chr
game.Workspace.Dummy:Destroy()

Try this:

plr = game.Players.LocalPlayer.Name
x = game.Workspace:FindFirstChild(plr)
x.Archivable = true
chr = x:Clone()
chr.HumanoidRootPart.Anchored = true
local hammer = game.ReplicatedStorage.Tools.Hammer:Clone()
chr.Parent = game.Workspace
chr.HumanoidRootPart.CFrame = game.Workspace.Dummy.HumanoidRootPart.CFrame
chr.Humanoid:EquipTool(hammer)
game.Workspace.Dummy:Destroy()

It has the same result too :(, i dont know why it happens

There seems to be two issues causing this.

The primary issue is that the model is being built by the client in a LocalScript. For whatever reason, the engine refuses to “equip” the tool to a model spawned in this way, but it will work if spawned in by the server.

The second issue is just that the tool appears to be anchored. Spawning in the tool unanchored and then anchoring it after one physics frame should resolve that issue.

Thank you, i just need to spawn model trough server

1 Like