RaTheKush
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1978 |
|
|
| 29 Sep 2017 07:18 AM |
local Rec = game.Players[targ.Parent.Name] print(Rec) -- it prints player here R.ToggleTrade:FireServer(player, Rec, "Accept")(edited)
But prints nil in other script
R.ToggleTrade.OnServerEvent:connect(function(Sender, Receiver, ChosenResponse) print(Receiver) |
|
|
| Report Abuse |
|
|
RaTheKush
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1978 |
|
| |
|
RaTheKush
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1978 |
|
|
| 29 Sep 2017 08:06 AM |
| Im trying to get in the selected players gui |
|
|
| Report Abuse |
|
|
RaTheKush
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1978 |
|
| |
|
RaTheKush
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1978 |
|
| |
|
OAuth2
|
  |
| Joined: 27 Nov 2016 |
| Total Posts: 751 |
|
|
| 29 Sep 2017 10:07 AM |
| The first argument for FireServer doesn't pass. Recheck your arguments. |
|
|
| Report Abuse |
|
|
RaTheKush
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1978 |
|
|
| 29 Sep 2017 11:46 AM |
| First one is in a local script the second is server , dont see the problem tho |
|
|
| Report Abuse |
|
|
RaTheKush
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1978 |
|
| |
|
|
| 29 Sep 2017 01:49 PM |
'player' is nil. Where do you define it? Also, delete 'player' because that is automatically sent as the first argument.
|
|
|
| Report Abuse |
|
|