Is there a way to find the player without a local script? or is there a way to get the name of the player with something else? Would I be able to use a parameter for this and how do I find the variable player?
Link = "510411669"
local TeleportService = game:GetService("TeleportService")
function B1()
if player then
TeleportService:Teleport(Link, player)
end
Button.MouseButton1Click:connect(B1)

1 comment
You can do the mousebutton1click logic in a local script and then fire the server telling the server to teleport the player using remote events. The first parameter of a remote event is always the player that fired the event.