So, i’m trying to make this thing so you can drop the item you’re holding by typing in “!dropitem” in the chat, but I don’t know how. Can someone teach me on how to do this?
1 Like
You pretty much already answered your question by asking it. Define your requirements and make your searches based off of those requirements, then assemble a system as needed.
Need to check if what a player said was the command? Look into Player.Chatted to determine what a player says. Use the message parameter and make sure what they said was the drop command.
Need the tool dropped? We can do that too. Find an instance of the class tool in the character to get their currently held item. Is it there? Parent it to the Workspace then.
That’s how you make it. Searching what you’ll need only takes a few seconds, I’ve already dropped hints and explicit function names around in the post.
3 Likes