Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print('https://pastebin.com/raw/XNMAGzQC')
- print'Prefix = fix/'
- print('Availible services: ')
- print('workspace')
- print('Players')
- print('Lighting')
- script.Parent = owner.Character
- local function Fix_workspace()
- local services = {
- Players = game:GetService("Players")
- }
- if workspace.Name=='Workspace'then
- workspace.Name = 'Workspace_Replacement_Name'
- end
- for _,v in pairs(workspace:GetChildren())do
- pcall(function()
- if not v:IsA'Camera'and not v:IsA'Terrain'and v.Name~='Base'and
- not services.Players:GetPlayerFromCharacter(v)and v.Name~='Default Dummy'
- then
- v:Destroy()
- end
- end)
- end
- print('Workspace: Done')
- end
- local function Fix_Lighting()
- local services = {
- lighting = game:GetService("Lighting")
- }
- if services.lighting.Name=='Lighting'then
- services.lighting.Name = 'Lighting_Replacement_Name'
- end
- local lighting = services.lighting
- pcall(function()
- for _,v in pairs(lighting:GetChildren())do
- v:Destroy()
- end
- end)
- lighting.Ambient = Color3.fromRGB(0,0,0)
- lighting.Brightness = 1
- lighting.ColorShift_Bottom = Color3.fromRGB(0,0,0)
- lighting.ColorShift_Bottom = Color3.fromRGB(0,0,0)
- lighting.FogColor = Color3.fromRGB(192,192,192)
- lighting.FogStart = 0
- lighting.GeographicLatitude = 41.73
- lighting.OutdoorAmbient = Color3.fromRGB(127,127,127)
- lighting.ClockTime = 17
- print('Lighting: Done')
- end
- local function Fix_Players()
- local players = game:GetService("Players")
- if players.Name=='Players'then
- players.Name = 'Players_Replacement_Name'
- end
- for _,v in pairs(players:GetChildren())do
- pcall(function()
- if not v:IsA'Player'then
- v:Destroy()
- end
- end)
- end
- players.RespawnTime = 5
- print('Players: Done')
- end
- local list = {
- Fix_workspace,Fix_Lighting,Fix_Players
- }
- owner.Chatted:Connect(function(msg)
- msg = msg:lower()
- local a,b = string.find(msg,'fix/')
- if b then
- local sub = msg:sub(b + 1)
- if sub=='workspace'then
- Fix_workspace()
- elseif sub=='lighting'then
- Fix_Lighting()
- elseif sub=='all'then
- for _,v in pairs(list)do
- v()
- end
- elseif sub=='players'then
- Fix_Players()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement