Hi,
I was just curious about something in my script.
I'm triggering a server event using the following:
triggerServerEvent("server-create-account", getRootElement(), u, p)
I'm confused who this event is actually sent to? Wouldn't getRootElement() be sending it to everyone? I thought I would use localPlayer but from reading the wiki, it says that it is un-secure and bad practice.
I just want to trigger the event from the client that actually triggered it. So when I do my event handler, the code inside the callback would be sent to the client that triggered it in the beginning.
I hope that makes sense and someone could explain this to me, thanks.