Here is what i have so far
--! local x = script.Parent x.Parent = game.StarterGui x.Adornee = game.Workspace.TpButton.Parts function onclicked() game:GetService('TeleportService'):Teleport(147513144, game.Workspace.LocalPlayer) end x.TeleportButton.MouseButton1Down:connect(onclicked)
This isn't really possible, how you're doing it. The MouseButton1Down event does not give the argument of who click on the button. Instead run the connection on the client, that should make it so when the client clicks the button it runs on their client, meaning you know who clicked the button.
That should work in a LocalScript, remember to fix this: