Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Lag Test 2021 (https://www.roblox.com/library/6356806222) anti lag
- -- V1 (ok)
- while wait() do
- for _,part in pairs(game.Workspace.Parts:GetChildren()) do
- part.Anchored = true
- end
- end
- -- V2 (great)
- game.Workspace.Parts.ChildAdded:Connect(function(part)
- part.Anchored = true
- end)
- -- V3 (bad)
- game.Workspace.Parts.ChildAdded:Connect(function(part)
- part.CanCollide = false
- end)
- -- V4 (great)
- game.Workspace.Parts.ChildAdded:Connect(function(part)
- wait()
- part:Destroy()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement