Everytime someone joins the get 2 values assigned to them, im trying to send those to the teleportservice
and im trying to send those for each player that is inside a table
local PlayersWaiting = {} -- This just contains the players, can contain more than 1 player
function teleport(owner)
local placeId = 0 -- MY PLACEID LATER
local server = TeleportService:ReserveServer(placeId)
local options = Instance.new("TeleportOptions")
options.ReservedServerAccessCode = server
local teleportData = {
Rifle = PlayersWaiting.rifle.Value, --doesnt work
Pistol = PlayersWaiting.pistol.Value, --doesnt work
Owner = owner,
}
options:SetTeleportData(teleportData)
safeTeleport(placeId, PlayersWaiting, options)
end
And u can see im trying to send those, but i dont know how to make it actually work. Cause the current script doesn’t work