Since the player loads before the character, character is nil when you try to use it.
You need to use CharacterAdded.
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
-- now you can use character
end)
end)
Note that that means whatever you put in there will run every time the player respawns. You’ll need to disconnect the CharacterAdded event inside the handler if you only want it to run the first time.
WalkToPoint is a property, not a method (and anyways, its a Vector3, not a CFrame). I don’t think you can set it directly, but possibly. Change that line to:
Titan.Humanoid:MoveTo(playerPos.Position)
The above changes the WalkToPoint, and should work fine. You can also try (not sure if this works though) setting it directly: