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

My game is running at way to low of FPS than i should be, any help?

Asked by 4 years ago

hello.

i have been trying to make my game less laggy but it wouldnt work, i would say the game is running at about 1-5 fps. The script that i have been trying to work hasnt been working. heres the script:

wait(1)

local parts = game.Workspace:GetChildren()
for i = 1,#parts do
    local name = string.lower(parts[i].Name)
    if (string.find(name,"lag") ~= nil) and ((string.find(name,"anti") ~= nil) or (string.find(name,"no") ~= nil) or (string.find(name,"remover") ~= nil) or (string.find(name,"killer") ~= nil)) and (parts[i] ~= script) then
        parts[i]:remove()
    end
end

wait()
script:remove()

if you can help that would be great

Answer this question