Tool Drop Positon Does not work

Im trying to make npc drop wepons
But the postion is not working

I put the tool somewhere random and the placed it in ReplicatedStorage

Then I made this script in the Npc Humanoid
And it drops the tool!

But it does not drop it in the position of the Npc
How do i fix this?

function onDied()

print ("Script Loaded.")

wait(0)

bat = game.ReplicatedStorage["Bat"]:Clone()

bat.Parent = game.Workspace

bat.Position = script.Parent.Parent.Torso.Position

end

script.Parent.Died:connect(onDied)

We need to see code to be able to help you

Opps Forgot to add it

function onDied()

print ("Script Loaded.")

wait(0)

bat = game.ReplicatedStorage["Bat"]:Clone()

bat.Parent = game.Workspace

bat.Position = script.Parent.Parent.Torso.Position

end

script.Parent.Died:connect(onDied)

Maybe use CFrame instead on the handle and set it before parenting to workspace

local function onDied()

print ("Script Loaded.")

local bat = game.ReplicatedStorage["Bat"]:Clone()

bat.Handle.CFrame = script.Parent.Parent.Torso.CFrame

bat.Parent = workspace

end

script.Parent.Died:Connect(onDied)

Tools don’t have positional properties, you would have to move the Handle, you were probably getting an error on the position line

2 Likes