rutsem2
(OraclePro1337)
November 11, 2021, 12:30pm
1
I am trying to clone hammer and place it inside cloned character, but hammer’s grip is broken
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()
rutsem2
(OraclePro1337)
November 11, 2021, 3:34pm
3
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.
rutsem2
(OraclePro1337)
November 11, 2021, 4:18pm
5
Thank you, i just need to spawn model trough server
1 Like