Game: Space Runner
Stadia Handle: mochi
problem:
If I do not explicitly pass in nil
into the fourth argument into the following call (in GameMenuScript
ln109-114):
self:GetEntity().UserScript:SendToServer("SpawnWorld",
gameTemplate,
self.numPlayers,
self.numTracks * self.numPlayers,
nil
)
it will become a userdata
on the receiving side:
UserScript
ln 587:
function UserScript:SpawnWorld(gameTemplate, numPlayers, numRaceTracks, location)
which causes ln 610 local spawnLocation = location or Vector.New(0, 10000 * self.trackPos, -1000 * self.trackPos)
to be assigned some userdata
that I can’t use as a spawn location.