Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- By: 0110100001110100011101000111000001110011001110100010111100101111001100010110010001110010011101100010111001101101011100110010111101110100001011110111001100100001010000010110100101010000011001010110111001010000011110000110100101100110011011100110100000111000011010000110111101100100011110010111001101101000001100000100001101100101011001100100001001100111011011000100010101110110010101100111010101010001001111110110010100111101001101010110011101101000011101110100011001000101
- ]]
- local breakWhile1 = Instance.new("BoolValue")
- breakWhile1.Value = true
- local breakWhile2 = Instance.new("BoolValue")
- breakWhile2.Value = true
- local breakWhile3 = Instance.new("BoolValue")
- breakWhile3.Value = true
- local breakWhile4 = Instance.new("BoolValue")
- breakWhile4.Value = true
- local breakWhile5 = Instance.new("BoolValue")
- breakWhile5.Value = true
- local breakWhile6 = Instance.new("BoolValue")
- breakWhile6.Value = true
- local breakWhile7 = Instance.new("BoolValue")
- breakWhile7.Value = true
- local breakWhile8 = Instance.new("BoolValue")
- breakWhile8.Value = true
- local breakWhile9 = Instance.new("BoolValue")
- breakWhile9.Value = true
- local breakWhile10 = Instance.new("BoolValue")
- breakWhile10.Value = true
- local breakWhile11 = Instance.new("BoolValue")
- breakWhile11.Value = true
- local breakWhile12 = Instance.new("BoolValue")
- breakWhile12.Value = true
- local breakWhile13 = Instance.new("BoolValue")
- breakWhile13.Value = true
- local breakWhile14 = Instance.new("BoolValue")
- breakWhile14.Value = true
- function CreateFrame(Transparency, Color)
- local Frame = Instance.new("Frame")
- Frame.BorderSizePixel = 0
- Frame.BackgroundTransparency = Transparency
- Frame.BackgroundColor3 = Color
- return Frame
- end
- function CreateTextLabel (Text, TextColor)
- local TxtLbl = Instance.new("TextLabel")
- TxtLbl.Font = Enum.Font.SourceSansBold
- TxtLbl.BackgroundTransparency = 1
- TxtLbl.TextColor3 = TextColor
- TxtLbl.Text = Text
- TxtLbl.TextSize = 15
- return TxtLbl
- end
- function CreateTextBox (Text, TextColor)
- local TxtLbl = Instance.new("TextBox")
- TxtLbl.BackgroundTransparency = 1
- TxtLbl.TextColor3 = TextColor
- TxtLbl.Text = Text
- TxtLbl.TextSize = 15
- return TxtLbl
- end
- function CreateTextButton (Text, TextColor)
- local TxtLbl = Instance.new("TextButton")
- TxtLbl.BackgroundTransparency = 1
- TxtLbl.TextColor3 = TextColor
- TxtLbl.Text = Text
- TxtLbl.TextSize = 15
- return TxtLbl
- end
- local function SendNotification (TextY)
- game.StarterGui:SetCore("SendNotification", {Title = "OPTanks666", Text = TextY})
- end
- local function FF()
- while breakWhile1.Value == false do
- for i, v in pairs(game.Players:GetPlayers()) do
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..v.Name) then
- if v.TeamColor == game.Players.LocalPlayer.TeamColor then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..v.Name)
- local A_1 = Tank
- local A_2 = "Absorb"
- local A_3 = Tank.Base.Position
- local A_4 = Vector3.new(Tank.Base.Position.X-70,Tank.Base.Position.Y,Tank.Base.Position.Z-70)
- local Event = game:GetService("ReplicatedStorage").Remotes.FireAbility
- Event:FireServer(A_1,A_2,A_3,A_4)
- end
- end
- end
- wait(.01)
- end
- end
- local function AntiBulletOT()
- while breakWhile6.Value == false do
- for i, v in pairs(game.Players:GetPlayers()) do
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..v.Name) then
- if v.TeamColor ~= game.Players.LocalPlayer.TeamColor then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..v.Name)
- local A_1 = Tank
- local A_2 = "Absorb"
- local A_3 = Tank.Base.Position
- local A_4 = Vector3.new(Tank.Base.Position.X-7,Tank.Base.Position.Y,Tank.Base.Position.Z-10)
- local Event = game:GetService("ReplicatedStorage").Remotes.FireAbility
- Event:FireServer(A_1,A_2,A_3,A_4)
- local CR = coroutine.wrap(function()
- local ammos = Tank.AvailableAmmo:GetChildren()
- for i =1, #ammos do
- wait(0.01)
- ammos[i].Value = math.huge
- end
- end)
- CR()
- end
- end
- end
- wait(.01)
- end
- end
- local function EMP()
- while breakWhile2.Value == false do
- for i, v in pairs(game.Players:GetPlayers()) do
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..v.Name) then
- if v.TeamColor == game.Players.LocalPlayer.TeamColor then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..v.Name)
- local A_1 = Tank
- local A_2 = "EMP"
- local A_3 = Tank.Base.Position
- local A_4 = Vector3.new(Tank.Base.Position.X-7,Tank.Base.Position.Y,Tank.Base.Position.Z-10)
- local Event = game:GetService("ReplicatedStorage").Remotes.FireAbility
- Event:FireServer(A_1,A_2,A_3,A_4)
- end
- end
- end
- wait(.01)
- end
- end
- local function EMPOP()
- while breakWhile4.Value == false do
- for i, v in pairs(game.Players:GetPlayers()) do
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..v.Name) then
- if v.TeamColor ~= game.Players.LocalPlayer.TeamColor then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..v.Name)
- local A_1 = Tank
- local A_2 = "EMP"
- local A_3 = Tank.Base.Position
- local A_4 = Vector3.new(Tank.Base.Position.X-7,Tank.Base.Position.Y,Tank.Base.Position.Z-10)
- local Event = game:GetService("ReplicatedStorage").Remotes.FireAbility
- Event:FireServer(A_1,A_2,A_3,A_4)
- end
- end
- end
- wait(.01)
- end
- end
- local function Mine()
- while breakWhile3.Value == false do
- for i, v in pairs(game.Players:GetPlayers()) do
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..v.Name) then
- if v.TeamColor == game.Players.LocalPlayer.TeamColor then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..v.Name)
- local A_1 = Tank
- local A_2 = "Mine"
- local A_3 = Tank.Base.Position
- local A_4 = Vector3.new(Tank.Base.Position.X-7,Tank.Base.Position.Y,Tank.Base.Position.Z-10)
- local Event = game:GetService("ReplicatedStorage").Remotes.FireAbility
- Event:FireServer(A_1,A_2,A_3,A_4)
- end
- end
- end
- wait(.01)
- end
- end
- local function MineOP()
- while breakWhile5.Value == false do
- for i, v in pairs(game.Players:GetPlayers()) do
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..v.Name) then
- if v.TeamColor ~= game.Players.LocalPlayer.TeamColor then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..v.Name)
- local A_1 = Tank
- local A_2 = "Mine"
- local A_3 = Tank.Base.Position
- local A_4 = Vector3.new(Tank.Base.Position.X-7,Tank.Base.Position.Y,Tank.Base.Position.Z-10)
- local Event = game:GetService("ReplicatedStorage").Remotes.FireAbility
- Event:FireServer(A_1,A_2,A_3,A_4)
- end
- end
- end
- wait(.01)
- end
- end
- local function MakeDeadOnTouch(DoorClone)
- DoorClone.Touched:Connect(function(part)
- print(part.Parent.Name)
- DoorClone.CanCollide = true
- if string.sub(part.Parent.Name, 1, 5) == "Tank-" then
- if game.Players:FindFirstChild(string.sub(part.Parent.Name, 6)) then
- local plrwhotouched = game.Players:FindFirstChild(string.sub(part.Parent.Name, 6))
- if plrwhotouched.TeamColor ~= game.Players.LocalPlayer.TeamColor then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..plrwhotouched.Name)
- local A_1 = Tank
- local A_2 = "Mine"
- local A_3 = part.Position
- local A_4 = Vector3.new(part.Position.X-7,part.Position.Y,part.Position.Z-10)
- local Event = game:GetService("ReplicatedStorage").Remotes.FireAbility
- Event:FireServer(A_1,A_2,A_3,A_4)
- end
- end
- end
- end)
- while breakWhile7 == false and game:GetService("ReplicatedStorage").GamemodeInfo.Active.Value == true do
- for i, v in pairs(DoorClone:GetTouchingParts()) do
- print(v.Name)
- local part = v
- if string.sub(part.Parent.Name, 1, 5) == "Tank-" then
- if game.Players:FindFirstChild(string.sub(part.Parent.Name, 6)) then
- local plrwhotouched = game.Players:FindFirstChild(string.sub(part.Parent.Name, 6))
- if plrwhotouched.TeamColor ~= game.Players.LocalPlayer.TeamColor then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..plrwhotouched.Name)
- local A_1 = Tank
- local A_2 = "Mine"
- local A_3 = part.Position
- local A_4 = Vector3.new(part.Position.X-7,part.Position.Y,part.Position.Z-10)
- local Event = game:GetService("ReplicatedStorage").Remotes.FireAbility
- Event:FireServer(A_1,A_2,A_3,A_4)
- end
- end
- end
- end
- wait(.1)
- end
- end
- local function InfiniteAmmo ()
- while breakWhile9.Value == false do
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name)
- local ammos = Tank.AvailableAmmo:GetChildren()
- for i =1, #ammos do
- wait(0.1)
- ammos[i].Value = 999999
- end
- end
- wait(.1)
- end
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name)
- local ammos = Tank.AvailableAmmo:GetChildren()
- for i =1, #ammos do
- wait(0.1)
- ammos[i].Value = 25
- end
- end
- end
- local function InfiniteRotate ()
- local OldRotationValue = 180
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name)
- OldRotationValue = Tank.Settings.RotationSpeed.Value
- end
- while breakWhile10.Value == false do
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name)
- Tank.Settings.RotationSpeed.Value = 90000
- end
- wait(.1)
- end
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name)
- Tank.Settings.RotationSpeed.Value = OldRotationValue
- end
- end
- local function FasterTank ()
- local OldMoveValue = 25
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name)
- OldMoveValue = Tank.Settings.MoveSpeed.Value
- end
- while breakWhile11.Value == false do
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name)
- Tank.Settings.MoveSpeed.Value = 100
- end
- wait(.1)
- end
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name)
- Tank.Settings.MoveSpeed.Value = OldMoveValue
- end
- end
- local function InfShots ()
- local OldShots = 4
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name)
- OldShots = Tank.Settings.LoadedShots.Value
- end
- while breakWhile12.Value == false do
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name)
- Tank.Settings.LoadedShots.Value = 400000
- end
- wait(.1)
- end
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name)
- Tank.Settings.LoadedShots.Value = OldShots
- end
- end
- local function InfFire ()
- local OldFire = 1
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name)
- OldFire = Tank.Settings.MaxFireRate.Value
- end
- while breakWhile13.Value == false do
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name)
- Tank.Settings.MaxFireRate.Value = 0.01
- end
- wait(.1)
- end
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name)
- Tank.Settings.MaxFireRate.Value = OldFire
- end
- end
- local function NoAbilityCooldown ()
- local OldAbilityCooldown = 20
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name)
- OldAbilityCooldown = Tank.Settings.AbilityCooldown.Value
- end
- while breakWhile14.Value == false do
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name)
- Tank.Settings.AbilityCooldown.Value = 0.1
- end
- wait(.1)
- end
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name)
- Tank.Settings.AbilityCooldown.Value = OldAbilityCooldown
- end
- end
- local function AllowInSpawn ()
- while breakWhile8.Value == false do
- if game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) then
- local Tank = game:GetService("Workspace").Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name)
- Tank.Settings.AllowedInSpawn.Value = true
- end
- wait(.1)
- end
- end
- function KillOnLeave ()
- while breakWhile7.Value == false do
- if game.Workspace:FindFirstChild("ToyMap") then
- if game.Workspace:FindFirstChild("ToyMap"):IsA("Model") then
- if game.Workspace:FindFirstChild("ToyMap"):FindFirstChild("TeamDoors") then
- local OppositeTeam = ""
- if string.lower(game.Players.LocalPlayer.Team.Name) == "blue" then
- OppositeTeam = "Red"
- else
- OppositeTeam = "Blue"
- end
- if game.Workspace:FindFirstChildWhichIsA("Model"):FindFirstChild("TeamDoors"):FindFirstChild(OppositeTeam) then
- local Folder = Instance.new("Folder", game.Workspace)
- Folder.Name = "DoorClones"
- for i, h in pairs(game.Workspace:FindFirstChild("ToyMap"):FindFirstChild("TeamDoors"):FindFirstChild(OppositeTeam):GetChildren()) do
- local DoorClone = h:Clone()
- DoorClone.Parent = Folder
- DoorClone.Name = "DoorClone"
- MakeDeadOnTouch(DoorClone)
- end
- end
- end
- end
- end
- repeat wait() until game:GetService("ReplicatedStorage").GamemodeInfo.Active.Value == false or breakWhile7.Value == true
- if game:GetService("ReplicatedStorage").GamemodeInfo.Active.Value == false then
- repeat wait() until game:GetService("ReplicatedStorage").GamemodeInfo.Active.Value == true or breakWhile7.Value == true
- end
- if game.Workspace:FindFirstChild("DoorClones") then
- game.Workspace:FindFirstChild("DoorClones"):Destroy()
- end
- end
- end
- function Toggle(Type)
- if Type == "FF" then
- if breakWhile1.Value == true then
- breakWhile1.Value = false
- SendNotification("Turned On ForceField/Pulse For Your Team")
- FF()
- else
- breakWhile1.Value = true
- SendNotification("Turned Off ForceField/Pulse For Your Team")
- end
- elseif Type == "EMP" then
- if breakWhile2.Value == true then
- breakWhile2.Value = false
- SendNotification("Turned On EMP For Your Team")
- EMP()
- else
- breakWhile2.Value = true
- SendNotification("Turned Off EMP For Your Team")
- end
- elseif Type == "Mines" then
- if breakWhile3.Value == true then
- breakWhile3.Value = false
- SendNotification("Turned On Mines For Your Team")
- Mine()
- else
- breakWhile3.Value = true
- SendNotification("Turned Off Mines For Your Team")
- end
- elseif Type == "EMPOT" then
- if breakWhile4.Value == true then
- breakWhile4.Value = false
- SendNotification("Turned On EMP For The Other Team")
- EMPOP()
- else
- breakWhile4.Value = true
- SendNotification("Turned Off EMP For The Other Team")
- end
- elseif Type == "MinesOT" then
- if breakWhile5.Value == true then
- breakWhile5.Value = false
- SendNotification("Turned On Mines For The Other Team")
- MineOP()
- else
- breakWhile5.Value = true
- SendNotification("Turned Off Mines For The Other Team")
- end
- elseif Type == "AntiLeave" then
- if breakWhile7.Value == true then
- breakWhile7.Value = false
- SendNotification("Turned On AntiLeave For The Other Team")
- KillOnLeave()
- else
- breakWhile7.Value = true
- SendNotification("Turned Off AntiLeave For The Other Team")
- end
- elseif Type == "AllowInSpawn" then
- if breakWhile8.Value == true then
- breakWhile8.Value = false
- SendNotification("Turned On Allow In Spawn For You")
- AllowInSpawn()
- else
- breakWhile8.Value = true
- SendNotification("Turned Off Allow In Spawn For You")
- end
- elseif Type == "InfRotate" then
- if breakWhile10.Value == true then
- breakWhile10.Value = false
- SendNotification("Turned On Inf Rotate Speed For You")
- InfiniteRotate()
- else
- breakWhile10.Value = true
- SendNotification("Turned Off Inf Rotate Speed For You")
- end
- elseif Type == "InfAmmo" then
- if breakWhile9.Value == true then
- breakWhile9.Value = false
- SendNotification("Turned On Inf Ammo For You")
- InfiniteAmmo()
- else
- breakWhile9.Value = true
- SendNotification("Turned Off Inf Ammo For You")
- end
- elseif Type == "FasterTank" then
- if breakWhile11.Value == true then
- breakWhile11.Value = false
- SendNotification("Turned On Faster Tank For You")
- FasterTank()
- else
- breakWhile11.Value = true
- SendNotification("Turned Off Faster Tank For You")
- end
- elseif Type == "NoReload" then
- if breakWhile12.Value == true then
- breakWhile12.Value = false
- SendNotification("Turned On No Reload For You")
- InfShots()
- else
- breakWhile12.Value = true
- SendNotification("Turned Off No Reload For You")
- end
- elseif Type == "InfFire" then
- if breakWhile13.Value == true then
- breakWhile13.Value = false
- SendNotification("Turned On Infinite Fire For You")
- InfFire()
- else
- breakWhile13.Value = true
- SendNotification("Turned Off Infinite For You")
- end
- elseif Type == "AbilityCooldown" then
- if breakWhile14.Value == true then
- breakWhile14.Value = false
- SendNotification("Turned On No Ability Cooldown For You")
- NoAbilityCooldown()
- else
- breakWhile14.Value = true
- SendNotification("Turned Off No Ability Cooldown For You")
- end
- end
- end
- -- In order to use the InputBegan event, the UserInputService service must be used
- local UserInputService = game:GetService("UserInputService")
- local ContextActionService = game:GetService("ContextActionService")
- -- Setting up the action handling function
- local function handleActionZ(actionName, inputState, inputObj)
- if inputState == Enum.UserInputState.Begin then
- Toggle("FF")
- end
- end
- local function handleActionX(actionName, inputState, inputObj)
- if inputState == Enum.UserInputState.Begin then
- Toggle("EMP")
- end
- end
- local function handleActionC(actionName, inputState, inputObj)
- if inputState == Enum.UserInputState.Begin then
- Toggle("Mines")
- end
- end
- local function handleActionV(actionName, inputState, inputObj)
- if inputState == Enum.UserInputState.Begin then
- Toggle("EMPOT")
- end
- end
- local function handleActionB(actionName, inputState, inputObj)
- if inputState == Enum.UserInputState.Begin then
- Toggle("MinesOT")
- end
- end
- local function handleActionN(actionName, inputState, inputObj)
- if inputState == Enum.UserInputState.Begin then
- Toggle("AntiLeave")
- end
- end
- local function handleActionF(actionName, inputState, inputObj)
- if inputState == Enum.UserInputState.Begin then
- Toggle("AllowInSpawn")
- end
- end
- local function handleActionG(actionName, inputState, inputObj)
- if inputState == Enum.UserInputState.Begin then
- Toggle("InfAmmo")
- end
- end
- local function handleActionH(actionName, inputState, inputObj)
- if inputState == Enum.UserInputState.Begin then
- Toggle("InfRotate")
- end
- end
- local function handleActionJ(actionName, inputState, inputObj)
- if inputState == Enum.UserInputState.Begin then
- Toggle("FasterTank")
- end
- end
- local function handleActionK(actionName, inputState, inputObj)
- if inputState == Enum.UserInputState.Begin then
- Toggle("NoReload")
- end
- end
- local function handleActionL(actionName, inputState, inputObj)
- if inputState == Enum.UserInputState.Begin then
- Toggle("InfFire")
- end
- end
- local function handleActionSC(actionName, inputState, inputObj)
- if inputState == Enum.UserInputState.Begin then
- Toggle("AbilityCooldown")
- end
- end
- if game.CoreGui:FindFirstChild("KeyBindGui") then
- game.CoreGui:FindFirstChild("KeyBindGui"):Destroy()
- end
- local HintGui = Instance.new("ScreenGui",game.CoreGui)
- HintGui.ResetOnSpawn = false
- HintGui.Name = "KeyBindGui"
- local MainFrame = CreateFrame(1,Color3.fromRGB(0,0,0))
- MainFrame.Size = UDim2.new(.5,-430,0,0)
- MainFrame.AnchorPoint = Vector2.new(.5,1)
- MainFrame.Position = UDim2.new(.5,430,1,-5)
- MainFrame.Parent = HintGui
- local KeysToBind = {
- You = {
- {"F", "Allow In Spawn",function() Toggle("AllowInSpawn") end, breakWhile8},
- {"G", "Inf Ammo",function() Toggle("InfAmmo") end, breakWhile9},
- {"H", "Inf Rotate",function() Toggle("InfRotate") end, breakWhile10},
- {"J", "Faster Tank",function() Toggle("FasterTank") end, breakWhile11},
- {"K", "No Reload",function() Toggle("NoReload") end, breakWhile12},
- {"L", "InfFire",function() Toggle("InfFire") end, breakWhile13},
- {";", "No Ability Cooldown",function() Toggle("AbilityCooldown") end, breakWhile14},
- },
- YourTeam = {
- {"Z", "ForceField",function() Toggle("FF") end, breakWhile1},
- {"X", "EMP",function() Toggle("EMP") end, breakWhile2},
- {"C", "Mines",function() Toggle("Mines") end,breakWhile3},
- },
- OtherTeam = {
- {"V", "EMP",function() Toggle("EMPOT") end,breakWhile4},
- {"B", "Mines",function() Toggle("MinesOT") end, breakWhile5},
- --{"N", "Anti-Leave",function() Toggle("AntiLeave") end, breakWhile7}
- }
- }
- function GetTotalFuncs ()
- local num = 0
- num = num + #KeysToBind.YourTeam+#KeysToBind.OtherTeam
- return num
- end
- local YourTeam = CreateFrame(.5,Color3.fromRGB(0,0,0))
- YourTeam.Position = UDim2.new(0,0,0,0)
- YourTeam.Size = UDim2.new(0,0,0,50)
- YourTeam.Parent = MainFrame
- local XPOS1 = 0
- for i, v in pairs(KeysToBind.YourTeam) do
- local KeyFrame = CreateFrame(1, Color3.fromRGB(0,255,0))
- KeyFrame.Size = UDim2.new(0,50,0,50)
- KeyFrame.Position = UDim2.new(0,XPOS1,0,0)
- KeyFrame.Parent = YourTeam
- local KeyLabel = CreateTextLabel(v[1],Color3.fromRGB(255,255,255))
- KeyLabel.Size = UDim2.new(1,0,1,0)
- KeyLabel.TextSize = 40
- KeyLabel.Parent = KeyFrame
- local KeyDesc = CreateTextLabel(v[2],Color3.fromRGB(255,255,255))
- KeyDesc.Size = UDim2.new(1,0,1,0)
- KeyDesc.TextSize = 10
- KeyDesc.TextYAlignment = Enum.TextYAlignment.Bottom
- KeyDesc.Parent = KeyFrame
- XPOS1 = XPOS1 + 53
- local Button = CreateTextButton("",Color3.fromRGB(0,0,0))
- Button.BackgroundTransparency = 1
- Button.Size = UDim2.new(1,0,1,0)
- Button.ZIndex = 2
- Button.MouseButton1Click:Connect(v[3])
- Button.Parent = KeyFrame
- v[4].Changed:Connect(function()
- if v[4].Value == false then
- KeyFrame.BackgroundTransparency = .5
- else
- KeyFrame.BackgroundTransparency = 1
- end
- end)
- end
- YourTeam.Size = UDim2.new(0,XPOS1,0,50)
- local XPOS2 = 0
- local OtherTeam = CreateFrame(.5,Color3.fromRGB(0,0,0))
- OtherTeam.Size = UDim2.new(0,0,0,50)
- OtherTeam.Position = UDim2.new(0,0,0,YourTeam.Position.Y.Offset+YourTeam.Size.Y.Offset+25)
- OtherTeam.AnchorPoint = Vector2.new(0,0)
- OtherTeam.Parent = MainFrame
- for i, v in pairs(KeysToBind.OtherTeam) do
- local KeyFrame = CreateFrame(1, Color3.fromRGB(255,0,0))
- KeyFrame.Size = UDim2.new(0,50,0,50)
- KeyFrame.Position = UDim2.new(0,XPOS2,0,0)
- KeyFrame.Parent = OtherTeam
- local KeyLabel = CreateTextLabel(v[1],Color3.fromRGB(255,255,255))
- KeyLabel.Size = UDim2.new(1,0,1,0)
- KeyLabel.TextSize = 40
- KeyLabel.Parent = KeyFrame
- local KeyDesc = CreateTextLabel(v[2],Color3.fromRGB(255,255,255))
- KeyDesc.Size = UDim2.new(1,0,1,0)
- KeyDesc.TextSize = 10
- KeyDesc.TextYAlignment = Enum.TextYAlignment.Bottom
- KeyDesc.Parent = KeyFrame
- XPOS2 = XPOS2 + 53
- local Button = CreateTextButton("",Color3.fromRGB(0,0,0))
- Button.BackgroundTransparency = 1
- Button.Size = UDim2.new(1,0,1,0)
- Button.ZIndex = 2
- Button.MouseButton1Click:Connect(v[3])
- Button.Parent = KeyFrame
- v[4].Changed:Connect(function()
- if v[4].Value == false then
- KeyFrame.BackgroundTransparency = .5
- else
- KeyFrame.BackgroundTransparency = 1
- end
- end)
- end
- XPOS2 = XPOS2 - 2
- OtherTeam.Size = UDim2.new(0,XPOS2,0,50)
- local YourTeamLabel = CreateTextLabel("Your Team",Color3.fromRGB(255,255,255))
- YourTeamLabel.BackgroundColor3 = Color3.fromRGB(0,0,0)
- YourTeamLabel.BackgroundTransparency = .5
- YourTeamLabel.TextSize = 15
- YourTeamLabel.Size = UDim2.new(0,80,0,15)
- YourTeamLabel.Position = UDim2.new(0,0,0,-17)
- YourTeamLabel.Parent = YourTeam
- local OtherTeamLabel = CreateTextLabel("Other Team",Color3.fromRGB(255,255,255))
- local YouFrame = CreateFrame(.5,Color3.fromRGB(0,0,0))
- YouFrame.Size = UDim2.new(0,0,0,50)
- YouFrame.Parent = MainFrame
- local XPOS0 = 0
- for i, v in pairs(KeysToBind.You) do
- local KeyFrame = CreateFrame(1, Color3.fromRGB(0,0,255))
- KeyFrame.Size = UDim2.new(0,50,0,50)
- KeyFrame.Position = UDim2.new(0,XPOS0,0,0)
- KeyFrame.Parent = YouFrame
- local KeyLabel = CreateTextLabel(v[1],Color3.fromRGB(255,255,255))
- KeyLabel.Size = UDim2.new(1,0,1,0)
- KeyLabel.TextSize = 40
- KeyLabel.Parent = KeyFrame
- local KeyDesc = CreateTextLabel(v[2],Color3.fromRGB(255,255,255))
- KeyDesc.Size = UDim2.new(1,0,1,0)
- KeyDesc.TextSize = 10
- KeyDesc.TextYAlignment = Enum.TextYAlignment.Bottom
- KeyDesc.Parent = KeyFrame
- XPOS0 = XPOS0 + 53
- local Button = CreateTextButton("",Color3.fromRGB(0,0,0))
- Button.BackgroundTransparency = 1
- Button.Size = UDim2.new(1,0,1,0)
- Button.ZIndex = 2
- Button.MouseButton1Click:Connect(v[3])
- Button.Parent = KeyFrame
- v[4].Changed:Connect(function()
- if v[4].Value == false then
- KeyFrame.BackgroundTransparency = .5
- else
- KeyFrame.BackgroundTransparency = 1
- end
- end)
- end
- YouFrame.Size = UDim2.new(0,XPOS0,0,50)
- YouFrame.Position = UDim2.new(0,0,0,OtherTeam.Position.Y.Offset+OtherTeam.Size.Y.Offset+25)
- local YouFrameLabel = CreateTextLabel("You",Color3.fromRGB(255,255,255))
- YouFrameLabel.BackgroundColor3 = Color3.fromRGB(0,0,0)
- YouFrameLabel.BackgroundTransparency = .5
- YouFrameLabel.TextSize = 15
- YouFrameLabel.Size = UDim2.new(0,80,0,15)
- YouFrameLabel.Position = UDim2.new(0,0,0,-17)
- YouFrameLabel.Parent = YouFrame
- OtherTeamLabel.BackgroundColor3 = Color3.fromRGB(0,0,0)
- OtherTeamLabel.BackgroundTransparency = .5
- OtherTeamLabel.TextSize = 15
- OtherTeamLabel.Position = UDim2.new(0,0,0,-17)
- OtherTeamLabel.Parent = OtherTeam
- OtherTeamLabel.Size = UDim2.new(0,OtherTeamLabel.TextBounds.X+5,0,15)
- YourTeamLabel.Size = UDim2.new(0,YourTeamLabel.TextBounds.X+5,0,15)
- YouFrameLabel.Size = UDim2.new(0,YouFrameLabel.TextBounds.X+5,0,15)
- MainFrame.Size = UDim2.new(.5, -370, 0, 200)
- -- Bind the action to the handler
- ContextActionService:BindAction("BoundAction1", handleActionZ, false, Enum.KeyCode.Z)
- ContextActionService:BindAction("BoundAction2", handleActionX, false, Enum.KeyCode.X)
- ContextActionService:BindAction("BoundAction3", handleActionC, false, Enum.KeyCode.C)
- ContextActionService:BindAction("BoundAction4", handleActionV, false, Enum.KeyCode.V)
- ContextActionService:BindAction("BoundAction5", handleActionB, false, Enum.KeyCode.B)
- --ContextActionService:BindAction("BoundAction7", handleActionN, false, Enum.KeyCode.N)
- ContextActionService:BindAction("BoundAction8", handleActionF, false, Enum.KeyCode.F)
- ContextActionService:BindAction("BoundAction9", handleActionG, false, Enum.KeyCode.G)
- ContextActionService:BindAction("BoundAction10", handleActionH, false, Enum.KeyCode.H)
- ContextActionService:BindAction("BoundAction11", handleActionJ, false, Enum.KeyCode.J)
- ContextActionService:BindAction("BoundAction12", handleActionK, false, Enum.KeyCode.K)
- ContextActionService:BindAction("BoundAction13", handleActionL, false, Enum.KeyCode.L)
- ContextActionService:BindAction("BoundAction14", handleActionSC, false, Enum.KeyCode.Semicolon)
Advertisement
Advertisement