Hi, so I'm pretty new to Lua and I need help with my script. So basically I'm just trying to make it so that I can teleport myself to specific coordinates. Here's my current script that I made to try and teleport myself to specific coordinates. But it won't work, and I keep on getting an error through my output saying "21:05:04.287 - Workspace.Script:1: attempt to index nil with 'position'" And I just don't know how to fix it, can someone please help me?
game.Players.LocalPlayer.position = Vector3.new(0, 0, 0) -- The script that's giving me errors making it so that I can't make it teleport myself to specific coordinates.

4 comments
See: https://developer.roblox.com/en-us/articles/How-to-teleport-within-a-Place
Also don't duplicate questions
Well my first question got taken down since it wasn't constructive, so I was just trying to re-make the question a little bit more better so that I can post my question without it getting taken down.
If you make duplicate questions then your question can also be taken down