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

I need to see if this script is efficient and if there if a way to improve it?

Asked by 3 years ago

This is my script, I'm trying to make this the most optimized I can.

script.Parent.Touched:Connect(function(t)
    if not(t.Locked)then
        t:Destroy()
    end
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.

0
Then use a Boolean to disable the building feature. If it is integrated into a Tool, then simply remove it from their inventory. Ziffixture 6913 — 3y

1 answer

Log in to vote
1
Answered by 3 years ago

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.

Ad

Answer this question