How can I fix this script? Nothing happens when I click on the TextButton.
local id = 218755429 local button = script.Parent button.MouseButton1Click:connect(function() game:GetService("TeleportService"):Teleport(id) end)
Make sure this is a LOCAL SCRIPT
id = 218755429 button = script.Parent button.MouseButton1Click:connect(function() game:GetService("TeleportService"):Teleport(id) end)
If this works please accept my answer.
If not, please, let me know and I'll try and fix it
THANKS!