TeleportData issues

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    Fix my tpdata

  2. What is the issue? Include screenshots / videos if possible!
    One of my values got replaced by a table id
    image

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Tried looking for solutions on devforum but didn’t really see any solutions but i didn’t really dig that deep either so i might’ve missed some solutions.

game.Players.PlayerAdded:Connect(Player)
	local joinData = Player:GetJoinData()
	local teleportData = joinData.TeleportData
	
	local difficulty = teleportData.Difficulty
	local gamemode = teleportData.Gamemode
	local world = teleportData.World
	local stage = teleportData.Stage
-- Code below blah blah blah
local teleportOptions = Instance.new("TeleportOptions")
	teleportOptions.ShouldReserveServer = true
	
	local teleportData = {
		Difficulty = Diff,
		Gamemode = Gamemode,
		World = World,
		Stage = Stage
	}
	-- Checked to see if any of the values are nil and no they werent 
	teleportOptions:SetTeleportData(teleportData)
	
	TeleportService:TeleportAsync(id,{plrtbl},teleportOptions)

I’m dumb, I didn’t take the player parameter on my server event so the parameters got messed up

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.