Is my low gfx/lag script effective?

What I want to achieve:
A local script that easily reduces lag, fancy textures and materials without lag spikes

What I have:

		local children=workspace:getDescendants()
		local index=0
		local amount=children*.01
		for i=1,amount do
			game:GetService("RunService").RenderStepped:wait()
			for i=1,amount do
				local v=children[index+i]
				if v:isA'Texture'then
					v:destroy()
				end
				if v:isA'BasePart'then
					v.Material=Enum.Material.SmoothPlastic
				end
			end
		end
		index=index+amount

Is this effective? Please send feedback to optimize this local script.
My game has 3849 parts - all with textures - and I would like to reduce the lag that comes from these instances.

Flag your post. It will be sent to a moderator for review.

1 Like

I read up about deleting a post, i know now. But thanks anyways

Lets get back to the actual topic now.