Advertisement
realmaster42

[ROBLOX] BASIC FIX EXPLOITING MESS

Apr 10th, 2017
1,054
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. --by realmaster42
  2. --delete most basic exploiting issues by skids
  3. --make basic basepart incase stuff got deleted
  4. --unpatchable
  5.  
  6. function scanBadInstance(e)
  7. for i,v in pairs(e:children()) do
  8. if (v:IsA('Sound') or v:IsA('Fire') or v:IsA('Smoke') or v:IsA('Decal') or v:IsA('Sparkles') or v:IsA('ParticleEmitter')) then
  9. v:Destroy()
  10. else
  11. if v:IsA('BasePart') then v.CanCollide = true end
  12. scanBadInstance(v)
  13. end
  14. end
  15. end
  16.  
  17. local b=nil
  18. local h=Instance.new('Hint',workspace)
  19. h.Text="This server has been saved using marcoantoniosantos3's savior anti-exploit script."
  20.  
  21. function createBasePart()
  22. b = Instance.new('Part', workspace)
  23. b.Anchored=true
  24. b.Size = Vector3.new(256,256,256)
  25. b.Position = Vector3.new(0,0,0)
  26. b.Material = 'Grass'
  27. b.TopSurface = Enum.SurfaceType.Smooth
  28. b.BrickColor = BrickColor.new("Bright green")
  29. end
  30. while (true) do
  31. game:service('Lighting').FogEnd = 9999
  32. game:service('Lighting').FogStart = 1
  33. game:service('Lighting').Ambient = Color3.new(1,1,1)
  34. game:service('Lighting').Brightness = 3
  35.  
  36. for i,v in pairs(game:service('Lighting'):children()) do
  37. if v:IsA('ColorCorrectionEffect') or v:IsA('SkyBox') or v:IsA('Sky') or v:IsA('BloomEffect') or v:IsA('BlurEffect') or v:IsA('SunRaysEffect') then
  38. v:Destroy()
  39. end
  40. end
  41.  
  42. scanBadInstance(workspace)
  43.  
  44. if b==nil then
  45. createBasePart()
  46. elseif b.Parent~=workspace then
  47. createBasePart()
  48. elseif b.Position.Y < 0 then
  49. createBasePart()
  50. end
  51. wait(0)
  52. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement