LocalScript
main:WaitForChild("giveBtn").MouseButton1Down:connect(function()
re:FireServer("giveTicket",main:WaitForChild("main"))
end)
Server Script
re.OnServerEvent:connect(function(plr,event,main)
if event == "giveTicket" then
print(main.Name)
end
end)
"main" is a Frame that I want to pass to a Server Script so the script can grab text from it and it keeps outputting this
ServerScriptService.TicketSystemHandler_ss:15: attempt to index local 'main' (a nil value) Script 'ServerScriptService.TicketSystemHandler_ss', Line 15 Stack End
I know the variables definitely exist since I can print their names in the LocalScript, can anyone help? If you need the full script just ask

1 comment
Thanks man!