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

How would I create a script that allows me to click on an item and pick it up?

Asked by
XMGQ 0
6 years ago

Hello, I am trying to make a game where players can find items and click on them to equip them. Any ideas? Also, It would be cool if when you hovered your mouse over the item, it creates a GUI that shows the item's name.

0
Scripting Helper is not a request size. But youtube and the roblox scripting wiki can help you learn to code these stuff in the future. :) NoBootAvailable 50 — 6y
0
You can check for mouse.Target and mouse.Hit in order to detect those. Post a script next time so that we may help. iamnoamesa 674 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

as iamnoamesa said, you can use mouse.Target and mouse.Hit

You can also use clickdetectors.

As for the name hovering, that is completely possible too!

In a part, you can make a script that creates a billboard GUI over the part that says it's name if Mouse.Target == the part.

Because you gave no code, we cannot either. Good Luck!

Ad

Answer this question