Hi, is there a method to somehow have a surfacegui imagebutton take the username of whoever clicked it and store it in a variable?
localscript inside of image button
local RemoteEvent = --your remote event here
script.Parent.Activated:Connect(function()
RemoteEvent:FireServer()
end)
server script
local RemoteEvent = --your remote event here
RemoteEvent.OnServerEvent:Connect(function(player)
--do thing
end)