Giving the tool to someone who did something

Is this a proximity prompt that’s being triggered?

I know cause I didn’t knew what to put there.

1 Like

Oh wait my fault its not in serverscriptservice the script is inside the proximity prompt, within replicated storage so when the model gets cloned the proximity prompt gets cloned too.

That’s fine. Where is the tool located in though?

That is completely okay. :+1:

That’s fine, I’m not good at scripting.

Well, the thing is that when the model gets cloned it will be transformed into a package. And when a player wants to move the package it can interact with it so the player can move it. But I don’t know how I can get that he is going to move it with his hands.

I am asking about the tool’s location. Is that script.Parent.Parent?

Oh yea sorry, the tool location is indead script.Parent.Parent

script.Parent.Triggered:Connect(function(player)
	local tool = script.Parent.Parent:Clone()
	tool.Name = "Box"
	tool.Parent = player.Backpack
end)

try this

I fixed it and now it gets cloned to the backpack but…

When I equip the tool the model isn’t in my hand but still on the exact place it got cloned the first time.

Can someone fix this for me please?

You’ll need to parent it to the player’s backpack.

script.Parent.Triggered:Connect(function(player)
	local tool = script.Parent.Parent:Clone()
	tool.Name = "Box"
	tool.Parent = player.Backpack
end)

No, it has to be a tool otherwise it won’t be visible anyways and then you can’t equip it too.
The only thing is that the model doesn’t gets in the player arms so the player can move the box to the storage.

Oh, I don’t really know how your model works. I’m guessing it’s welding.

If thats a guess then you guessed it right. I welded all the parts together.

Isn’t there anyway that the model can just be placed in the arms of the player so the player can move the box to the storage?