getgenv().settingparty = {
"Create",
{
Gamemode = "Classic",
StageSkip = 1,
Whitelist = "Everyone",
Campaign = "ACT_1",
MinPlayers = 1,
Modifiers = {
--"SEEDED_GEARS", -- Seeded Gears
--"RELENTLESS", -- Relentless
--"PERKLESS", -- Perkless
--"SIZE_VARIATION", -- Size Variation
--"OUTRAGEOUS", -- Outrageous Enemies
--"ONE_SHOT", -- One Shot
--"GEARLESS", -- Gearless
--"GUIDELESS", -- Guideless
--"FORMIDABLE", -- Formidable
--"ARRIVAL", -- Early Arrival
--"SHADOW", -- Shadows
--"RANDOMIZER", -- Randomizer
--"NO_MERCY", -- No Mercy
--"BLOXXER" -- BLOXXERS Mode
--"TOTAL_WAR", -- Total War
--"TWOHIT", -- Brutal
--"ALL_OUTRAGEOUS", -- Ub3rR0xXorzage!
--"TWOSPEED", -- Hysteria
--"ONE_LIFE", -- One Life
--"RANDOMIZERPLUS", -- Randomizer+
--"RTD" -- RTD
},
MaxPlayers = 1
}
}
if not game:IsLoaded() then
game.Loaded:Wait()
end
local RunService = game:GetService("RunService")
local Settings = settings():GetService("NetworkSettings")
RunService.Heartbeat:Connect(function()
Settings.IncomingReplicationLag = 0
end)
local TeleportService = game:GetService("TeleportService")
local GuiService = game:GetService("GuiService")
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local Workspace = game:GetService("Workspace")
local player = Players.LocalPlayer
GuiService.ErrorMessageChanged:Connect(function()
local destinationPlaceId = 13559635034
TeleportService:Teleport(destinationPlaceId, player)
end)
local GC = getconnections or get_signal_cons
if GC then
for i, v in pairs(GC(player.Idled)) do
if v.Disable then
v.Disable(v)
elseif v.Disconnect then
v.Disconnect(v)
end
end
else
local VirtualUser = cloneref(game:GetService("VirtualUser"))
player.Idled:Connect(function()
VirtualUser:CaptureController()
VirtualUser:ClickButton2(Vector2.new())
end)
end
local character = player.Character or player.CharacterAdded:Wait()
local backpack = player:WaitForChild("Backpack")
local wantedNames = { "Paintball Gun", "Slingshot" }
local autoEquip = true
local autoSlingshot = true
local autoPaintGun = true
local gunLastTime = 0
local gunCooldown = 0.05
local function equipAllWanted()
for _, name in ipairs(wantedNames) do
local tool = backpack:FindFirstChild(name)
if tool and tool:IsA("Tool") then
tool.Parent = character
end
end
end
local function getAnyPart(enemy)
return enemy:FindFirstChild("HumanoidRootPart")
or enemy:FindFirstChild("Torso")
or enemy:FindFirstChild("UpperTorso")
or enemy:FindFirstChild("Head")
or enemy:FindFirstChildWhichIsA("BasePart")
end
local function getPriorityEnemy(HRP)
local enemiesFolder = Workspace:FindFirstChild("Enemies")
if not enemiesFolder then
return nil
end
local selectedEnemy, lowestMaxHP, nearestDist = nil, math.huge, math.huge
for _, enemy in ipairs(enemiesFolder:GetChildren()) do
local hum = enemy:FindFirstChildOfClass("Humanoid")
local part = getAnyPart(enemy)
if hum and part and hum.Health > 0 and not enemy:FindFirstChild("BeaconShield") then
local maxHP = hum.MaxHealth or hum.Health
local dist = (HRP.Position - part.Position).Magnitude
if maxHP < lowestMaxHP or (maxHP == lowestMaxHP and dist < nearestDist) then
lowestMaxHP, nearestDist, selectedEnemy = maxHP, dist, enemy
end
end
end
return selectedEnemy
end
local function tryBoard()
ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("Party"):WaitForChild("RemoteEvent"):FireServer(unpack(settingparty))
local teleportdi = { "Teleport" }
ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("Party"):WaitForChild("RemoteEvent"):FireServer(unpack(teleportdi))
return true
end
local function tryLobbyWeaponSelect()
local playerGui = player:FindFirstChild("PlayerGui")
if playerGui and playerGui:FindFirstChild("WeaponSelectUI") then
local chooseweapons = {
game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("WeaponSelectUI"),
{
game:GetService("ReplicatedStorage"):WaitForChild("Assets"):WaitForChild("Weapons"):WaitForChild("Primaries"):WaitForChild("PaintballGun"),
game:GetService("ReplicatedStorage"):WaitForChild("Assets"):WaitForChild("Weapons"):WaitForChild("Primaries"):WaitForChild("Slingshot")
}
}
game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Weapons"):WaitForChild("WeaponSelection"):FireServer(unpack(chooseweapons))
return true
end
return false
end
local function tryBaseMap()
if Workspace:FindFirstChild("Maps")
and Workspace.Maps:FindFirstChild("BaseMap")
and Workspace.Maps.BaseMap:FindFirstChild("SpawnLocation") then
return true
end
return false
end
local function tryRankingUI()
local playerGui = player:FindFirstChild("PlayerGui")
if playerGui and playerGui:FindFirstChild("RankingUI") then
local skipranking = { "Voted" }
local rankingRemote = ReplicatedStorage:FindFirstChild("RankingInfo")
if rankingRemote then
rankingRemote:FireServer(unpack(skipranking))
return true
end
end
return false
end
local function tryPostGameUI()
local playerGui = player:FindFirstChild("PlayerGui")
if playerGui and playerGui:FindFirstChild("PostGameUI") then
local returnRemote = ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("Functions"):FindFirstChild("ReturnToHub")
if returnRemote then
returnRemote:FireServer()
return true
end
end
return false
end
if game.PlaceId == 14582748896 then
local mt = getrawmetatable(game)
setreadonly(mt, false)
local oldNamecall = mt.__namecall
mt.__namecall = newcclosure(function(self, ...)
local method = getnamecallmethod()
if method == "FireServer" then
local remoteName = tostring(self)
if remoteName == "PlayerDamage" or remoteName == "DamageEvent" then
return nil
end
end
return oldNamecall(self, ...)
end)
setreadonly(mt, true)
local oldFireServer
oldFireServer = hookfunction(Instance.new("RemoteEvent").FireServer, function(self, ...)
local remoteName = tostring(self)
if remoteName == "PlayerDamage" or remoteName == "DamageEvent" then
return nil
end
return oldFireServer(self, ...)
end)
end
RunService.Heartbeat:Connect(function()
if game.PlaceId == 13559635034 and tryBoard() then
return
elseif game.PlaceId == 14582748896 and (tryRankingUI() or tryPostGameUI() or tryLobbyWeaponSelect()) then
return
elseif tryBaseMap() then
if not character or not character.Parent then
character = player.Character or player.CharacterAdded:Wait()
end
if not backpack or not backpack.Parent then
backpack = player:WaitForChild("Backpack")
end
local HRP = character:FindFirstChild("HumanoidRootPart")
if not HRP then return end
if autoEquip then
equipAllWanted()
end
local enemy = getPriorityEnemy(HRP)
if not enemy then return end
local hum = enemy:FindFirstChildOfClass("Humanoid")
local part = getAnyPart(enemy)
if not (hum and part) then return end
if autoSlingshot then
local slingshot = character:FindFirstChild("Slingshot")
if slingshot and slingshot:FindFirstChild("VerifyHit") then
slingshot.VerifyHit:FireServer(hum, part.Position, HRP.Position, part)
end
end
if autoPaintGun then
local now = tick()
if now - gunLastTime >= gunCooldown then
gunLastTime = now
local gun = character:FindFirstChild("Paintball Gun")
if gun and gun:FindFirstChild("VerifyHit") then
gun.VerifyHit:FireServer(
hum,
HRP.Position,
part.Position,
part,
{ Color = BrickColor.new(21), Quickdraw = false, ObjectBreak = false }
)
end
end
end
end
end)
RunService.Heartbeat:Connect(function()
local remote = ReplicatedStorage:FindFirstChild("IntermissionState")
if remote then
pcall(function()
remote:FireServer()
end)
end
end)
Comments
No comments yet
Be the first to share your thoughts!