function onClick(Click)
local player = game.Players:GetPlayerFromCharacter(Click.Parent)
if player then
game:GetService("TeleportService"):Teleport(164893711, player)
end
end
MouseButton1Click:connect(onClick)
What im trying to do is get this button to teleport to a place im not good with gui buttons

1 comment
Thank you so much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!