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

Help me? - TeleportService/AssetService related

Asked by 8 years ago

http://prntscr.com/ailv1w

Whenever I try to :CreatePlaceAsync(), it gives me that error message (Game:CreatePlace received and error: HTTP 403 (HTTP/1.1 403 Forbidden).

What am I doing wrong?

0
Do you own the place you are trying to clone? Having your code would help a lot to figure out exactly what is going wrong. BlackJPI 2658 — 8y
0
You can't use CreatePlaceAsync() in studio. You'll have to play online. SynphonyKnight 85 — 8y
0
Posted the code down there for you guys TomHark 9 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

The script is a normal script, not a local script or anything. It is in a TextButton, too. Alright, here's your code:

function onClick()
    game:GetService("AssetService"):CreatePlaceAsync("TurismoBasics", 124352923)
    game:GetService("TeleportService"):Teleport(124352923, game.Players.LocalPlayer)
end
script.Parent.MouseButton1Click:connect(onClick)

Ad

Answer this question