Are you alright, scripters? I was working in an Area 51-styled game where I want to optimize the FPS of the game by constantly deleting rooms any player are not in. I've tried to divide each room in Models (group) and I have tried to make a Script (in Command Bar) to trying it, but didn't succes. My original script is this (in Command Bar):
for i, part in pairs game.Workspace.RailGroup:GetChildren() do if part:IsA("BasePart") then Transparency = 1 end end
It did not worked.
(the Model I am working with right now is "RailGroup", and its parts, "Rail" or "Rail1").
I know it may be a basic function about Scripting in Roblox, but seriously I would be grateful if you, Scripters, correct me, please.
My best wishes and have a nice day, Scripters. =)