Trying to teleport humanoid to area


game.Players.PlayerAdded:Connect(function(joining)
wait(15)
local Humanoid = joining.Parent:FindFirstChild(“Humanoid”)
Humanoid:PivotTo(CFrame.new(Vector3.new(135.9, 45.3, -103.2)))
end)

What Humanoid is defined in the script is game.Players:FindFirstChild("Humanoid") because joining is a player in game.Players. Along with that, you need to do PivotTo on the character model, not the humanoid. It should be something like this:

local character = joining.Character or joining.CharacterAdded:Wait() -- gets player's character or wait if it doesn't exist yet
character:PivotTo(CFrame.new(Vector3.new(135.9, 45.3, -103.2))) -- teleports character

Yay, thank you so much for your help! Much appreciated

Sorry to bother you but if it works, consider marking my post above as a solution so it can be easier to access for other people having similar problems