So I’m trying to get the player from a click from the mouse but I don’t get a single player in specific but all the players currently on the server.
I don’t know what to do here, I tried to use RemoteEvents but It seems that it doesn’t work ( at least how I scripted it ), If you can help me you would be doing me a great favor !
Even if it is a BillboardGUI? because It doesn’t show me anything, I click on the “Part” block billboardGUI but it doesn’t fire anything, what can I do there then?
To make surface GUIs “clickable” you need to place them in the player’s PlayerGui (aka StarterGui) and set the adornee of the SurfaceGUI to the part. And since you use local scripts to detect when someone clicks it, to get the player you just need to do local Player = game.Players.LocalPlayer, instead of getting it as a parameter (MouseButton1Click doesn’t even have player as the parameter)
The player variable he’s sending is nil, and that isn’t even the main problem, main problem is the MouseButton1Click event isn’t even firing, because the surface gui isn’t in the StarterGui.
That’s the thing, you can’t, if you have the SurfaceGui inside the part, it doesn’t detect mouse clicks, if you want it to detect you need to put it in StarterGui