How do I make a throwable tool? Meaning that if the player clicks, then it will throw it like a ball. I’ve been thinking of using BodyVelocities but I’m not sure how to use it.
What you need to do is use Tool.Activated to detect when the throw input has been triggered. Then Then you want to clone the handle, make it face towards the target, and then set it’s velocity to the LookVector of the cloned object.
so:
local clone = tool.Handle:Clone()
clone.Parent = game.Workspace
clone.CFrame = CFrame.lookAt(clone.Position, Mouse.Hit.p)
clone.Velocity = clone.CFrame.LookVector * 145
9 Likes
you forgot to add a
local tool = script.parent
before the local clone, also, you need a local for the mouse
You replied to a thread that is four years old
Obviously… He left it out to just show the logic of what OP requested. Also stop replying to old posts.
1 Like