I need the UserIds to teleport to the “ownerspawnpart”
local admins = {
42312299,
5052029921
}
local ownerspawnpart = workspace.Map.OwnerSpawn
game.Players.PlayerAdded:Connect(function(plr)
if table.find(admins,plr.UserId) then
local char = plr.Character or plr.CharacterAdded:Wait()
local HRP = char:WaitForChild("HumanoidRootPart")
HRP.Position = ownerspawnpart.Position
end
end)
local admins = {
42312299,
5052029921
}
local ownerspawnpart = workspace.Map.OwnerSpawn
game.Players.PlayerAdded:Connect(function(plr)
if table.find(admins,plr.UserId) then
local char = plr.Character or plr.CharacterAdded:Wait()
task.wait(0.05)
char:PivotTo(ownerspawnpart.CFrame)
end
end)