Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- ~ Description ~
- This is a pretty powerful script I've made, you can edit some stuff at the top here (like the wall size/shape)
- along with the distance of the kill aura.
- This was a really fun script to make all in all so :D cheers
- --------------------------------
- ~ Game ~
- https://www.roblox.com/games/3056526277/Build-Survive#!/game-instances
- --------------------------------
- ~ Credit ~
- Gui - brianops1
- Scripter(s) - briansop1
- --]]
- x = -252
- y = -8 --starting floor is -8
- z = 48 --Change this (by increments of 4) to change where the location of the wall is
- amount = 10
- WT = .01
- _G.AuraDist = 75
- KPLocation = 2 -- 1 is the closest to the mobs spawn (for loot to still drop), 4 is the farthest (closest to building area)
- _G.KEY = "LeftAlt" -- for the tp to mouse keybind
- _G.KEY1 = "H" -- for the Noclip keybind
- function define()
- plr = game:GetService('Players').LocalPlayer
- Root = plr.Character.HumanoidRootPart
- UIS = game:GetService("UserInputService")
- mouse = plr:GetMouse()
- end
- print('loading')
- repeat
- wait()
- until pcall(define)
- local ScreenGui = Instance.new("ScreenGui")
- local MainFrame = Instance.new("Frame")
- local PreBuilt = Instance.new("Frame")
- local EB1 = Instance.new("TextButton")
- local Toplabel = Instance.new("TextLabel")
- local EB2 = Instance.new("TextButton")
- local EB3 = Instance.new("TextButton")
- local EB4 = Instance.new("TextButton")
- local EB5 = Instance.new("TextButton")
- local EB6 = Instance.new("TextButton")
- local Bottomlabel = Instance.new("TextLabel")
- local Game = Instance.new("TextLabel")
- local Minimize = Instance.new("TextButton")
- local Close = Instance.new("TextButton")
- local Credits = Instance.new("TextLabel")
- local B1 = Instance.new("TextButton")
- local B2 = Instance.new("TextButton")
- local B5 = Instance.new("TextButton")
- local B8 = Instance.new("TextButton")
- local B6 = Instance.new("TextButton")
- local B4 = Instance.new("TextButton")
- local B7 = Instance.new("TextButton")
- local B3 = Instance.new("TextButton")
- local BuiltInButton = Instance.new("TextButton")
- local Background = Instance.new("ImageLabel")
- ---------------------Gui Variables----------------------
- ScreenGui.Parent = game.CoreGui
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = ScreenGui
- MainFrame.BackgroundColor3 = Color3.new(1, 1, 1)
- MainFrame.BorderColor3 = Color3.new(1, 0.835294, 0.172549)
- MainFrame.BorderSizePixel = 2
- MainFrame.Position = UDim2.new(0, 270, 0, 101)
- MainFrame.Size = UDim2.new(0, 278, 0, 279)
- MainFrame.Selectable = true
- MainFrame.Active = true
- MainFrame.Draggable = true
- PreBuilt.Name = "PreBuilt"
- PreBuilt.Parent = MainFrame
- PreBuilt.BackgroundColor3 = Color3.new(0.972549, 0.764706, 0.129412)
- PreBuilt.BorderSizePixel = 0
- PreBuilt.Position = UDim2.new(0, 287, 0, 17)
- PreBuilt.Size = UDim2.new(0, 186, 0, 246)
- PreBuilt.Visible = false
- EB1.Name = "EB1"
- EB1.Parent = PreBuilt
- EB1.BackgroundColor3 = Color3.new(1, 1, 1)
- EB1.BackgroundTransparency = 0.30000001192093
- EB1.BorderSizePixel = 0
- EB1.Position = UDim2.new(0, 0, 0.117886186, 0)
- EB1.Size = UDim2.new(0, 186, 0, 25)
- EB1.Font = Enum.Font.SourceSans
- EB1.Text = ""
- EB1.TextColor3 = Color3.new(0, 0, 0)
- EB1.TextSize = 13
- Toplabel.Name = "Toplabel"
- Toplabel.Parent = PreBuilt
- Toplabel.BackgroundColor3 = Color3.new(1, 1, 1)
- Toplabel.BackgroundTransparency = 0.20000000298023
- Toplabel.BorderSizePixel = 0
- Toplabel.Position = UDim2.new(0, 0, -0.008130081, 0)
- Toplabel.Size = UDim2.new(0, 186, 0, 25)
- Toplabel.Font = Enum.Font.SourceSans
- Toplabel.Text = "Built In Scripts"
- Toplabel.TextColor3 = Color3.new(0, 0, 0)
- Toplabel.TextSize = 14
- Toplabel.TextWrapped = true
- EB2.Name = "EB2"
- EB2.Parent = PreBuilt
- EB2.BackgroundColor3 = Color3.new(1, 1, 1)
- EB2.BackgroundTransparency = 0.30000001192093
- EB2.BorderSizePixel = 0
- EB2.Position = UDim2.new(0, 0, 0.243902445, 0)
- EB2.Size = UDim2.new(0, 186, 0, 25)
- EB2.Font = Enum.Font.SourceSans
- EB2.Text = ""
- EB2.TextColor3 = Color3.new(0, 0, 0)
- EB2.TextSize = 13
- EB3.Name = "EB3"
- EB3.Parent = PreBuilt
- EB3.BackgroundColor3 = Color3.new(1, 1, 1)
- EB3.BackgroundTransparency = 0.30000001192093
- EB3.BorderSizePixel = 0
- EB3.Position = UDim2.new(0, 0, 0, 91)
- EB3.Size = UDim2.new(0, 186, 0, 25)
- EB3.Font = Enum.Font.SourceSans
- EB3.Text = ""
- EB3.TextColor3 = Color3.new(0, 0, 0)
- EB3.TextSize = 13
- EB4.Name = "EB4"
- EB4.Parent = PreBuilt
- EB4.BackgroundColor3 = Color3.new(1, 1, 1)
- EB4.BackgroundTransparency = 0.30000001192093
- EB4.BorderSizePixel = 0
- EB4.Position = UDim2.new(0, 0, 0.495934963, 0)
- EB4.Size = UDim2.new(0, 186, 0, 25)
- EB4.Font = Enum.Font.SourceSans
- EB4.Text = ""
- EB4.TextColor3 = Color3.new(0, 0, 0)
- EB4.TextSize = 13
- EB5.Name = "EB5"
- EB5.Parent = PreBuilt
- EB5.BackgroundColor3 = Color3.new(1, 1, 1)
- EB5.BackgroundTransparency = 0.30000001192093
- EB5.BorderSizePixel = 0
- EB5.Position = UDim2.new(0, 0, 0, 153)
- EB5.Size = UDim2.new(0, 186, 0, 25)
- EB5.Font = Enum.Font.SourceSans
- EB5.Text = ""
- EB5.TextColor3 = Color3.new(0, 0, 0)
- EB5.TextSize = 13
- EB6.Name = "EB6"
- EB6.Parent = PreBuilt
- EB6.BackgroundColor3 = Color3.new(1, 1, 1)
- EB6.BackgroundTransparency = 0.30000001192093
- EB6.BorderSizePixel = 0
- EB6.Position = UDim2.new(0, 0, 0.747967541, 0)
- EB6.Size = UDim2.new(0, 186, 0, 25)
- EB6.Font = Enum.Font.SourceSans
- EB6.Text = ""
- EB6.TextColor3 = Color3.new(0, 0, 0)
- EB6.TextSize = 13
- Bottomlabel.Name = "Bottomlabel"
- Bottomlabel.Parent = PreBuilt
- Bottomlabel.BackgroundColor3 = Color3.new(1, 1, 1)
- Bottomlabel.BackgroundTransparency = 0.20000000298023
- Bottomlabel.BorderSizePixel = 0
- Bottomlabel.Position = UDim2.new(0, 0, 0.898373961, 0)
- Bottomlabel.Size = UDim2.new(0, 186, 0, 25)
- Bottomlabel.Font = Enum.Font.SourceSans
- Bottomlabel.Text = "Good Scripts to have eh?"
- Bottomlabel.TextColor3 = Color3.new(0, 0, 0)
- Bottomlabel.TextSize = 13
- Game.Name = "Game"
- Game.Parent = MainFrame
- Game.BackgroundColor3 = Color3.new(1, 1, 1)
- Game.BackgroundTransparency = 0.20000000298023
- Game.BorderColor3 = Color3.new(1, 1, 1)
- Game.BorderSizePixel = 0
- Game.Position = UDim2.new(0, 0,0, -2)
- Game.Size = UDim2.new(0, 227, 0, 25)
- Game.ZIndex = 2
- Game.Font = Enum.Font.SourceSans
- Game.Text = "Game Name Is Supposed to Be Here"
- Game.TextColor3 = Color3.new(0, 0, 0)
- Game.TextSize = 13
- Game.TextWrapped = true
- Minimize.Name = "Minimize"
- Minimize.Parent = MainFrame
- Minimize.BackgroundColor3 = Color3.new(1, 1, 1)
- Minimize.BackgroundTransparency = 0.20000000298023
- Minimize.BorderSizePixel = 0
- Minimize.Position = UDim2.new(0, 227,0, -2)
- Minimize.Size = UDim2.new(0, 25, 0, 25)
- Minimize.ZIndex = 2
- Minimize.Font = Enum.Font.SourceSans
- Minimize.Text = "-"
- Minimize.TextColor3 = Color3.new(0, 0, 0)
- Minimize.TextSize = 24
- Close.Name = "Close"
- Close.Parent = MainFrame
- Close.BackgroundColor3 = Color3.new(1, 1, 1)
- Close.BackgroundTransparency = 0.20000000298023
- Close.BorderSizePixel = 0
- Close.Position = UDim2.new(0, 251, 0, -2)
- Close.Size = UDim2.new(0, 28, 0, 25)
- Close.ZIndex = 2
- Close.Font = Enum.Font.SourceSans
- Close.Text = "x"
- Close.TextColor3 = Color3.new(0, 0, 0)
- Close.TextSize = 16
- Credits.Name = "Credits"
- Credits.Parent = MainFrame
- Credits.BackgroundColor3 = Color3.new(1, 1, 1)
- Credits.BackgroundTransparency = 0.20000000298023
- Credits.BorderColor3 = Color3.new(1, 1, 1)
- Credits.BorderSizePixel = 0
- Credits.Position = UDim2.new(-0.00359712238, 0, 0.9048931, 0)
- Credits.Size = UDim2.new(0, 278, 0, 28)
- Credits.ZIndex = 2
- Credits.Font = Enum.Font.SourceSans
- Credits.Text = "Gui ~ brianops1 | Scripter(s) ~ "
- Credits.TextColor3 = Color3.new(0, 0, 0)
- Credits.TextSize = 13
- Credits.TextWrapped = true
- B1.Name = "B1"
- B1.Parent = MainFrame
- B1.BackgroundColor3 = Color3.new(1, 1, 1)
- B1.BackgroundTransparency = 0.20000000298023
- B1.BorderColor3 = Color3.new(1, 1, 1)
- B1.Position = UDim2.new(0.0242086351, 0, 0.218306571, 0)
- B1.Size = UDim2.new(0, 125, 0, 40)
- B1.ZIndex = 2
- B1.Font = Enum.Font.SourceSans
- B1.Text = ""
- B1.TextColor3 = Color3.new(0, 0, 0)
- B1.TextSize = 13
- B1.TextWrapped = true
- B2.Name = "B2"
- B2.Parent = MainFrame
- B2.BackgroundColor3 = Color3.new(1, 1, 1)
- B2.BackgroundTransparency = 0.20000000298023
- B2.BorderColor3 = Color3.new(1, 1, 1)
- B2.Position = UDim2.new(0, 144, 0, 60)
- B2.Size = UDim2.new(0, 125, 0, 41)
- B2.ZIndex = 2
- B2.Font = Enum.Font.SourceSans
- B2.Text = ""
- B2.TextColor3 = Color3.new(0, 0, 0)
- B2.TextSize = 13
- B2.TextWrapped = true
- B5.Name = "B5"
- B5.Parent = MainFrame
- B5.BackgroundColor3 = Color3.new(1, 1, 1)
- B5.BackgroundTransparency = 0.20000000298023
- B5.BorderColor3 = Color3.new(1, 1, 1)
- B5.Position = UDim2.new(0.0251798555, 0, 0.559432089, 0)
- B5.Size = UDim2.new(0, 125, 0, 40)
- B5.ZIndex = 2
- B5.Font = Enum.Font.SourceSans
- B5.Text = ""
- B5.TextColor3 = Color3.new(0, 0, 0)
- B5.TextSize = 13
- B5.TextWrapped = true
- B8.Name = "B8"
- B8.Parent = MainFrame
- B8.BackgroundColor3 = Color3.new(1, 1, 1)
- B8.BackgroundTransparency = 0.20000000298023
- B8.BorderColor3 = Color3.new(1, 1, 1)
- B8.Position = UDim2.new(0, 144, 0, 204)
- B8.Size = UDim2.new(0, 125, 0, 40)
- B8.ZIndex = 2
- B8.Font = Enum.Font.SourceSans
- B8.Text = ""
- B8.TextColor3 = Color3.new(0, 0, 0)
- B8.TextSize = 13
- B8.TextWrapped = true
- B6.Name = "B6"
- B6.Parent = MainFrame
- B6.BackgroundColor3 = Color3.new(1, 1, 1)
- B6.BackgroundTransparency = 0.20000000298023
- B6.BorderColor3 = Color3.new(1, 1, 1)
- B6.Position = UDim2.new(0.517985642, 0, 0.557863712, 0)
- B6.Size = UDim2.new(0, 125, 0, 40)
- B6.ZIndex = 2
- B6.Font = Enum.Font.SourceSans
- B6.Text = ""
- B6.TextColor3 = Color3.new(0, 0, 0)
- B6.TextSize = 13
- B6.TextWrapped = true
- B4.Name = "B4"
- B4.Parent = MainFrame
- B4.BackgroundColor3 = Color3.new(1, 1, 1)
- B4.BackgroundTransparency = 0.20000000298023
- B4.BorderColor3 = Color3.new(1, 1, 1)
- B4.Position = UDim2.new(0, 144, 0, 109)
- B4.Size = UDim2.new(0, 125, 0, 40)
- B4.ZIndex = 2
- B4.Font = Enum.Font.SourceSans
- B4.Text = ""
- B4.TextColor3 = Color3.new(0, 0, 0)
- B4.TextSize = 13
- B4.TextWrapped = true
- B7.Name = "B7"
- B7.Parent = MainFrame
- B7.BackgroundColor3 = Color3.new(1, 1, 1)
- B7.BackgroundTransparency = 0.20000000298023
- B7.BorderColor3 = Color3.new(1, 1, 1)
- B7.Position = UDim2.new(0.0251798555, 0, 0.731607914, 0)
- B7.Size = UDim2.new(0, 125, 0, 40)
- B7.ZIndex = 2
- B7.Font = Enum.Font.SourceSans
- B7.Text = ""
- B7.TextColor3 = Color3.new(0, 0, 0)
- B7.TextSize = 13
- B7.TextWrapped = true
- B3.Name = "B3"
- B3.Parent = MainFrame
- B3.BackgroundColor3 = Color3.new(1, 1, 1)
- B3.BackgroundTransparency = 0.20000000298023
- B3.BorderColor3 = Color3.new(1, 1, 1)
- B3.Position = UDim2.new(0.0251798555, 0, 0.392196536, 0)
- B3.Size = UDim2.new(0, 125, 0, 40)
- B3.ZIndex = 2
- B3.Font = Enum.Font.SourceSans
- B3.Text = ""
- B3.TextColor3 = Color3.new(0, 0, 0)
- B3.TextSize = 13
- B3.TextWrapped = true
- BuiltInButton.Name = "BuiltInButton"
- BuiltInButton.Parent = MainFrame
- BuiltInButton.BackgroundColor3 = Color3.new(1, 1, 1)
- BuiltInButton.BackgroundTransparency = 0.20000000298023
- BuiltInButton.BorderSizePixel = 0
- BuiltInButton.Position = UDim2.new(0.0242086723, 0, 0.112921163, 0)
- BuiltInButton.Size = UDim2.new(0, 262, 0, 22)
- BuiltInButton.ZIndex = 2
- BuiltInButton.Font = Enum.Font.SourceSans
- BuiltInButton.Text = "Toggle Built-In Gui Scripts"
- BuiltInButton.TextColor3 = Color3.new(0, 0, 0)
- BuiltInButton.TextSize = 13
- BuiltInButton.TextWrapped = true
- Background.Name = "Background"
- Background.Parent = MainFrame
- Background.BackgroundColor3 = Color3.new(1, 1, 1)
- Background.BorderSizePixel = 0
- Background.LayoutOrder = 1
- Background.Size = UDim2.new(0, 277, 0, 281)
- Background.Image = "rbxassetid://325122566"
- B1.BorderSizePixel = 0
- B2.BorderSizePixel = 0
- B3.BorderSizePixel = 0
- B4.BorderSizePixel = 0
- B5.BorderSizePixel = 0
- B6.BorderSizePixel = 0
- B7.BorderSizePixel = 0
- B8.BorderSizePixel = 0
- _G.noclip = false
- ------------------PreBuilt Scripts-----------------------
- EB1.Text = "Dex"
- EB2.Text = "R2S"
- EB3.Text = "Noclip (Default H)"
- EB4.Text = "Tp to mouse (Default LeftAlt)"
- EB5.Text = "Print/Copy Vector3 position"
- EB6.Text = "Baseplate (click again to tp back)"
- EB1.MouseButton1Click:connect(function()
- loadstring(game:GetObjects('rbxassetid://2180084478')[1].Source)()
- end)
- EB2.MouseButton1Click:connect(function()
- loadstring(game:HttpGet(('https://pastebin.com/raw/c12tidMB'),true))()
- end)
- EB3.MouseButton1Click:connect(function()
- UIS.InputBegan:connect(function(Input)
- plr = game:GetService('Players').LocalPlayer
- UIS = game:GetService("UserInputService")
- mouse = plr:GetMouse()
- local KeyCode = Input.KeyCode
- if KeyCode == Enum.KeyCode[_G.KEY1] and _G.noclip == false then
- _G.noclip = true
- while _G.noclip do
- plr.Character.Humanoid:ChangeState(11)
- game:GetService('RunService').Stepped:wait()
- end
- elseif KeyCode == Enum.KeyCode[_G.KEY1] and _G.noclip then
- _G.noclip = false
- end
- end)
- end)
- EB4.MouseButton1Click:connect(function()
- UIS.InputBegan:connect(function(Input)
- plr = game:GetService('Players').LocalPlayer
- UIS = game:GetService("UserInputService")
- mouse = plr:GetMouse()
- local KeyCode = Input.KeyCode
- if KeyCode == Enum.KeyCode[_G.KEY] then
- local hum = plr.Character.HumanoidRootPart
- if mouse.Target then
- hum.CFrame = CFrame.new(mouse.Hit.x, mouse.Hit.y + 4, mouse.Hit.z)
- end
- end
- end)
- end)
- EB5.MouseButton1Click:connect(function()
- x = loc(Root.CFrame.x)
- y = loc(Root.CFrame.y)
- z = loc(Root.CFrame.z)
- print('-----------------')
- print('Your x value is '.. x)
- print('Your y value is '.. y)
- print('Your z value is '.. z)
- pcall(copy,x,y,z)
- end)
- EB6.MouseButton1Click:connect(function()
- local check = game.Workspace:FindFirstChild("BRIAN'S PLATFORM")
- if check then
- Root.CFrame = _G.StartingPosition
- check:Destroy()
- else
- _G.StartingPosition = Root.CFrame
- local P = Instance.new("Part", workspace)
- P.Anchored = true
- P.CFrame = Root.CFrame * CFrame.new(0, 5500, 0)
- P.Name = "BRIAN'S PLATFORM"
- P.Size = Vector3.new(80, 1, 80)
- Root.CFrame = P.CFrame * CFrame.new(0,5,0)
- end
- end)
- ---------------------Functions---------------------------
- function VarOff()
- _G.on1 = 0
- _G.on2 = 0
- _G.on3 = 0
- _G.on4 = 0
- _G.on5 = 0
- _G.on6 = 0
- _G.on7 = 0
- _G.on8 = 0
- end
- function loc(cframe)
- local location = string.find(cframe, ".", 1, true)
- if location == nil then
- return cframe
- end
- return string.sub(cframe, 1, location + 1)
- end
- function copy(x,y,z)
- setclipboard(x .. ", " .. y .. ", " .. z)
- end
- VarOff()
- m = 0
- Minimize.MouseButton1Click:connect(function()
- if m == 0 then
- m = 1
- opennn = PreBuilt.Visible
- B1.Visible = false
- B2.Visible = false
- B3.Visible = false
- B4.Visible = false
- B5.Visible = false
- B6.Visible = false
- B7.Visible = false
- B8.Visible = false
- BuiltInButton.Visible = false
- Credits.Visible = false
- PreBuilt.Visible = false
- Background.Size = UDim2.new(0,278,0,25)
- MainFrame.Size = UDim2.new(0,278,0,25)
- else
- m = 0
- B1.Visible = true
- B2.Visible = true
- B3.Visible = true
- B4.Visible = true
- B5.Visible = true
- B6.Visible = true
- B7.Visible = true
- B8.Visible = true
- BuiltInButton.Visible = true
- Credits.Visible = true
- PreBuilt.Visible = opennn
- Background.Size = UDim2.new(0,278,0,281)
- MainFrame.Size = UDim2.new(0,278,0,279)
- end
- end)
- Close.MouseButton1Click:connect(function()
- VarOff()
- ScreenGui:Destroy()
- end)
- builtin = 0
- BuiltInButton.MouseButton1Click:connect(function()
- if builtin == 0 then
- builtin = 1
- PreBuilt.Visible = true
- else
- builtin = 0
- PreBuilt.Visible = false
- end
- end)
- function ON(button)
- if button.Name == "B1" then
- _G.on1 = 1
- elseif button.Name == "B2" then
- _G.on2 = 1
- elseif button.Name == "B3" then
- _G.on3 = 1
- elseif button.Name == "B4" then
- _G.on4 = 1
- elseif button.Name == "B5" then
- _G.on5 = 1
- elseif button.Name == "B6" then
- _G.on6 = 1
- elseif button.Name == "B7" then
- _G.on7 = 1
- elseif button.Name == "B8" then
- _G.on8 = 1
- end
- button.BorderSizePixel = 2
- button.BorderColor3 = Color3.fromRGB(0, 0, 0)
- end
- function OFF(button)
- if button.Name == "B1" then
- _G.on1 = 0
- elseif button.Name == "B2" then
- _G.on2 = 0
- elseif button.Name == "B3" then
- _G.on3 = 0
- elseif button.Name == "B4" then
- _G.on4 = 0
- elseif button.Name == "B5" then
- _G.on5 = 0
- elseif button.Name == "B6" then
- _G.on6 = 0
- elseif button.Name == "B7" then
- _G.on7 = 0
- elseif button.Name == "B8" then
- _G.on8 = 0
- end
- button.BorderSizePixel = 0
- button.BorderColor3 = Color3.fromRGB(255, 255, 255)
- end
- function DMG(amt,obj)
- local A_1 =
- {
- [1] =
- {
- [1] = obj,
- [2] = amt
- }
- }
- local Event = game:GetService("Workspace")["__REMOTES"].Game["Mob Do Damage"]
- Event:FireServer(A_1)
- end
- function isin(obj,tbl)
- for a = 1,#tbl do
- if obj == tbl[a] then
- return true
- end
- end
- return false
- end
- function place(M,x,y,z)
- local A_1 = CFrame.new(x, y, z, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- local A_2 = M
- local A_3 = game:GetService("Workspace"):FindFirstChildOfClass("Part",true)
- local A_4 = CFrame.new(x, y, z, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- local Event = game:GetService("Workspace")["__REMOTES"].Game["Place Block"]
- Event:FireServer(A_1, A_2, A_3, A_4)
- end
- ---------------------Main Code---------------------------
- Game.Text = "Build and survive" -- Game name here
- Credits.Text = Credits.Text .. "brianops1" --Scripter(s) name(s) here
- B1.Text = "Kill All Monsters (and pickup loot)" --Script Names go here
- B2.Text = "Kill Aura and autopickup loot"
- B3.Text = "Kill Part"
- B4.Text = "Wood Wall"
- B5.Text = "Brick Wall"
- B6.Text = "Metal Wall"
- B7.Text = ""
- B8.Text = ""
- B1.MouseButton1Click:connect(function()
- if _G.on1 == 1 then
- OFF(B1)
- else
- ON(B1)
- game:GetService('RunService').Stepped:wait()
- for i,v in pairs(game:GetService("Workspace")["__THINGS"].Monsters:GetChildren()) do
- if v and v.ClassName == "Model" then
- if v.Name == "RougeBot" then
- DMG(85,v)
- elseif v.Name == "Robot" then
- DMG(80,v)
- elseif v.Name == "Zombie" then
- DMG(100,v)
- elseif v.Name == "Skeleton" then
- DMG(80,v)
- elseif v.Name == "Tank" then
- DMG(675,v)
- else
- DMG(100,v)
- end
- end
- end
- wait(.5)
- for i,v in pairs(game:GetService("Workspace")["__DEBRIS"]:GetChildren()) do
- local ID = v:FindFirstChild("UID")
- if ID then
- local A_1 =
- {
- [1] = ID.Value
- }
- local Event = game:GetService("Workspace")["__REMOTES"].Game["Redeem Drop"]
- Event:FireServer(A_1)
- end
- end
- OFF(B1)
- end
- end)
- B2.MouseButton1Click:connect(function()
- if _G.on2 == 1 then
- OFF(B2)
- else
- ON(B2)
- game:GetService('RunService').Stepped:wait()
- while _G.on2 == 1 do
- for i,v in pairs(game:GetService("Workspace")["__THINGS"].Monsters:GetChildren()) do
- if v and v.ClassName == "Model" then
- local part = v:FindFirstChild("HumanoidRootPart")
- if part then
- local m = (Root.Position - part.Position).magnitude
- if v.Name == "RougeBot" and m < _G.AuraDist then
- DMG(85,v)
- elseif v.Name == "Robot" and m < _G.AuraDist then
- DMG(80,v)
- elseif v.Name == "Zombie" and m < _G.AuraDist then
- DMG(100,v)
- elseif v.Name == "Skeleton" and m < _G.AuraDist then
- DMG(80,v)
- elseif v.Name == "Tank" and m < _G.AuraDist then
- DMG(675,v)
- elseif m < _G.AuraDist then
- DMG(100,v)
- end
- end
- end
- end
- game:GetService('RunService').Stepped:wait()
- for i,v in pairs(game:GetService("Workspace")["__DEBRIS"]:GetChildren()) do
- local ID = v:FindFirstChild("UID")
- if ID then
- game:GetService('RunService').Stepped:wait()
- local A_1 =
- {
- [1] = ID.Value
- }
- local Event = game:GetService("Workspace")["__REMOTES"].Game["Redeem Drop"]
- Event:FireServer(A_1)
- end
- end
- end
- OFF(B2)
- end
- end)
- B3.MouseButton1Click:connect(function()
- if _G.on3 == 1 then
- OFF(B3)
- else
- ON(B3)
- game:GetService('RunService').Stepped:wait()
- local search = game.Workspace:FindFirstChild("DeathPart")
- if search then
- search:Destroy()
- end
- local DeathP = Instance.new("Part",workspace)
- DeathP.Size = Vector3.new(400,8,10)
- if KPLocation == 1 then
- DeathP.Position = Vector3.new(-70, 5.5, -144)
- elseif KPLocation == 2 then
- DeathP.Position = Vector3.new(-70, 5.5, -85.2)
- elseif KPLocation == 3 then
- DeathP.Position = Vector3.new(-70, -1.5, -23.9)
- elseif KPLocation == 4 then
- DeathP.Position = Vector3.new(-70, -8, 35.8)
- end
- DeathP.Name = "DeathPart"
- DeathP.Color = Color3.fromRGB(0,0,0)
- DeathP.Anchored = true
- DeathP.Transparency = .75
- mobs = {}
- while _G.on3 == 1 do
- wait()
- tbl = DeathP:GetTouchingParts()
- if #tbl > 0 then
- for i = 1,#tbl do
- if tbl[i].Parent ~= "Coin" and tbl[i].Parent ~= "Star" and tbl[i].Parent ~= "Heart" and isin(tbl[i].Parent,mobs) == false then
- table.insert(mobs,tbl[i].Parent)
- elseif tbl[i].Parent == "Coin" or tbl[i].Parent == "Star" or tbl[i].Parent == "Heart" then
- local ID = tbl[i]:FindFirstChild("UID")
- if ID then
- local A_1 =
- {
- [1] = ID.Value
- }
- local Event = game:GetService("Workspace")["__REMOTES"].Game["Redeem Drop"]
- Event:FireServer(A_1)
- end
- end
- end
- for i = 1,#mobs do
- DMG(675,mobs[1])
- table.remove(mobs,1)
- end
- end
- end
- local search = game.Workspace:FindFirstChild("DeathPart")
- if search then
- search:Destroy()
- end
- OFF(B3)
- end
- end)
- B4.MouseButton1Click:connect(function()
- if _G.on4 == 1 then
- OFF(B4)
- else
- ON(B4)
- game:GetService('RunService').Stepped:wait()
- newz = z
- for a = 1,amount do
- if _G.on4 == 1 then
- newx = x
- newy = y
- newz = newz + 4
- for i = 1, 90 do
- if _G.on4 == 1 then
- wait(WT)
- newx = newx + 4
- place("Wood",newx,y,newz)
- newy = y + 4
- place("Wood",newx,newy,newz)
- end
- end
- end
- end
- for i,v in pairs(game:GetService("Workspace")["__DEBRIS"]:GetChildren()) do
- if v.Name == "Part" and v.ClassName == "Part" then
- v:Destroy()
- end
- end
- OFF(B4)
- end
- end)
- B5.MouseButton1Click:connect(function()
- if _G.on5 == 1 then
- OFF(B5)
- else
- ON(B5)
- game:GetService('RunService').Stepped:wait()
- newz = z
- for a = 1,amount do
- if _G.on5 == 1 then
- newx = x
- newy = y
- newz = newz + 4
- for i = 1, 90 do
- if _G.on5 == 1 then
- wait(WT)
- newx = newx + 4
- place("Brick",newx,y,newz)
- newy = y + 4
- place("Brick",newx,newy,newz)
- end
- end
- end
- end
- for i,v in pairs(game:GetService("Workspace")["__DEBRIS"]:GetChildren()) do
- if v.Name == "Part" and v.ClassName == "Part" then
- v:Destroy()
- end
- end
- OFF(B5)
- end
- end)
- B6.MouseButton1Click:connect(function()
- if _G.on6 == 1 then
- OFF(B6)
- else
- ON(B6)
- game:GetService('RunService').Stepped:wait()
- newz = z
- for a = 1,amount do
- if _G.on6 == 1 then
- newx = x
- newy = y
- newz = newz + 4
- for i = 1, 90 do
- if _G.on6 == 1 then
- wait(WT)
- newx = newx + 4
- place("Metal",newx,y,newz)
- newy = y + 4
- place("Metal",newx,newy,newz)
- end
- end
- end
- end
- for i,v in pairs(game:GetService("Workspace")["__DEBRIS"]:GetChildren()) do
- if v.Name == "Part" and v.ClassName == "Part" then
- v:Destroy()
- end
- end
- OFF(B6)
- end
- end)
- B7.MouseButton1Click:connect(function()
- if _G.on7 == 1 then
- OFF(B7)
- else
- ON(B7)
- game:GetService('RunService').Stepped:wait()
- --code
- OFF(B7)
- end
- end)
- B8.MouseButton1Click:connect(function()
- if _G.on8 == 1 then
- OFF(B8)
- else
- ON(B8)
- game:GetService('RunService').Stepped:wait()
- --Code
- OFF(B8)
- end
- end)
- print('loaded')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement