Disclaimer, I know nothing about scripting, I just want to know if this is possible.
Hello! I was wondering if you could disable stuff in a place from the main game. Let’s say I want to disable shift lock or something. Can I just put a script in the main game telling the script to disable shift lock in all the places? I was just curious about this, thanks for reading this
Yes. When creating a new place via CreatePlaceAsync() it uses a place template. So if you have a script within that place template to disable shift-lock, all places created off of this template will have shift-lock disabled.
How do I find this “place template”? Is it the game itself? I created about 5 places inside the game, by just clicking on the “add new place” button, will this still work?
Ahhh okay. So I believe when manually creating places you would have to go through each place and add the shift-lock script. When creating a new place using a script you use the CreatePlaceAsync() function. Then in the function parameters you put the PlaceName, the PlaceID of the template, and the description of this place. For example -
local templatePlaceID = 0000000000
game:GetService("AssetService"):CreatePlaceAsync("Place1", templatePlaceID, "A place I created!")
I know you said you know nothing of scripting though. So when creating places manually, you should add your Shift-Lock disable script to each place via Studio(Obviously).
Just wasn’t sure about that, nice to know about so in the future, I can do stuff a bit better, thanks!