Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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 ?

2 comments

0

Is this feature on the official Roblox...?

0

yYes

1 answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.