My code looks like this:
function opengui(click, click2)
print(click)
print(click2)
--local kiosk = script.Parent.Parent.Parent.Parent.Parent
--local shopgui = kiosk:FindFirstChild("ShopGui")
--local guiclone = shopgui:clone()
--guiclone.Parent = click.PlayerGui
end
script.Parent.MouseButton1Down:connect(opengui)
click and click2 are both being printed out as numbers, that seem to be player position related. How do I get the player that clicked it, like I can with .Touched:connect?

1 comment
Try using the localplayer, Because you're the one who clicks the button anyway.