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

How do I make a Model a Tool In your hand?

tool = script.Parent

handle = tool:WaitForChild("Handle")

tool.Equipped:Connect(function()
 print("The tool equipped")
end)

This is what I have so far! I don't know what to do.

2 comments

0

the handle have to be a part

0

and the tool have to be a legit tool

1 answer

✓ Accepted answer

Create a part inside the tool and name it "Handle". Put the model and handle inside a tool object . Position the Handle to the the position in the model that you want the player's hand to go. (i.e if it was a gun, you'd position the handle on the grip of the gun) ROBLOX will automatically position the handle to the player's hand and any parts welded to the part will also be moved.

For the parts to be welded, we need a weld script. You can make your own or use someone else's weld script.

Here's an article on how to weld if you want to do it yourself

And here's a weld script that you'd put inside the handle/model group that'll create the welds for you.

How it works is it finds all the parts inside the model creates a weld for each part and welds them to the handle. Put the tool you made into the starterpack and you're good to go.

2 comments

0

ok thx

0

ur welcome

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