I have run into this annoying problem called HTTP Error 403 Forbidden with this script, can someone help me please fix this >.<
function onClicked()
if Player then
local p = Instance.new ("IntValue")
p.Value = ui.Text
---ui.Text is where the player will input the players ID and then it will be
local succeeded, errorMsg, placeId, instanceId = game:GetService("TeleportService"):GetPlayerPlaceInstanceAsync(p.Value)
p:Destroy()
if succeeded then
game:getService("TeleportService"):TeleportToPlaceInstance(placeId, instanceId, Player)
end
end
end
FriendButton.MouseButton1Click:connect(onClicked) |