This is my script, I'm trying to make this the most optimized I can.
1 | script.Parent.Touched:Connect( function (t) |
2 | if not (t.Locked) then |
3 | t:Destroy() |
4 | end |
5 | end ) |
this is a giant area covering the lobby of the map, we have a a building feature and I don't want anyone building in the lobby.
Like what Feahren said use a Boolean value and if its a tool remove it from their inventory. If you don't want anyone building in the lobby then you can enable the feature once they get teleported to a map. You can do this by simply using remote events or functions.