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

:SetPlacePermissions(Method) I'm I doing it right ?

Asked by 10 years ago

Ohai, so here is the situation.

Let's say there is a place that is created with the CreatePlaceAsync (Method) that has a script in workspace:

invited = {"Hydrablox","Telamon","bloxxer459"} updatePermission = game:GetService("AssetService"):SetPlacePermissions( PlaceID, 3, invited ) wait(10)

game:GetService("AssetService"):SavePlaceAsync()

PlaceID = The ID of the place, example: 058964564 3 = Represents the "InviteOnly" AccessType invited = An array/table as you can see above and it's content are the names of players.

Now what if i would teleport to this place with the account "zombiehax7" ? Will i be able to enter it or not ? I expect not since that name isn't listed in the array/table invitelist but i just want to make sure that i'm doing the right thing in the script above.

Btw, is that :SavePlaceAsync() necessary ?

0
Is this feature on the official Roblox...? FromLegoUniverse 264 — 10y
0
yYes Hydrablox 0 — 10y

1 answer

Log in to vote
1
Answered by 10 years ago

No, you will not be able to teleport to a place that you do not have permission to enter. SavePlaceAsync, I believe, is not necessary to save the entering permissions unless you were using a custom permissions system.

Ad

Answer this question