How do I make a BillboardGui appear when a player is clicked on?

What do I want to achieve?
I would like to create a script that shows a BillboardGui when a player is clicked on.

What have I tried so far?
I’ve tried searching on the DevForum and on Youtube for viable solutions, but I haven’t been able to find anything.


Here is an example of what I’m trying to create:

Any help would be appreciated! I’m not experienced in Lua whatsoever.

You can use the Mouse.Move Event, and use Mouse.Target (Which would be a Instance of some sort, or nil if you’re moving it towards the Skybox) to detect wherever the LocalPlayer’s Mouse is hovering

You can use this to check if the Target's Parent is equal to another Character Model of some sort, then you can Tween the BillboardGui if it is

For giving the fruit, you can use a RemoteEvent to be able to send a request once the Player clicks on that said BillboardGui

2 Likes

Thank you, I’ll be sure to try this out!