The bot wouldn't let me put "How should I cut down on lag"
I am planning on a quite large game with lots of scripts and I am worried that this might cause to much lag. One particular script I am worried about is something like this:
while wait () do
if script.Parent.Value.Value == true then
--do something simple like changing a surface GUI or enabling another script
end
end
I wouldn't be too worried if there were just one or two of these scripts in my game, but unfortunately I currently have about 15 of them and am planning on increasing that number to around 50 when I add more content to the game. So far I have not had significant lag, but my computer is probably better than the average ROBLOX player's device. I just need some advice. Thanks

3 comments
Ps. I REALLY like some of the new ROBLOX updates. Especially the server/ client modes on testing :D
Models lag the most, union them and the server won't have to load every instance, just one!! say while wait(.05) do to stop .05th of the lag... The render may be less though. If statements in while loops doesn't really stop lag...
Check Script performance in view to see if any script is causing problem and alot of cpu%