Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to hand an item to another player?

Hi! I need a "hand item to player" script in my Cafe. I was thinking of ways to do this and figured I needed to know what item was currently in the players hand. I am not completely sure how to go about establishing what item is currently in the players hand.

Any help/advice/questions will be appreciated! :D

Cheers, WindNT

3 comments

0

is this like a shop?

0

More like a restruant where the staff would hand food to player. Eg. Coffee, Doughnuts

0

Since you didn't provide any code, you can adapt your idea to something I already answered. https://scriptinghelpers.org/questions/43420/torso-not-valid-member-of-workspacemodel#44797

1 answer

✓ Accepted answer

Currently equipped item is stored inside player.Character, a model inside of workspace. So, you could check if there is a tool in character using FindFirstChildOfClass, then simply check its name and change the parent to the other player's backpack.

2 comments

0

Thanks for your response! Let me try it and I will let ya know if it works / accept the answer :D

0

That worked GREAT! Thanks again :D

This discussion is preserved as it was. New answers, comments, and votes are closed.