Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago
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.

0
the handle have to be a part Gameplayer365247v2 1055 — 4y
0
and the tool have to be a legit tool Gameplayer365247v2 1055 — 4y

1 answer

Log in to vote
0
Answered by
royaltoe 5144 Moderation Voter Community Moderator
4 years ago
Edited 4 years ago

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.

0
ok thx Techo_Dev 2 — 4y
0
ur welcome royaltoe 5144 — 4y
Ad

Answer this question