#TeleportService:GetLocalPlayerTeleportData() returning nil

1 messages · Page 1 of 1 (latest)

spring ginkgo
#

for some reason when i try to catch the teleport data from the other side it returns nil

(dw about the .connum, the data im sending is a dictionary)

ebon wyvern
#

The teleportdata parameter is nil because you're passing it as the last argument, but TeleportToPrivateServer doesn't have a teleportdata parameter at that position . The signature is:

TeleportToPrivateServer(placeId, accessCode, userIds, spawnName, teleportData, customLoadingScreen)

Your call has contestants where userIds should be, then nil for spawnName, then teleportdata, so it's actually being passed correctly if your argument order matches. Double-check you're reading it on the other side with TeleportService:GetLocalPlayerTeleportData() inside a LocalScript, not a Script. That function only works client-side, and if called server-side it'll always return nil.

Also worth noting, the data has to be JSON-serialisable. If your dictionary has non-string keys, Instance references, or anything odd, it'll silently drop to nil on arrival.

spring ginkgo
#

what??

#

very ai response icl

ebon wyvern
#

yeah, I made ai improve it bcs my grammar kinda sucked, then it added a bunch of stuff