Greetings, I’m fairly new to the in pairs function or whatever it’s called, but I’m having trouble with a script. Basically I have walls in a folder to mark where invisible walls are, but for whatever reason, it isn’t working, no errors are popping up in the console either.
Here’s the script:
function WallHandler(w)
for i,v in pairs(w:GetChildren()) do
if(v:IsA("BasePart")) then
v.Transparency = 1
v.Locked = true
end
end
end
Before you ask “Why not just make the walls invisible in Studio?”
The reason for this is is that I like to know where stuff is, think about it like the Hammer editor, you can see stuff in the editor to see where you’ve placed stuff and where stuff is, but when you’re actually playing the map, it’s not there.