I'm having trouble with place teleportation. Just to summarize what my problem exactly is; I'll start with the general area everything is in. I'm trying to get it so that when you press a TextButton on your screen, it will teleport you to a different server. And I've put a ScreenGUI in the StarterGUI folder, and inside that is a TextButton. I've tried multiple scripts I know; but it hasn't worked; for instance, getting TeleportService and doing something else. I forgot exactly what I did to be completely honest; but I hope that doesn't get in the way of anything. Any help?
Script: script.Parent.NewCharbutton.MouseButton1Click:connect(function() game:GetService('TeleportService'):Teleport(game.Players.LocalPlayer, [517540166]))
Gyazo of my folders: https://gyazo.com/e29b417fb46b64e965c3e380dd9b6407
Gyazos of the code itself: https://gyazo.com/ff71655143ab294f33872f4c431d33c8 https://gyazo.com/95a9fda8aba328e9eb8a8aed18f0226d

5 comments
Can you give us an example of a script?
Uhh, can you post your current script? If this is a request, it should not be on here.
@Above I'll provide a script! Let me quickly edit.
Put it in a code block. Is the script a LocalScript? It needs to be a LocalScript to use LocalPlayer.
It is a localscript; just provided both the script and a gyazo of the folders I put it in.