You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
Fix my tpdata -
What is the issue? Include screenshots / videos if possible!
One of my values got replaced by a table id
-
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)