Advertisement
InTesting

Fix

Jul 29th, 2019
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.14 KB | None | 0 0
  1. print('https://pastebin.com/raw/XNMAGzQC')
  2. print'Prefix = fix/'
  3. print('Availible services: ')
  4. print('workspace')
  5. print('Players')
  6. print('Lighting')
  7. script.Parent = owner.Character
  8. local function Fix_workspace()
  9.     local services = {
  10.         Players = game:GetService("Players")
  11.         }
  12.    
  13.     if workspace.Name=='Workspace'then
  14.         workspace.Name = 'Workspace_Replacement_Name'
  15.     end
  16.     for _,v in pairs(workspace:GetChildren())do
  17.         pcall(function()
  18.             if not v:IsA'Camera'and not v:IsA'Terrain'and v.Name~='Base'and
  19.                 not services.Players:GetPlayerFromCharacter(v)and v.Name~='Default Dummy'
  20.                 then
  21.                 v:Destroy()
  22.             end
  23.         end)
  24.     end
  25.     print('Workspace: Done')
  26. end
  27. local function Fix_Lighting()
  28.     local services = {
  29.         lighting = game:GetService("Lighting")
  30.     }
  31.     if services.lighting.Name=='Lighting'then
  32.         services.lighting.Name = 'Lighting_Replacement_Name'
  33.     end
  34.     local lighting = services.lighting
  35.     pcall(function()
  36.         for _,v in pairs(lighting:GetChildren())do
  37.             v:Destroy()
  38.         end
  39.     end)
  40.     lighting.Ambient = Color3.fromRGB(0,0,0)
  41.     lighting.Brightness = 1
  42.     lighting.ColorShift_Bottom = Color3.fromRGB(0,0,0)
  43.     lighting.ColorShift_Bottom = Color3.fromRGB(0,0,0)
  44.     lighting.FogColor = Color3.fromRGB(192,192,192)
  45.     lighting.FogStart = 0
  46.     lighting.GeographicLatitude = 41.73
  47.     lighting.OutdoorAmbient = Color3.fromRGB(127,127,127)
  48.     lighting.ClockTime = 17
  49.     print('Lighting: Done')
  50. end
  51. local function Fix_Players()
  52.     local players = game:GetService("Players")
  53.     if players.Name=='Players'then
  54.         players.Name = 'Players_Replacement_Name'
  55.     end
  56.     for _,v in pairs(players:GetChildren())do
  57.         pcall(function()
  58.             if not v:IsA'Player'then
  59.                 v:Destroy()
  60.             end
  61.         end)
  62.     end
  63.     players.RespawnTime = 5
  64.     print('Players: Done')
  65. end
  66.  
  67. local list = {
  68.     Fix_workspace,Fix_Lighting,Fix_Players
  69.     }
  70. owner.Chatted:Connect(function(msg)
  71.     msg = msg:lower()
  72.     local a,b = string.find(msg,'fix/')
  73.     if b then
  74.         local sub = msg:sub(b + 1)
  75.         if sub=='workspace'then
  76.             Fix_workspace()
  77.         elseif sub=='lighting'then
  78.             Fix_Lighting()
  79.         elseif sub=='all'then
  80.             for _,v in pairs(list)do
  81.                 v()
  82.             end
  83.         elseif sub=='players'then
  84.             Fix_Players()
  85.         end
  86.     end
  87. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement