How would i make a Fast mode?

How would i go about making a Fast Mode for my game?

Basicly when a player clicks a button all the textures would disapear and turn into Smooth Plastic ive looked on youtube but i cant find anything.

2 Likes

Please expand your question further.

loop through the workspace’s children via a local script and if the object is a part, set the enum material to plastic

As long as none of the textures are decals, this should work

for key, object in pairs(workspace:GetDescendants()) do
     if object:IsA("Part") or object:IsA("UnionOperation") then
          object.Material = Enum.Materal.SmoothPlastic
     end
end

(I didn’t type this in studio so there may be a misspelling. Just make sure there are no errors in the output from this.)

3 Likes

I was searching for this, thank you.

1 Like

I would do workspace:GetDescendants() instead if you would want every part in the game smooth plastic. With your method, only parts parented to workspace would turn to SmoothPlastic, parts under folders, models, etc will not be changed.

4 Likes

Oh yeah. Sorry, I updates it now.

2 Likes

Wait what about if its a mesh part? Do i put

or object:IsA("MeshPart")

Yeah that should work. Sorry I forgot about mesh parts.

3 Likes

Also, textures are making game lag, you didn’t made for textures.

2 Likes

Just locally destroy all of them.

2 Likes

I have no idea how to do that.

1 Like

I would imagine if the part was a meshpart, or just texture you would destroy the texture, then set the meshpart’s texture to nil.

 for key, object in pairs(workspace:GetDescendants()) do
     if object:IsA("Part") or object:IsA("UnionOperation") then
          object.Material = Enum.Material.SmoothPlastic
         elseif object:IsA("MeshPart") then
           object.Material = Enum.Material.SmoothPlastic
          object.TextureId = nil -- if that doesn't work, just change it to 0
        elseif object:IsA("Texture") then
          object:Destroy()
     end
end

I didn’t actually test this, so no idea if it will work.

2 Likes

Wow everything including my characters hats have no texture now im asuming to fix that i just remove the

Since it wont really matter if meshparts have a texture

Edit: I was correct it worked!

Some words are written wrong:
Enun (Enum) line 5
Materal (Material) line 3

1 Like