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)
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!
The teleport starts, then it claims that there are insufficient priviledges. The game I am teleporting the player to is inactive. Is that the problem?
Yes, but you can put the place you want to teleport to inside of the place your at, then it would work.
Haha, yeah, I had to add it to the game. Thanks!
No problem :D
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
This is a request, please show a script, and then we'll help improve or fix it
I added the script ^
thanks, the problem is that it has no clue who the player is. Give me a minute and ill figure it out
^ Thank you! Haha, I completely forgot about that.