Cannot pass boolean nor nil values through Remote Events?
So, I am trying to make it so the server can see the UserInputService's events for a player. Here is what I got.
02 | 'DeviceAccelerationChanged' ; |
03 | 'DeviceGravityChanged' ; |
04 | 'DeviceRotationChanged' ; |
06 | 'GamepadDisconnected' ; |
11 | 'LastInputTypeChanged' ; |
12 | 'TextBoxFocusReleased' ; |
25 | 'WindowFocusReleased' ; |
28 | for _, event in pairs (events) do |
29 | print ( 'Connecting event for ' ..event) |
30 | userservice [ event ] :Connect( function (a, b, c, d, e) |
31 | print ( 'An event occured with UserInputService. Name : ' ..event.. '. Data :["' .. tostring (a).. '", "' .. tostring (b).. '"' .. tostring (c).. '", "' .. tostring (d).. '"' .. tostring (e).. '"]' ) |
32 | user.Events [ event ] :FireServer(a, b. c, d, e) |
"userservice" is just UserInputService and user is the folder I put the events in. But, whenever I move my mouse, I get Players.YouWillNeverGuessMy.PlayerGui.Services:215: attempt to index local 'b' (a boolean value)
. This does not error if I fire it through the command bar. Any ideas? Thanks.