Hi there. I just made a pretty simple script that teleports the local player to a different place within the experience. I know that this error means there’s something wrong with syntax, but I don’t see what I’m doing wrong. Script:
local button = script.Parent;
local players = game:GetService("Players");
local teleService = game:GetService("TeleportService");
local gameID = 10968441118;
button.MouseButton1Click:Connect(function()
teleService:TeleportAsync(gameID, players.LocalPlayer);
end)
local button = script.Parent;
local players = game:GetService("Players");
local teleService = game:GetService("TeleportService");
local gameID = 10968441118;
button.MouseButton1Click:Connect(function()
teleService:TeleportAsync(gameID, {players.LocalPlayer});
end)
local button = script.Parent;
local players = game:GetService("Players");
local teleService = game:GetService("TeleportService");
local gameID = 10968441118;
button.MouseButton1Click:Connect(function()
teleService:Teleport(gameID, players.LocalPlayer);
end)