iMung
|
  |
| Joined: 11 Jul 2013 |
| Total Posts: 328 |
|
|
| 04 Feb 2016 12:50 PM |
| Well, I have a TextButton that when you click it, it goes through a table inside a module script. Inside each table inside the module, it has variables called "TopRight", "TopLeft", "BottomRight", "BottomLeft", and "name". The script checks to see if 4 textlabels are the same value as each of the variables inside the table. If its true, it prints name, and then, it fires an event, and inside that event, it prints the argument (name) and for some reason, the prints are different. The first time it printed "Plank", the second time it printed "Player". Can someone help me to know why? |
|
|
| Report Abuse |
|
BanTech
|
  |
| Joined: 31 Dec 2015 |
| Total Posts: 886 |
|
|
| 04 Feb 2016 01:51 PM |
First argument is the player of the client who fired the event,
remoteEvent.OnServerEvent:connect(function(player, ...) ... end)
http://wiki.roblox.com/index.php?title=RemoteFunction_and_RemoteEvent_Tutorial#Passing_Argument |
|
|
| Report Abuse |
|
iMung
|
  |
| Joined: 11 Jul 2013 |
| Total Posts: 328 |
|
|
| 04 Feb 2016 01:58 PM |
So I dont fire the server like this?:
event:FireServer(player, ...) tuple args
I just say the args? and on the OnServerEvent event it will have an argument with a value of your plalyer? |
|
|
| Report Abuse |
|
BanTech
|
  |
| Joined: 31 Dec 2015 |
| Total Posts: 886 |
|
| |