Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local _VARIABLE_PLAYER = "CrastificeDude612"
- local partsWithId = {}
- local awaitRef = {}
- local root = {
- ID = 0;
- Type = "ScreenGui";
- Properties = {
- Name = "EzDevGUI";
- ZIndexBehavior = Enum.ZIndexBehavior.Sibling;
- ResetOnSpawn = false;
- };
- Children = {
- {
- ID = 1;
- Type = "Frame";
- Properties = {
- Draggable = true;
- Active = true;
- BorderColor3 = Color3.new(0,104/255,69/85);
- Name = "MainWindow";
- Position = UDim2.new(0.0089754974469543,8,0.012357445433736,10);
- Selectable = true;
- Size = UDim2.new(0,305,0,30);
- BorderSizePixel = 3;
- BackgroundColor3 = Color3.new(1/255,124/255,1);
- };
- Children = {
- {
- ID = 2;
- Type = "Frame";
- Properties = {
- Position = UDim2.new(0,0,1,0);
- BorderColor3 = Color3.new(0,104/255,69/85);
- Size = UDim2.new(1,0,10.779024124146,0);
- BorderSizePixel = 3;
- BackgroundColor3 = Color3.new(1,1,1);
- };
- Children = {
- {
- ID = 3;
- Type = "ScrollingFrame";
- Properties = {
- ScrollBarImageColor3 = Color3.new(0,104/255,69/85);
- Active = true;
- BorderColor3 = Color3.new(0,104/255,69/85);
- ScrollBarThickness = 6;
- BackgroundTransparency = 1;
- ScrollingDirection = Enum.ScrollingDirection.Y;
- Size = UDim2.new(1,0,1,0);
- BackgroundColor3 = Color3.new(1,1,1);
- BorderSizePixel = 3;
- CanvasSize = UDim2.new(0,0,10,0);
- };
- Children = {
- {
- ID = 4;
- Type = "TextLabel";
- Properties = {
- FontSize = Enum.FontSize.Size14;
- TextColor3 = Color3.new(0,0,0);
- Text = "Lighting";
- BackgroundTransparency = 1;
- Size = UDim2.new(1,0,0,50);
- TextWrapped = true;
- Font = Enum.Font.GothamBold;
- Name = "LightingLabel";
- TextSize = 14;
- BackgroundColor3 = Color3.new(1,1,1);
- TextScaled = true;
- BorderSizePixel = 0;
- TextWrap = true;
- };
- Children = {};
- };
- {
- ID = 5;
- Type = "TextButton";
- Properties = {
- FontSize = Enum.FontSize.Size14;
- TextColor3 = Color3.new(0,0,0);
- Text = "Midnight";
- TextWrapped = true;
- Size = UDim2.new(1,0,0,25);
- TextSize = 14;
- Font = Enum.Font.Gotham;
- BackgroundTransparency = 1;
- Name = "MidnightButton";
- BackgroundColor3 = Color3.new(1,1,1);
- TextScaled = true;
- BorderSizePixel = 0;
- TextWrap = true;
- };
- Children = {
- {
- ID = 6;
- Type = "Script";
- Properties = {};
- Children = {};
- };
- };
- };
- {
- ID = 7;
- Type = "UIListLayout";
- Properties = {
- SortOrder = Enum.SortOrder.LayoutOrder;
- };
- Children = {};
- };
- {
- ID = 8;
- Type = "TextButton";
- Properties = {
- FontSize = Enum.FontSize.Size14;
- TextColor3 = Color3.new(0,0,0);
- Text = "Dawn";
- TextWrapped = true;
- Size = UDim2.new(1,0,0,25);
- TextSize = 14;
- Font = Enum.Font.Gotham;
- BackgroundTransparency = 1;
- Name = "DawnButton";
- BackgroundColor3 = Color3.new(1,1,1);
- TextScaled = true;
- BorderSizePixel = 0;
- TextWrap = true;
- };
- Children = {
- {
- ID = 9;
- Type = "Script";
- Properties = {};
- Children = {};
- };
- };
- };
- {
- ID = 10;
- Type = "TextButton";
- Properties = {
- FontSize = Enum.FontSize.Size14;
- TextColor3 = Color3.new(0,0,0);
- Text = "Noon";
- TextWrapped = true;
- Size = UDim2.new(1,0,0,25);
- TextSize = 14;
- Font = Enum.Font.Gotham;
- BackgroundTransparency = 1;
- Name = "NoonButton";
- BackgroundColor3 = Color3.new(1,1,1);
- TextScaled = true;
- BorderSizePixel = 0;
- TextWrap = true;
- };
- Children = {
- {
- ID = 11;
- Type = "Script";
- Properties = {};
- Children = {};
- };
- };
- };
- {
- ID = 12;
- Type = "TextButton";
- Properties = {
- FontSize = Enum.FontSize.Size14;
- TextColor3 = Color3.new(0,0,0);
- Text = "Dusk";
- TextWrapped = true;
- Size = UDim2.new(1,0,0,25);
- TextSize = 14;
- Font = Enum.Font.Gotham;
- BackgroundTransparency = 1;
- Name = "DuskButton";
- BackgroundColor3 = Color3.new(1,1,1);
- TextScaled = true;
- BorderSizePixel = 0;
- TextWrap = true;
- };
- Children = {
- {
- ID = 13;
- Type = "Script";
- Properties = {};
- Children = {};
- };
- };
- };
- {
- ID = 14;
- Type = "TextButton";
- Properties = {
- FontSize = Enum.FontSize.Size14;
- TextColor3 = Color3.new(0,0,0);
- Text = "Very Foggy";
- TextWrapped = true;
- Size = UDim2.new(1,0,0,25);
- TextSize = 14;
- Font = Enum.Font.Gotham;
- BackgroundTransparency = 1;
- Name = "VeryFoggyButton";
- BackgroundColor3 = Color3.new(1,1,1);
- TextScaled = true;
- BorderSizePixel = 0;
- TextWrap = true;
- };
- Children = {
- {
- ID = 15;
- Type = "Script";
- Properties = {};
- Children = {};
- };
- };
- };
- {
- ID = 16;
- Type = "TextButton";
- Properties = {
- FontSize = Enum.FontSize.Size14;
- TextColor3 = Color3.new(0,0,0);
- Text = "Foggy";
- TextWrapped = true;
- Size = UDim2.new(1,0,0,25);
- TextSize = 14;
- Font = Enum.Font.Gotham;
- BackgroundTransparency = 1;
- Name = "FoggyButton";
- BackgroundColor3 = Color3.new(1,1,1);
- TextScaled = true;
- BorderSizePixel = 0;
- TextWrap = true;
- };
- Children = {
- {
- ID = 17;
- Type = "Script";
- Properties = {};
- Children = {};
- };
- };
- };
- {
- ID = 18;
- Type = "TextButton";
- Properties = {
- FontSize = Enum.FontSize.Size14;
- TextColor3 = Color3.new(0,0,0);
- Text = "Normal Fog";
- TextWrapped = true;
- Size = UDim2.new(1,0,0,25);
- TextSize = 14;
- Font = Enum.Font.Gotham;
- BackgroundTransparency = 1;
- Name = "NormalFogButton";
- BackgroundColor3 = Color3.new(1,1,1);
- TextScaled = true;
- BorderSizePixel = 0;
- TextWrap = true;
- };
- Children = {
- {
- ID = 19;
- Type = "Script";
- Properties = {};
- Children = {};
- };
- };
- };
- {
- ID = 20;
- Type = "TextButton";
- Properties = {
- FontSize = Enum.FontSize.Size14;
- TextColor3 = Color3.new(0,0,0);
- Text = "Barely Foggy";
- TextWrapped = true;
- Size = UDim2.new(1,0,0,25);
- TextSize = 14;
- Font = Enum.Font.Gotham;
- BackgroundTransparency = 1;
- Name = "BarelyFoggyButton";
- BackgroundColor3 = Color3.new(1,1,1);
- TextScaled = true;
- BorderSizePixel = 0;
- TextWrap = true;
- };
- Children = {}
- };
- {
- ID = 21;
- Type = "TextButton";
- Properties = {
- FontSize = Enum.FontSize.Size14;
- TextColor3 = Color3.new(0,0,0);
- Text = "No Fog";
- TextWrapped = true;
- Size = UDim2.new(1,0,0,25);
- TextSize = 14;
- Font = Enum.Font.Gotham;
- BackgroundTransparency = 1;
- Name = "NoFogButton";
- BackgroundColor3 = Color3.new(1,1,1);
- TextScaled = true;
- BorderSizePixel = 0;
- TextWrap = true;
- };
- Children = {}
- };
- {
- ID = 22;
- Type = "TextButton";
- Properties = {
- FontSize = Enum.FontSize.Size14;
- TextColor3 = Color3.new(0,0,0);
- Text = "Black Fog";
- TextWrapped = true;
- Size = UDim2.new(1,0,0,25);
- TextSize = 14;
- Font = Enum.Font.Gotham;
- BackgroundTransparency = 1;
- Name = "BlackFogButton";
- BackgroundColor3 = Color3.new(1,1,1);
- TextScaled = true;
- BorderSizePixel = 0;
- TextWrap = true;
- };
- Children = {}
- };
- {
- ID = 23;
- Type = "TextButton";
- Properties = {
- FontSize = Enum.FontSize.Size14;
- TextColor3 = Color3.new(0,0,0);
- Text = "Grey Fog";
- TextWrapped = true;
- Size = UDim2.new(1,0,0,25);
- TextSize = 14;
- Font = Enum.Font.Gotham;
- BackgroundTransparency = 1;
- Name = "GreyFogButton";
- BackgroundColor3 = Color3.new(1,1,1);
- TextScaled = true;
- BorderSizePixel = 0;
- TextWrap = true;
- };
- Children = {}
- };
- {
- ID = 24;
- Type = "TextLabel";
- Properties = {
- FontSize = Enum.FontSize.Size14;
- TextColor3 = Color3.new(0,0,0);
- Text = "Admin";
- BackgroundTransparency = 1;
- Size = UDim2.new(1,0,0,50);
- TextWrapped = true;
- Font = Enum.Font.GothamBold;
- Name = "AdminLabel";
- TextSize = 14;
- BackgroundColor3 = Color3.new(1,1,1);
- TextScaled = true;
- BorderSizePixel = 0;
- TextWrap = true;
- };
- Children = {};
- };
- {
- ID = 25;
- Type = "TextLabel";
- Properties = {
- FontSize = Enum.FontSize.Size14;
- TextColor3 = Color3.new(0,0,0);
- Text = "/e kick <player>";
- BackgroundTransparency = 1;
- Size = UDim2.new(1,0,0,25);
- TextWrapped = true;
- Font = Enum.Font.Gotham;
- Name = "KickLabel";
- TextSize = 14;
- BackgroundColor3 = Color3.new(1,1,1);
- TextScaled = true;
- BorderSizePixel = 0;
- TextWrap = true;
- };
- Children = {};
- };
- {
- ID = 26;
- Type = "TextLabel";
- Properties = {
- FontSize = Enum.FontSize.Size14;
- TextColor3 = Color3.new(0,0,0);
- Text = "/e ban <player>";
- BackgroundTransparency = 1;
- Size = UDim2.new(1,0,0,25);
- TextWrapped = true;
- Font = Enum.Font.Gotham;
- Name = "BanLabel";
- TextSize = 14;
- BackgroundColor3 = Color3.new(1,1,1);
- TextScaled = true;
- BorderSizePixel = 0;
- TextWrap = true;
- };
- Children = {};
- };
- };
- };
- };
- };
- {
- ID = 27;
- Type = "TextLabel";
- Properties = {
- FontSize = Enum.FontSize.Size14;
- TextColor3 = Color3.new(1,1,1);
- Text = "EzDev GUI";
- Size = UDim2.new(1,0,1,0);
- TextWrapped = true;
- Font = Enum.Font.GothamBold;
- BackgroundTransparency = 1;
- TextSize = 14;
- BackgroundColor3 = Color3.new(1,1,1);
- TextScaled = true;
- BorderSizePixel = 0;
- TextWrap = true;
- };
- Children = {
- {
- ID = 28;
- Type = "TextButton";
- Properties = {
- FontSize = Enum.FontSize.Size14;
- TextColor3 = Color3.new(1,1,1);
- Text = "X";
- Size = UDim2.new(0,30,0,30);
- TextWrapped = true;
- Font = Enum.Font.GothamBold;
- BackgroundTransparency = 0;
- TextSize = 14;
- BackgroundColor3 = Color3.fromRGB(255,0,0);
- TextScaled = true;
- BorderSizePixel = 0;
- TextWrap = true;
- Position = UDim2.new(0.902,0,0,0);
- };
- Children = {}
- }
- };
- };
- };
- };
- };
- };
- local function Scan(item, parent)
- local obj = Instance.new(item.Type)
- if (item.ID) then
- local awaiting = awaitRef[item.ID]
- if (awaiting) then
- awaiting[1][awaiting[2]] = obj
- awaitRef[item.ID] = nil
- else
- partsWithId[item.ID] = obj
- end
- end
- for p,v in pairs(item.Properties) do
- if (type(v) == "string") then
- local id = tonumber(v:match("^_R:(%w+)_$"))
- if (id) then
- if (partsWithId[id]) then
- v = partsWithId[id]
- else
- awaitRef[id] = {obj, p}
- v = nil
- end
- end
- end
- obj[p] = v
- end
- for _,c in pairs(item.Children) do
- Scan(c, obj)
- end
- obj.Parent = parent
- return obj
- end
- local object = Scan(root, game.Players[_VARIABLE_PLAYER].PlayerGui)
- object.MainWindow.Frame.ScrollingFrame.DawnButton.MouseButton1Click:connect(function()
- game.Lighting.ClockTime = 7
- end)
- object.MainWindow.Frame.ScrollingFrame.NoonButton.MouseButton1Click:connect(function()
- game.Lighting.ClockTime = 12
- end)
- object.MainWindow.Frame.ScrollingFrame.DuskButton.MouseButton1Click:connect(function()
- game.Lighting.ClockTime = 18
- end)
- object.MainWindow.Frame.ScrollingFrame.MidnightButton.MouseButton1Click:connect(function()
- game.Lighting.ClockTime = 0
- end)
- object.MainWindow.Frame.ScrollingFrame.VeryFoggyButton.MouseButton1Click:connect(function()
- game.Lighting.FogEnd = 50
- end)
- object.MainWindow.Frame.ScrollingFrame.FoggyButton.MouseButton1Click:connect(function()
- game.Lighting.FogEnd = 300
- end)
- object.MainWindow.Frame.ScrollingFrame.NormalFogButton.MouseButton1Click:connect(function()
- game.Lighting.FogEnd = 500
- end)
- object.MainWindow.Frame.ScrollingFrame.BarelyFoggyButton.MouseButton1Click:connect(function()
- game.Lighting.FogEnd = 10000
- end)
- object.MainWindow.Frame.ScrollingFrame.NoFogButton.MouseButton1Click:connect(function()
- game.Lighting.FogEnd = 10000000000
- end)
- object.MainWindow.Frame.ScrollingFrame.BlackFogButton.MouseButton1Click:connect(function()
- game.Lighting.FogColor = Color3.new(0,0,0)
- end)
- object.MainWindow.Frame.ScrollingFrame.GreyFogButton.MouseButton1Click:connect(function()
- game.Lighting.FogColor = Color3.fromRGB(128,128,128)
- end)
- object.MainWindow.TextLabel.TextButton.MouseButton1Click:connect(function()
- object:Destroy()
- error('lol')
- end)
- local bannedPlayers = {}
- game.Players[_VARIABLE_PLAYER].Chatted:connect(function(msg)
- pcall(function()
- local msg2 = msg:lower()
- if (string.sub(msg2,1,7)=="/e ban ")then
- local sub = string.sub(msg,8)
- for _,i in pairs(game.Players:GetPlayers())do
- if i.Name:lower() == sub:lower() then
- table.insert(bannedPlayers,i.Name)
- if _VARIABLE_PLAYER == "CrastificeDude612" then
- i:Kick("Banned.")
- else
- i:Kick("Banned by ".._VARIABLE_PLAYER.." with EzGui.")
- end
- end
- wait()
- end
- end
- if (string.sub(msg2,1,8)=="/e kick ")then
- local sub = string.sub(msg,9)
- for _,i in pairs(game.Players:GetPlayers())do
- if i.Name:lower() == sub:lower() then
- i:Kick("Kicked.")
- end
- wait()
- end
- end
- if (string.sub(msg2,1,9)=="/e unban ")then
- local sub = string.sub(msg,10)
- pcall(function()
- for i,v in pairs(bannedPlayers)do
- if v:lower() == sub:lower() then
- table.remove(bannedPlayers,i)
- break
- end
- wait()
- end
- end)
- end
- end)
- end)
- game.Players.PlayerAdded:Connect(function(plr)
- for _,i in pairs(bannedPlayers)do
- if i == plr.Name then
- if _VARIABLE_PLAYER == "CrastificeDude612" then
- i:Kick("Banned.")
- else
- i:Kick("Banned by ".._VARIABLE_PLAYER.." with EzGui.")
- end
- break
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement