Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TowersUHave = {}
- for i,v in next, game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer("Session", "Search", "Inventory.Troops") do
- if v.Equipped then
- table.insert(TowersUHave, i)
- end
- end
- wait(1)
- local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
- local Window = Library.CreateLib("Essence X", "Serpent")
- local Credits = Window:NewTab("Others")
- local Lobby = Window:NewTab("Miscellaneous")
- local R = Lobby:NewSection("InfZoom")
- R:NewButton("InfZoom", "Makes ur zoom basically infinite", function(txt)
- game.Players.LocalPlayer.CameraMaxZoomDistance = 1000
- print("Clicked")
- end)
- local E = Lobby:NewSection("Freecam, SHIFT P")
- E:NewButton("Freecam", "Tds Cinematic freecam", function(txt)
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- LocalScript0 = Instance.new("LocalScript")
- LocalScript0.Name = "FreeCamera"
- LocalScript0.Parent = mas
- table.insert(cors,sandbox(LocalScript0,function()
- -----------------------------------------------------------------------
- -- Freecam
- -- Cinematic free camera for spectating and video production.
- ------------------------------------------------------------------------
- local pi = math.pi
- local abs = math.abs
- local clamp = math.clamp
- local exp = math.exp
- local rad = math.rad
- local sign = math.sign
- local sqrt = math.sqrt
- local tan = math.tan
- local ContextActionService = game:GetService("ContextActionService")
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local StarterGui = game:GetService("StarterGui")
- local UserInputService = game:GetService("UserInputService")
- local LocalPlayer = Players.LocalPlayer
- if not LocalPlayer then
- Players:GetPropertyChangedSignal("LocalPlayer"):Wait()
- LocalPlayer = Players.LocalPlayer
- end
- local Camera = workspace.CurrentCamera
- workspace:GetPropertyChangedSignal("CurrentCamera"):Connect(function()
- local newCamera = workspace.CurrentCamera
- if newCamera then
- Camera = newCamera
- end
- end)
- ------------------------------------------------------------------------
- local TOGGLE_INPUT_PRIORITY = Enum.ContextActionPriority.Low.Value
- local INPUT_PRIORITY = Enum.ContextActionPriority.High.Value
- local FREECAM_MACRO_KB = {Enum.KeyCode.LeftShift, Enum.KeyCode.P}
- local NAV_GAIN = Vector3.new(1, 1, 1)*64
- local PAN_GAIN = Vector2.new(0.75, 1)*8
- local FOV_GAIN = 300
- local PITCH_LIMIT = rad(90)
- local VEL_STIFFNESS = 1.5
- local PAN_STIFFNESS = 1.0
- local FOV_STIFFNESS = 4.0
- ------------------------------------------------------------------------
- local Spring = {} do
- Spring.__index = Spring
- function Spring.new(freq, pos)
- local self = setmetatable({}, Spring)
- self.f = freq
- self.p = pos
- self.v = pos*0
- return self
- end
- function Spring:Update(dt, goal)
- local f = self.f*2*pi
- local p0 = self.p
- local v0 = self.v
- local offset = goal - p0
- local decay = exp(-f*dt)
- local p1 = goal + (v0*dt - offset*(f*dt + 1))*decay
- local v1 = (f*dt*(offset*f - v0) + v0)*decay
- self.p = p1
- self.v = v1
- return p1
- end
- function Spring:Reset(pos)
- self.p = pos
- self.v = pos*0
- end
- end
- ------------------------------------------------------------------------
- local cameraPos = Vector3.new()
- local cameraRot = Vector2.new()
- local cameraFov = 0
- local velSpring = Spring.new(VEL_STIFFNESS, Vector3.new())
- local panSpring = Spring.new(PAN_STIFFNESS, Vector2.new())
- local fovSpring = Spring.new(FOV_STIFFNESS, 0)
- ------------------------------------------------------------------------
- local Input = {} do
- local thumbstickCurve do
- local K_CURVATURE = 2.0
- local K_DEADZONE = 0.15
- local function fCurve(x)
- return (exp(K_CURVATURE*x) - 1)/(exp(K_CURVATURE) - 1)
- end
- local function fDeadzone(x)
- return fCurve((x - K_DEADZONE)/(1 - K_DEADZONE))
- end
- function thumbstickCurve(x)
- return sign(x)*clamp(fDeadzone(abs(x)), 0, 1)
- end
- end
- local gamepad = {
- ButtonX = 0,
- ButtonY = 0,
- DPadDown = 0,
- DPadUp = 0,
- ButtonL2 = 0,
- ButtonR2 = 0,
- Thumbstick1 = Vector2.new(),
- Thumbstick2 = Vector2.new(),
- }
- local keyboard = {
- W = 0,
- A = 0,
- S = 0,
- D = 0,
- E = 0,
- Q = 0,
- U = 0,
- H = 0,
- J = 0,
- K = 0,
- I = 0,
- Y = 0,
- Up = 0,
- Down = 0,
- LeftShift = 0,
- RightShift = 0,
- }
- local mouse = {
- Delta = Vector2.new(),
- MouseWheel = 0,
- }
- local NAV_GAMEPAD_SPEED = Vector3.new(1, 1, 1)
- local NAV_KEYBOARD_SPEED = Vector3.new(1, 1, 1)
- local PAN_MOUSE_SPEED = Vector2.new(1, 1)*(pi/64)
- local PAN_GAMEPAD_SPEED = Vector2.new(1, 1)*(pi/8)
- local FOV_WHEEL_SPEED = 1.0
- local FOV_GAMEPAD_SPEED = 0.25
- local NAV_ADJ_SPEED = 0.75
- local NAV_SHIFT_MUL = 0.25
- local navSpeed = 1
- function Input.Vel(dt)
- navSpeed = clamp(navSpeed + dt*(keyboard.Up - keyboard.Down)*NAV_ADJ_SPEED, 0.01, 4)
- local kGamepad = Vector3.new(
- thumbstickCurve(gamepad.Thumbstick1.x),
- thumbstickCurve(gamepad.ButtonR2) - thumbstickCurve(gamepad.ButtonL2),
- thumbstickCurve(-gamepad.Thumbstick1.y)
- )*NAV_GAMEPAD_SPEED
- local kKeyboard = Vector3.new(
- keyboard.D - keyboard.A + keyboard.K - keyboard.H,
- keyboard.E - keyboard.Q + keyboard.I - keyboard.Y,
- keyboard.S - keyboard.W + keyboard.J - keyboard.U
- )*NAV_KEYBOARD_SPEED
- local shift = UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) or UserInputService:IsKeyDown(Enum.KeyCode.RightShift)
- return (kGamepad + kKeyboard)*(navSpeed*(shift and NAV_SHIFT_MUL or 1))
- end
- function Input.Pan(dt)
- local kGamepad = Vector2.new(
- thumbstickCurve(gamepad.Thumbstick2.y),
- thumbstickCurve(-gamepad.Thumbstick2.x)
- )*PAN_GAMEPAD_SPEED
- local kMouse = mouse.Delta*PAN_MOUSE_SPEED
- mouse.Delta = Vector2.new()
- return kGamepad + kMouse
- end
- function Input.Fov(dt)
- local kGamepad = (gamepad.ButtonX - gamepad.ButtonY)*FOV_GAMEPAD_SPEED
- local kMouse = mouse.MouseWheel*FOV_WHEEL_SPEED
- mouse.MouseWheel = 0
- return kGamepad + kMouse
- end
- do
- local function Keypress(action, state, input)
- keyboard[input.KeyCode.Name] = state == Enum.UserInputState.Begin and 1 or 0
- return Enum.ContextActionResult.Sink
- end
- local function GpButton(action, state, input)
- gamepad[input.KeyCode.Name] = state == Enum.UserInputState.Begin and 1 or 0
- return Enum.ContextActionResult.Sink
- end
- local function MousePan(action, state, input)
- local delta = input.Delta
- mouse.Delta = Vector2.new(-delta.y, -delta.x)
- return Enum.ContextActionResult.Sink
- end
- local function Thumb(action, state, input)
- gamepad[input.KeyCode.Name] = input.Position
- return Enum.ContextActionResult.Sink
- end
- local function Trigger(action, state, input)
- gamepad[input.KeyCode.Name] = input.Position.z
- return Enum.ContextActionResult.Sink
- end
- local function MouseWheel(action, state, input)
- mouse[input.UserInputType.Name] = -input.Position.z
- return Enum.ContextActionResult.Sink
- end
- local function Zero(t)
- for k, v in pairs(t) do
- t[k] = v*0
- end
- end
- function Input.StartCapture()
- ContextActionService:BindActionAtPriority("FreecamKeyboard", Keypress, false, INPUT_PRIORITY,
- Enum.KeyCode.W, Enum.KeyCode.U,
- Enum.KeyCode.A, Enum.KeyCode.H,
- Enum.KeyCode.S, Enum.KeyCode.J,
- Enum.KeyCode.D, Enum.KeyCode.K,
- Enum.KeyCode.E, Enum.KeyCode.I,
- Enum.KeyCode.Q, Enum.KeyCode.Y,
- Enum.KeyCode.Up, Enum.KeyCode.Down
- )
- ContextActionService:BindActionAtPriority("FreecamMousePan", MousePan, false, INPUT_PRIORITY, Enum.UserInputType.MouseMovement)
- ContextActionService:BindActionAtPriority("FreecamMouseWheel", MouseWheel, false, INPUT_PRIORITY, Enum.UserInputType.MouseWheel)
- ContextActionService:BindActionAtPriority("FreecamGamepadButton", GpButton, false, INPUT_PRIORITY, Enum.KeyCode.ButtonX, Enum.KeyCode.ButtonY)
- ContextActionService:BindActionAtPriority("FreecamGamepadTrigger", Trigger, false, INPUT_PRIORITY, Enum.KeyCode.ButtonR2, Enum.KeyCode.ButtonL2)
- ContextActionService:BindActionAtPriority("FreecamGamepadThumbstick", Thumb, false, INPUT_PRIORITY, Enum.KeyCode.Thumbstick1, Enum.KeyCode.Thumbstick2)
- end
- function Input.StopCapture()
- navSpeed = 1
- Zero(gamepad)
- Zero(keyboard)
- Zero(mouse)
- ContextActionService:UnbindAction("FreecamKeyboard")
- ContextActionService:UnbindAction("FreecamMousePan")
- ContextActionService:UnbindAction("FreecamMouseWheel")
- ContextActionService:UnbindAction("FreecamGamepadButton")
- ContextActionService:UnbindAction("FreecamGamepadTrigger")
- ContextActionService:UnbindAction("FreecamGamepadThumbstick")
- end
- end
- end
- local function GetFocusDistance(cameraFrame)
- local znear = 0.1
- local viewport = Camera.ViewportSize
- local projy = 2*tan(cameraFov/2)
- local projx = viewport.x/viewport.y*projy
- local fx = cameraFrame.rightVector
- local fy = cameraFrame.upVector
- local fz = cameraFrame.lookVector
- local minVect = Vector3.new()
- local minDist = 512
- for x = 0, 1, 0.5 do
- for y = 0, 1, 0.5 do
- local cx = (x - 0.5)*projx
- local cy = (y - 0.5)*projy
- local offset = fx*cx - fy*cy + fz
- local origin = cameraFrame.p + offset*znear
- local part, hit = workspace:FindPartOnRay(Ray.new(origin, offset.unit*minDist))
- local dist = (hit - origin).magnitude
- if minDist > dist then
- minDist = dist
- minVect = offset.unit
- end
- end
- end
- return fz:Dot(minVect)*minDist
- end
- ------------------------------------------------------------------------
- local function StepFreecam(dt)
- local vel = velSpring:Update(dt, Input.Vel(dt))
- local pan = panSpring:Update(dt, Input.Pan(dt))
- local fov = fovSpring:Update(dt, Input.Fov(dt))
- local zoomFactor = sqrt(tan(rad(70/2))/tan(rad(cameraFov/2)))
- cameraFov = clamp(cameraFov + fov*FOV_GAIN*(dt/zoomFactor), 1, 120)
- cameraRot = cameraRot + pan*PAN_GAIN*(dt/zoomFactor)
- cameraRot = Vector2.new(clamp(cameraRot.x, -PITCH_LIMIT, PITCH_LIMIT), cameraRot.y%(2*pi))
- local cameraCFrame = CFrame.new(cameraPos)*CFrame.fromOrientation(cameraRot.x, cameraRot.y, 0)*CFrame.new(vel*NAV_GAIN*dt)
- cameraPos = cameraCFrame.p
- Camera.CFrame = cameraCFrame
- Camera.Focus = cameraCFrame*CFrame.new(0, 0, -GetFocusDistance(cameraCFrame))
- Camera.FieldOfView = cameraFov
- end
- ------------------------------------------------------------------------
- local PlayerState = {} do
- local mouseIconEnabled
- local cameraSubject
- local cameraType
- local cameraFocus
- local cameraCFrame
- local cameraFieldOfView
- local screenGuis = {}
- local coreGuis = {
- Backpack = true,
- Chat = true,
- Health = true,
- PlayerList = true,
- }
- local setCores = {
- BadgesNotificationsActive = true,
- PointsNotificationsActive = true,
- }
- -- Save state and set up for freecam
- function PlayerState.Push()
- for name in pairs(coreGuis) do
- coreGuis[name] = StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType[name])
- StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType[name], false)
- end
- for name in pairs(setCores) do
- setCores[name] = StarterGui:GetCore(name)
- StarterGui:SetCore(name, false)
- end
- local playergui = LocalPlayer:FindFirstChildOfClass("PlayerGui")
- if playergui then
- for _, gui in pairs(playergui:GetChildren()) do
- if gui:IsA("ScreenGui") and gui.Enabled then
- screenGuis[#screenGuis + 1] = gui
- gui.Enabled = false
- end
- end
- end
- cameraFieldOfView = Camera.FieldOfView
- Camera.FieldOfView = 70
- cameraType = Camera.CameraType
- Camera.CameraType = Enum.CameraType.Custom
- cameraSubject = Camera.CameraSubject
- Camera.CameraSubject = nil
- cameraCFrame = Camera.CFrame
- cameraFocus = Camera.Focus
- mouseIconEnabled = UserInputService.MouseIconEnabled
- UserInputService.MouseIconEnabled = false
- mouseBehavior = UserInputService.MouseBehavior
- UserInputService.MouseBehavior = Enum.MouseBehavior.Default
- end
- -- Restore state
- function PlayerState.Pop()
- for name, isEnabled in pairs(coreGuis) do
- StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType[name], isEnabled)
- end
- for name, isEnabled in pairs(setCores) do
- StarterGui:SetCore(name, isEnabled)
- end
- for _, gui in pairs(screenGuis) do
- if gui.Parent then
- gui.Enabled = true
- end
- end
- Camera.FieldOfView = cameraFieldOfView
- cameraFieldOfView = nil
- Camera.CameraType = cameraType
- cameraType = nil
- Camera.CameraSubject = cameraSubject
- cameraSubject = nil
- Camera.CFrame = cameraCFrame
- cameraCFrame = nil
- Camera.Focus = cameraFocus
- cameraFocus = nil
- UserInputService.MouseIconEnabled = mouseIconEnabled
- mouseIconEnabled = nil
- UserInputService.MouseBehavior = mouseBehavior
- mouseBehavior = nil
- end
- end
- local function StartFreecam()
- local cameraCFrame = Camera.CFrame
- cameraRot = Vector2.new(cameraCFrame:toEulerAnglesYXZ())
- cameraPos = cameraCFrame.p
- cameraFov = Camera.FieldOfView
- velSpring:Reset(Vector3.new())
- panSpring:Reset(Vector2.new())
- fovSpring:Reset(0)
- PlayerState.Push()
- RunService:BindToRenderStep("Freecam", Enum.RenderPriority.Camera.Value, StepFreecam)
- Input.StartCapture()
- end
- local function StopFreecam()
- Input.StopCapture()
- RunService:UnbindFromRenderStep("Freecam")
- PlayerState.Pop()
- end
- ------------------------------------------------------------------------
- do
- local enabled = false
- local function ToggleFreecam()
- if enabled then
- StopFreecam()
- else
- StartFreecam()
- end
- enabled = not enabled
- end
- local function CheckMacro(macro)
- for i = 1, #macro - 1 do
- if not UserInputService:IsKeyDown(macro[i]) then
- return
- end
- end
- ToggleFreecam()
- end
- local function HandleActivationInput(action, state, input)
- if state == Enum.UserInputState.Begin then
- if input.KeyCode == FREECAM_MACRO_KB[#FREECAM_MACRO_KB] then
- CheckMacro(FREECAM_MACRO_KB)
- end
- end
- return Enum.ContextActionResult.Pass
- end
- ContextActionService:BindActionAtPriority("FreecamToggle", HandleActivationInput, false, TOGGLE_INPUT_PRIORITY, FREECAM_MACRO_KB[#FREECAM_MACRO_KB])
- end
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.PlayerGui
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- print("Clicked")
- end)
- local Hotkeys = Lobby:NewSection("Hotkey Script")
- Hotkeys:NewButton("Hotkeys", "original script by MintTea", function(txt)
- local lib = loadstring(game:HttpGet("https://raw.githubusercontent.com/banbuskox/dfhtyxvzexrxgfdzgzfdvfdz/main/jsdnfjdsfdjnsmvkjhlkslzLIB", true))()
- local w = lib:CreateWindow("Hotkeys")
- w:Section("RCtrl To Close UI:")
- w:Section("e = Upgrade:")
- w:Section("r = Sell:")
- w:Section("z = COA:")
- w:Section("x = Warrior's Call:")
- w:Section("c = Cleansing:")
- w:Section("v = Swarm:")
- local m = game.Players.LocalPlayer:GetMouse()
- function findModel(part)
- while true do
- local parentModel = part:FindFirstAncestorOfClass("Model")
- if not parentModel then
- return nil
- end
- if parentModel.Parent == workspace.Towers then
- return parentModel
- else
- part = parentModel
- end
- end
- end
- m.KeyDown:Connect(function(key)
- local tar = m.Target
- local tower = findModel(tar)
- if tower then
- if key:lower() == "e" then
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer("Troops","Upgrade","Set",{["Troop"] = tower})
- elseif key:lower() == "r" then
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer("Troops","Sell",{["Troop"] = tower})
- elseif key:lower() == "z" then
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer("Troops","Abilities","Activate",{["Name"] = "Call Of Arms",["Troop"] = tower})
- elseif key:lower() == "x" then
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer("Troops","Abilities","Activate",{["Name"] = "Warrior's Call",["Troop"] = tower})
- elseif key:lower() == "c" then
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer("Troops","Abilities","Activate",{["Name"] = "Cleansing",["Troop"] = tower})
- elseif key:lower() == "v" then
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer("Troops","Abilities","Activate",{["Name"] = "Swarm",["Troop"] = tower})
- end
- end
- end)
- print("Clicked")
- end)
- local Autochain = Lobby:NewSection("Autochain patched")
- Autochain:NewButton("Autochain", "Loads autochain script by MM", function(txt)
- loadstring(game:HttpGet("https://banbus.cf/scripts/tdsautochainv2"))()
- print("Clicked")
- end)
- local Nicuse = Lobby:NewSection("Nicuse Hub GONE")
- Nicuse:NewButton("Nicuse Hub", "Loads Nicuse's Hub", function(txt)
- loadstring(game:HttpGet('https://raw.githubusercontent.com/Nicuse/RobloxScripts/main/TowerDefenseSimulator.lua', true))()
- print("Clicked")
- end)
- local ToggleUI = Lobby:NewSection("Toggle UI")
- ToggleUI:NewKeybind("Toggle UI", "Toggles the UI", Enum.KeyCode.LeftControl, function(txt)
- Library:ToggleUI()
- end)
- local Lobby = Window:NewTab("Game")
- local turn = false
- local CreditsBar = Credits:NewSection("Credits")
- CreditsBar:NewLabel("TripleDomm: Owner script")
- CreditsBar:NewLabel("jonasasJB, Sinon, rear : Homies")
- local Skip = Lobby:NewSection("Skip")
- Skip:NewKeybind("Skip", "Skips Wave", Enum.KeyCode.F, function(txt)
- local A_1 = "Waves"
- local A_2 = "Skip"
- local Event = game:GetService("ReplicatedStorage").RemoteFunction
- Event:InvokeServer(A_1, A_2)
- end)
- local Stack = Lobby:NewSection("Stack")
- Stack:NewButton("Accelerator", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Accelerator"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Ace Pilot", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Ace Pilot"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Archer", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Archer"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Commander", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Commander"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Cowboy", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Cowboy"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Crook Boss", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Crook Boss"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Demoman", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Demoman"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("DJ Booth", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "DJ Booth"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Electroshocker", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Electroshocker"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Engineer", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Engineer"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Executioner", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Executioner"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Farm", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Farm"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Freezer", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Freezer"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Hunter", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Hunter"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Medic", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Medic"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Militant", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Militant"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Minigunner", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Minigunner"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Mortar", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Mortar"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Paintballer", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Paintballer"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Pursuit", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Pursuit"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Pyromancer", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Pyromancer"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Ranger", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Ranger"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Rocketeer", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Rocketeer"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Scout", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Scout"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Scout2", "Only works on some maps", function()
- local player = game.Players.LocalPlayer
- local hrp = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
- if not hrp then return end
- local args = {
- "Troops",
- "Place",
- {
- Position = hrp.Position - Vector3.new(0, 0, 0),
- Rotation = CFrame.Angles(math.rad(90), 0, 0)
- },
- "Scout"
- }
- local RemoteFunction = game:GetService("ReplicatedStorage"):WaitForChild("RemoteFunction")
- RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Shotgunner", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Shotgunner"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Sniper", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Sniper"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Soldier", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Soldier"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Toxic Gunner", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Toxic Gunner"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewButton("Turret", "Make sure u stand in the position u want to place", function(txt)
- local args = {
- "Troops",
- "Place",
- {
- ["Rotation"] = CFrame.Angles(math.rad(90), 0, 0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- },
- "Turret"
- }
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
- end)
- Stack:NewDropdown("StackTower", "Alt of stack tower name", TowersUHave, function(currentOption)
- local A_1 = "Troops"
- local A_2 = "Place"
- local A_3 = currentOption
- local A_4 =
- {
- ["Rotation"] = CFrame.new(0,5,0),
- ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,-5,0)
- }
- local Event = game:GetService("ReplicatedStorage").RemoteFunction
- Event:InvokeServer(A_1, A_2, A_3, A_4)
- end)
- local themes = {
- SchemeColor = Color3.fromRGB(255,255,255),
- Background = Color3.fromRGB(255, 255, 255),
- Header = Color3.fromRGB(255, 255, 255),
- TextColor = Color3.fromRGB(255,255,255),
- ElementColor = Color3.fromRGB(255, 255, 255)
- }
- local Lobby = Window:NewTab("Theme")
- local colors = Lobby:NewSection("Colors")
- for theme, color in pairs(themes) do
- colors:NewColorPicker(theme, "Change your "..theme, color, function(color3)
- Library:ChangeColor(theme, color3)
- end)
- end
- local CopyDiscordServerLink = Credits:NewSection("Copy Discord server link")
- CopyDiscordServerLink:NewButton("Copy", "Why don't you even understand this?", function()
- setclipboard("https://discord.gg/8zd9YHAQTF")
- end)
Advertisement
Comments
-
- Recode of my old 2022 script, people said it was patched so I decided to fix it. I have other versions, but I guess this is all for now
Add Comment
Please, Sign In to add comment
Advertisement