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

How to script a Texture Remover GUI?

Asked by 4 years ago

I am creating a game that includes a good amount of textures. It's my understanding that certain textures can cause lag, especially when used extensively. For players with lower-end computers, I would like to create a GUI that allows the textures to be turned on and off, thus eliminating lag from their experience. I am assuming this would be fairly easy to do...but obviously I am not very skilled in scripting, which is why I am here. Any help or guidance in this would be much appreciated.

(Don't know if this would be of any help, but I have a small script that I believe may be useful...)

for i,v in pairs(game:GetDescendants()) do if v.Name == "Texture" then v:Destroy()

0
What you already have could just about work but I would disable it, not destroy it, and I would use its ClassName to identify it. Lastly I would read from the players Quality setting to see if I should remove the textures or not, seeing as you were using a Gui, but that all up to personal choice. Make sure this is all in a local script, lest you remove the textures for everyone. Benbebop 1049 — 4y

Answer this question