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

How do I weld an object to the player's left hand? (Not a tool)

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.

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!

3 comments

0

I put the Health potion in ReplicatedStorage, in the output it says "Health Potion is not a valid member of ReplicatedStorage"

0

Make sure it's like this :WaitForChild("Health Potion") and that it's not in a folder

0

Okay, now it says "Left Hand is not a valid member of model"

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