I am making an ordering system and would like to get the player who clicked a button on a surface GUI hopefully without using .Adornee since I am going to have multiple registers. I’m not sure if a player added event would work since it would most likely get the player that was added not that clicked the button. If you have any idea how I could do this please let me know!
you can set up invisible parts with clickdetectors
or
you can replicate the guis to the each of the player guis and adornee to the register so then the script.Parent.MouseButton1Click:Connect(function(Player) print(Player.Name .. " Clicked Button") end)
would actually work
I mean it’s only being used for like 1 or 2 things to get their name then I could parent it back to the register since I’m trying not to use any remote events.
I don’t know if I am correct but you can check to see if someone inputed (using the userinputservice) the right/left mouse button etc. and check if “GameProcessed” or not, if not then you can send that single through a RemoteEvent and that could be a way to get the users name. You can also do a touch part.