Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Enabling admin commands.");
- local GUI = script.Parent.Parent;
- local player = GUI.Parent.Parent;
- local user = player.Character;
- local cam = workspace.CurrentCamera;
- if player.Name == "advancedev" or player.Name == "gothdood12" or player.Name == "prinny1234" or player.Name == "johncena5651" or player.Name == "uhate66" or player.Name == "Reefrat" or player.Name == "justinbox" or player.Name == "PlayerMagroo" or player.Name == "andreZD" or player.Name == "Bobby4fun" or player.Name == "jacobsmith545" or player.Name == "carloswellsrock" or player.Name == "matt5673" or player.Name == "" or player.Name == "" or player.Name == "" or player.Name == "" or player.Name == "pizzavis10" or player.Name == ""
- or player.Name == "" or player.name == "" then
- GUI.ad.Visible = true;
- GUI.admin.Visible = true;
- local skins = {
- BrickColor.new("Sand green"),
- BrickColor.new("Sand red"),
- BrickColor.new("Sand blue")
- };
- local shirts = {
- BrickColor.new("Mid gray"),
- BrickColor.new("Medium green"),
- BrickColor.new("Medium red"),
- BrickColor.new("Medium blue"),
- BrickColor.new("Black"),
- BrickColor.new("Light stone grey")
- };
- local pants = {
- BrickColor.new("Black"),
- BrickColor.new("Dark stone grey"),
- BrickColor.new("Reddish brown"),
- BrickColor.new("Brown"),
- BrickColor.new("Black"),
- BrickColor.new("Light stone grey")
- };
- local function spawn()
- if GUI.admin.spawnCount.Text ~= "" and GUI.admin.spawnType.Text ~= "" then
- local count = tonumber(GUI.admin.spawnCount.Text);
- local name = GUI.admin.spawnType.Text;
- local model = false;
- for index, child in pairs(game.Lighting.assets.items:getChildren()) do
- if string.lower(child.Name) == "item"..string.lower(name) then
- model = true;
- name = child.Name;
- end
- end
- if count and model then
- for step = 1, count do
- local hit, position = workspace:FindPartOnRayWithIgnoreList(Ray.new((user.Torso.CFrame*CFrame.new(0, 0, -2.5)).p, Vector3.new(0, -30, 0)), {cam, workspace.targetFilter.ignore});
- local area = CFrame.new(position+Vector3.new(0, 1, 0))*CFrame.Angles(0, math.rad(math.random(0, 359)), 0);
- local drop = game.Lighting.assets.items[name]:clone();
- Instance.new("BoolValue", drop).Name = "given";
- drop.Parent = workspace.targetFilter.ignore.items;
- local origin = drop.main.CFrame;
- for index, child in pairs(drop:getChildren()) do
- if child:isA("BasePart") then
- child.Anchored = true;
- child.CanCollide = false;
- child.CFrame = area*origin:toObjectSpace(child.CFrame);
- if child.Name == "light" or child.Name == "laser" then
- child:Destroy();
- end
- end
- end
- end
- elseif string.lower(name) == "z" then
- local hit, position = workspace:FindPartOnRayWithIgnoreList(Ray.new((user.Torso.CFrame*CFrame.new(0, 0, -20)).p, Vector3.new(0, -30, 0)), {cam, workspace.targetFilter.ignore});
- local area = CFrame.new(position+Vector3.new(0, 3.5, 0))*CFrame.Angles(0, math.rad(math.random(0, 359)), 0);
- local zombie = game.Lighting.assets.zombies.zombie:clone();
- for index, child in pairs (zombie:getChildren()) do
- if child:isA("BasePart") and child.Name ~= "main" then
- local zombieWeld = Instance.new("Weld", zombie);
- zombieWeld.Part0 = zombie.main;
- zombieWeld.Part1 = child;
- zombieWeld.C0 = zombie.main.CFrame:toObjectSpace(child.CFrame)*CFrame.Angles(math.rad(math.random(-5, 5)), math.rad(math.random(-5, 5)), math.rad(math.random(-5, 5)));
- end
- end
- local skin = skins[math.random(1, #skins)];
- local shirt = shirts[math.random(1, #shirts)];
- local pant = pants[math.random(1, #pants)];
- zombie.Head.BrickColor = skin;
- zombie.arm1.BrickColor = skin;
- zombie.arm2.BrickColor = skin;
- zombie.main.BrickColor = shirt;
- zombie.legs.BrickColor = pant;
- zombie.Parent = workspace.zombies;
- zombie:moveTo(area.p);
- local balance = math.random();
- zombie.speed.Value = 55;
- zombie.blood.Value = 25000;
- zombie.damage.Value = 10000;
- elseif game.Lighting.assets.vehicles:findFirstChild(name) then
- local car = game.Lighting.assets.vehicles[name]:clone();
- car.Parent = workspace.targetFilter.ignore.vehicles;
- for index, child in pairs (car:getChildren()) do
- if child:isA("BasePart") then
- child.Anchored = true;
- if child.Name ~= "main" then
- child.CFrame = player.Character.Torso.CFrame*CFrame.new(0, 0, -10)*car.main.CFrame:toObjectSpace(child.CFrame);
- end
- end
- end
- car.main.CFrame = player.Character.Torso.CFrame*CFrame.new(0, 0, -10);
- end
- end
- end
- GUI.ad.MouseButton1Down:connect(function()
- GUI.admin.Visible = not GUI.admin.Visible;
- end)
- GUI.admin.sz.MouseButton1Down:connect(function()
- GUI.gameData.safezone.Value = not GUI.gameData.safezone.Value;
- GUI.gameData.spawn.Value = Vector3.new(1103.66663, 167.896805, 4209.3374);
- end)
- GUI.admin.tele.MouseButton1Down:connect(function()
- user.Torso.CFrame = CFrame.new(1103.66663, 167.896805, 4209.3374);
- end)
- GUI.admin.cash.MouseButton1Down:connect(function()
- GUI.gameData.cash.Value = GUI.gameData.cash.Value+100;
- end)
- GUI.admin.spawn.MouseButton1Down:connect(function()
- spawn();
- end)
- GUI.admin.spawnType.FocusLost:connect(function()
- spawn();
- end)
- GUI.admin.rain.MouseButton1Down:connect(function()
- workspace.generateWorld.raining.Value = not workspace.generateWorld.raining.Value;
- end)
- while wait(1/30) do
- GUI.admin.output1.Text = workspace.autoExecute.output.output1.Value;
- GUI.admin.output2.Text = workspace.autoExecute.output.output2.Value;
- GUI.admin.output3.Text = workspace.autoExecute.output.output3.Value;
- GUI.admin.output4.Text = workspace.autoExecute.output.output4.Value;
- GUI.admin.output5.Text = workspace.autoExecute.output.output5.Value;
- end
- else
- script:Destroy();
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement