i want to pass the players face textureid to the other place. everytime i do this it results in failure.
server side script
if parties:FindFirstChild(party) then
local playersToTeleport = {}
for _, member in pairs(parties[party].Members:GetChildren()) do
table.insert(playersToTeleport, game.Players[member.Name])
end
for _, plr in pairs(playersToTeleport) do
re:FireClient(plr,15)
print(plr.Character.Head.Face.Texture)
local fma = plr.Character.Head.Face.Texture
local teleportData = {
jobId = game.JobId;
-- I WANT FACEID TO BE TRANSFERED
faceid = fma
}
qs:FireAllClients("display")
teleportOptions:SetTeleportData(teleportData)
tps:TeleportPartyAsync(placeId, playersToTeleport, teleportOptions)
end
i need faceid to be passed
server script on the server being teleported to
players.PlayerAdded:Connect(function(plr)
local joinData = plr:GetJoinData()
print("jdata",joinData)
local rqac = joinData.TeleportData
print("qaca",rqac)
for ind, val in pairs(rqac) do
print(ind, val)
end
wait(2)
local faceaa = rqac.fma
print("face",faceaa)
chr:WaitForChild("Head").Face.Texture = faceaa
end)
end)
everytime i try this, it gives me nil error on the table. like the joindata . teleportdata is not working?? im not sure please help.