Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Attempted to teleport to a place that is restricted?

Asked by 4 years ago
Edited 4 years ago

So i made a friends list game which doesn't work... Place : https://web.roblox.com/games/5572121130/Join-friends-simulator output : output : RaiseTeleportInitFailedEvent: Teleport failed because This game is restricted (Unauthorized) Script :

game.Lighting.RemoteEvent.OnClientEvent:Connect(function()
    local Player = game.Players.LocalPlayer
    local TPS = game:GetService("TeleportService")

    for i, v in pairs(Player:GetFriendsOnline(40)) do 
              local PlayerGui = Player:WaitForChild("PlayerGui"):WaitForChild("ScreenGui2")
        local newFrame = game.ReplicatedStorage.Frame:Clone()
            newFrame.TextLabel.ImageLabel.Image = "https://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=150&Format=Png&username="..v.UserName
            newFrame.TextLabel.Text = v.UserName
        if newFrame.TextLabel.TextLabel.Text == "Website" then
            newFrame.TextLabel.TextButton:Destroy()
            newFrame.TextLabel.TextLabel.TextColor3 = Color3.new(1, 251, 255)
        end
        if newFrame.TextLabel.TextLabel.Text == not "Website" then
            newFrame.TextLabel.TextLael.TextColor3 = Color3.new(59, 255, 5)
        end
            newFrame.Parent = Player:WaitForChild("PlayerGui"):WaitForChild("ScreenGui2").Frame.ScrollingFrame
            if v.LastLocation then
            newFrame.TextLabel.TextLabel.Text = v.LastLocation
            newFrame.TextLabel.TextButton.MouseEnter:Connect(function()
            newFrame.TextLabel.TextButton.Text = v.GameId
        end)
        newFrame.TextLabel.TextButton.MouseLeave:Connect(function()
                newFrame.TextLabel.TextButton.Visible = false
                newFrame.TextLabel.TextButton.Visible = false   
                newFrame.TextLabel.TextButton.Text = ""
            end)
            newFrame.TextLabel.TextButton2.Text = "Join "..v.UserName
            newFrame.TextLabel.TextButton2.MouseButton1Click:Connect(function()
                TPS:TeleportToPlaceInstance(v.PlaceId, v.GameId, Player)
            end)
        end
        end
end)
0
Is the friends games privates? Zeuxulaz 148 — 4y
0
Probably the prob Zeuxulaz 148 — 4y
0
Nope IEntity_303I 80 — 4y
0
ill send the output : RaiseTeleportInitFailedEvent: Teleport failed because This game is restricted (Unauthorized) IEntity_303I 80 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago

My guess is you have to enable teleports in game settings. Also how dare you have basicly the same user as me.

0
Entity_246 i am a fan of Entity303 ok? IEntity_303I 80 — 4y
Ad
Log in to vote
0
Answered by 3 years ago

did you add the universe id or the place id?

0
i made this post long ago IEntity_303I 80 — 3y
0
ill try to see IEntity_303I 80 — 3y
0
TPS:TeleportToPlaceInstance(v.PlaceId, v.GameId, Player) IEntity_303I 80 — 3y
0
TPS:TeleportToPlaceInstance(v.PlaceId, v.GameId, Player) IEntity_303I 80 — 3y
View all comments (2 more)
0
TPS:TeleportToPlaceInstance(v.PlaceId, v.GameId, Player) IEntity_303I 80 — 3y
0
TPS:TeleportToPlaceInstance(v.PlaceId, v.GameId, Player) IEntity_303I 80 — 3y

Answer this question