Greetings! I have created a script for my game. It teleports you to a place, but it doesn’t seem to work.
Script:
local TeleportService = game:GetService("TeleportService")
local Place = 5025468224
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
TeleportService:Teleport(Place, player)
end)
I think this means you tried to teleport, then tried to teleport again before the first teleport was complete. You should add a check to see whether you are already teleporting, and if so, don’t try to teleport again.
Your code seems fine, so it might be a simple error on roblox’ servers.
I assume you clicked the button more than once judging from the red (IsTeleporting) error.
You might want to try again or rejoin. Teleporting sometimes takes longer than usual.
If however, you keep receiving a message on your screen saying there’s something wrong, you might want to check from where to where you’re teleporting.