|
| 28 Aug 2016 12:18 PM |
So this part of my script keeps erroring(Line 35 in specific) And it says im missing argument 1. But i dont seem to be missing one as far as i can see.
Code: CardCzar = PlayingPlayers[math.random(1,#PlayingPlayers)] for i, player in pairs(PlayingPlayers) do local IsCzar = false if player.Name == CardCzar then IsCzar = true game.Players:FindFirstChild(player.Name).PlayerGui.Main.Role:FireClient(IsCzar) else IsCzar = false game.Players:FindFirstChild(player.Name).PlayerGui.Main.Role:FireClient(IsCzar) --line 35 end end Error: 12:14:08.671 - Argument 1 missing or nil 12:14:08.672 - Stack Begin 12:14:08.673 - Script 'ServerScriptService.ServerMain', Line 35 12:14:08.674 - Stack End
~Bubba~ |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 28 Aug 2016 12:21 PM |
Keep your RemoteEvents in a place where both the client and server can access them, like the ReplicatedStorage.
|
|
|
| Report Abuse |
|
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 28 Aug 2016 12:34 PM |
| Store remote events in ReplicatedStorage. You can't access PlayerGuis from the server with FE (im assuming you're using fe since you have re's). You need to send the info from the server to the client. |
|
|
| Report Abuse |
|
|