so im making a multiplayer game and ive run into a problem once i login
(to test this use two tabs)
well once i login in both sry ull have to make an account but this is using just a server for tests so the data will be reset once i fix this
so its throwing this error
[Network.js?id=15526278&branchId=95cb14a6-7570-4738-92ed-01bbf4229117:60]: Uncaught TypeError: Cannot read property ‘rigidbody’ of null
TypeError: Cannot read property ‘rigidbody’ of null
at script.Network.updateplayers (https://launch.playcanvas.com/api/assets/files/scripts/Network.js?id=15526278&branchId=95cb14a6-7570-4738-92ed-01bbf4229117:60:40)
at r. (https://launch.playcanvas.com/api/assets/files/scripts/Network.js?id=15526278&branchId=95cb14a6-7570-4738-92ed-01bbf4229117:20:14)
at r.emit (https://launch.playcanvas.com/api/assets/files/scripts/socket.js?id=15702925&branchId=95cb14a6-7570-4738-92ed-01bbf4229117:4:12375)
at r.onevent (https://launch.playcanvas.com/api/assets/files/scripts/socket.js?id=15702925&branchId=95cb14a6-7570-4738-92ed-01bbf4229117:5:26293)
at r.onpacket (https://launch.playcanvas.com/api/assets/files/scripts/socket.js?id=15702925&branchId=95cb14a6-7570-4738-92ed-01bbf4229117:5:25915)
at r. (https://launch.playcanvas.com/api/assets/files/scripts/socket.js?id=15702925&branchId=95cb14a6-7570-4738-92ed-01bbf4229117:5:28033)
at r.emit (https://launch.playcanvas.com/api/assets/files/scripts/socket.js?id=15702925&branchId=95cb14a6-7570-4738-92ed-01bbf4229117:4:12375)
at r.ondecoded (https://launch.playcanvas.com/api/assets/files/scripts/socket.js?id=15702925&branchId=95cb14a6-7570-4738-92ed-01bbf4229117:4:18962)
at s. (https://launch.playcanvas.com/api/assets/files/scripts/socket.js?id=15702925&branchId=95cb14a6-7570-4738-92ed-01bbf4229117:5:28033)
at s.r.emit (https://launch.playcanvas.com/api/assets/files/scripts/socket.js?id=15702925&branchId=95cb14a6-7570-4738-92ed-01bbf4229117:4:12
and i’ve tried to fix it several times and keep it working but so far its not worked.
help would be appreciated
https://playcanvas.com/editor/scene/662886
edit: i made it stop throwing the error but now it wont update where the players are when they move