Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local LightingLock = true
- local Antivirus = {Enabled = true, Names = {"LocalScript"}
- local WhiteList = {Enabled = false, WhiteListedUsers = {"Player1"}} -- Enabled whitelist only allows people with their names in the table to join the game.
- -- Do not edit below this point if you do not know what you are doing --
- local ActiveProtectChest
- if not game.ServerStorage:FindFirstChild("Exploit Protection Quarantine V.1") then
- ActiveProtectChest = Instance.new("Folder", game.ServerStorage)
- ActiveProtectChest.Name = "Exploit Protection Quarantine V.1"
- else
- ActiveProtectChest = game.ServerStorage:FindFirstChild("Exploit Protection Quarantine V.1")
- end
- game.Lighting.ChildAdded:connect(function(Instance)
- if LightingLock then
- if Instance.ClassName == "Sky" then
- wait()
- Instance.Parent = ActiveProtectChest
- end
- end
- end)
- local Lighting = game:GetService("Lighting")
- local LightingNames = {"Ambient","Brightness","ColorShift_Bottom","ColorShift_Top","GlobalShadows","OutdoorAmbient","Outlines","ShadowColor","GeographicLatitude","TimeOfDay","FogColor","FogEnd","FogStart"}
- local LightingProperties = {Lighting.Ambient,Lighting.Brightness,Lighting.ColorShift_Bottom,Lighting.ColorShift_Top,Lighting.GlobalShadows,Lighting.OutdoorAmbient,Lighting.Outlines,Lighting.ShadowColor,Lighting.GeographicLatitude,Lighting.TimeOfDay,Lighting.FogColor,Lighting.FogEnd,Lighting.FogStart}
- Lighting.Changed:connect(function()
- if LightingLock then
- for i,v in pairs(LightingNames) do
- Lighting[v] = LightingProperties[i]
- end
- end
- end)
- game.Workspace.DescendantAdded:connect(function(Instance)
- if Antivirus.Enabled then
- for i, v in pairs (Antivirus.Names) do
- if string.lower(Instance.Name) == string.lower(v) then
- wait()
- Instance.Parent = ActiveProtectChest
- end
- end
- end
- end)
- game.Players.PlayerAdded:connect(function(Player)
- if WhiteList.Enabled then
- local PlayerAllowed
- for i, v in pairs (WhiteList.WhiteListedUsers) do
- if Player.Name == v then
- PlayerAllowed = true
- break
- end
- end
- if not PlayerAllowed then
- Player:Kick("You are not whitelisted on this server.")
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement