hey im pretty sick rn so im gonna make this short, i know theres topics like this but im handling if the character already exists. this works fine with 1 player but anything higher than that it doesn’t do anything past the character line
local function spawnAtPart(part)
for _, player in Players:GetPlayers() do
local character = player.Character or player.CharacterAdded:Wait()
local hrp = character:FindFirstChild("HumanoidRootPart")
if hrp then
character:PivotTo(part:GetPivot())
orientCamEvent:FireClient(player, part.CFrame)
print("Teleported:", player.Name)
else
warn("No HumanoidRootPart for", player.Name)
end
end
end
ah sorry, when i play singleplayer it prints the teleported line, but multiplayer prints nothing, even a test print i put after the character defining line
Player.CharacterAdded will never fire if the character already exists. If the Player.Character doesn’t exist at the point of teleporting people, then don’t teleport them. Nil check the character and don’t do anything with them if it is nil. You’re essentially yielding the script indefinitely