I’ve been having this problem, with server joinings on my game. I’ve tried both {player} and player at line 22, so I don’t know what else causes the problem, can someone help me.
local MeetingDataStore = game:GetService("DataStoreService"):GetDataStore("MeetingDataStore")
local TeleportService = game:GetService("TeleportService")
game.ReplicatedStorage.VerifyKeys.OnServerEvent:Connect(function(player,MeetingId,password)
local meeting = string.lower(MeetingId)
local plridkey = meeting.."-CreatorID"
local serveridkey = meeting.."-ServerID"
local pass = meeting.."-Password"
local UserId
local ServerId
local Password
pcall(function()
UserId = MeetingDataStore:GetAsync(plridkey)
ServerId = MeetingDataStore:GetAsync(serveridkey)
Password = MeetingDataStore:GetAsync(pass)
end)
if UserId ~= nil then
if password == Password then
TeleportService:TeleportToPrivateServer(6519214595,ServerId,{player})
else
game.ReplicatedStorage.VerifyKeys:FireClient(player,"invalid")
end
else
game.ReplicatedStorage.VerifyKeys:FireClient(player,"invalid")
end
end)