Area where players can't build

Is there a way to make it so that players can’t build with their dynamic resources in a certain area?

Yeah, make a barrier on the bottom layer with no collision/maybe collision something to do with barriers lol.

2 Likes

just make it so when player enters zone → Grant -9999999 of each terrain

2 Likes

I don’t want the player to completely lose all their terrian, is there a way to have the player get it all back once they leave the zone?

probably not, but I would ask a smarter former first

Make a zone where when they enter it’s removes their blocks and then when they leave they get their blocks back add another zone to grant their blocks back

Use an item inventory manager to update a property to the number of blocks a player has. Then take all of their blocks when they enter the zone and when they leave, grant them the initial amount.

Did you… try my response?

I was asking because they seemed focused on a different aspect, but I’ve heard the barrier method works as well. I’m not trying to bother them.

(ignore this)

The area I want them to not be able to build in is a shop. The zone method would definitely work, but it could lead to confusion as players wouldn’t get the terrain they bought until they left the shop.

I think I understand what you mean, having a barrier that has no collision for players, but collision for builds. Unfortunately, I don’t think that is possible. Any barrier that the players can walk through, they can also build on.

Try putting the barrier on the below layer and keeping collision on? That way players can still go past it? I wait scratch that that probably won’t work at all. Let me think.