I made a health potion and I've already welded it together with Quenty's script, but I want it so when you press the specified button the potion will appear in the player's left hand and disappear after 1 second.
COMMUNITY QUESTION
How do I weld an object to the player's left hand? (Not a tool)
1 answer
So, if you've already welded it together, then do this.
--> after button is pressed
local item = game:FindService("ReplicatedStorage"):WaitForChild(ITEMNAMEHERE):Clone()
item.Parent = Player.Character["Left Hand"]
wait(1)
item:Destroy()
Put a click detector in the button.
And use API MouseClick()
The parameter in "MouseClick" gives you the PLAYER who clicked it, so remember that.
Challenge yourself, chap, have a good day!
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
I put the Health potion in ReplicatedStorage, in the output it says "Health Potion is not a valid member of ReplicatedStorage"
Make sure it's like this :WaitForChild("Health Potion") and that it's not in a folder
Okay, now it says "Left Hand is not a valid member of model"