Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- WeaponConfiguration
- -- Reload Duration
- -- FireDelay
- --[[
- ]]
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local localPlayer = Players.LocalPlayer
- local camera = workspace.CurrentCamera
- local lockOffset = Vector3.new(0, 2, 0)
- local Button = loadstring(game:HttpGet("https://pastebin.com/raw/VfYtrnwj"))()
- local Library = loadstring(game:HttpGet('https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/Shaman.lua'))()
- local Flags = Library.Flags
- getgenv().LockOn = false;
- getgenv().LockOnClosest = true;
- getgenv().Mode = 1; -- 1: Include, 2: Exclude
- local EnemyNames = { -- All NPC/Enemy names (not 100% most are guessed)
- ["Horse"] = false;
- ["Runner"] = true; -- fast zombie
- ["Walker"] = true; -- normal zombie
- ["Wolf"] = false;
- ["WereWolf"] = true;
- ["Unicorn"] = false;
- ["Vampire"] = true;
- ["ShotgunOutlaw"] = true;
- ["RifleOutlaw"] = true;
- ["RevolverOutlaw"] = true;
- }
- local Window = Library:Window({
- Text = "Dead Rails - by x6/skire"
- })
- local Main = Window:Tab({
- Text = "Pluh"
- })
- local LockOnSection = Main:Section({
- Text = "Aimbot/LockOn",
- Side = "Left"
- })
- local ModsSection = Main:Section({
- Text = "Weapon Mods",
- Side = "Left"
- })
- local MovementSection = Main:Section({
- Text = "Player",
- Side = "Right"
- })
- local infammoloop = nil
- local RDB,RD = false, 0
- local FDB,FD = false, 0
- local function WeaponModsRefresh()
- if RDB == false and localPlayer.Character ~= nil then
- for _, child in pairs(localPlayer.Character:GetDescendants()) do
- if child:IsA("Tool") and child:FindFirstChild("WeaponConfiguration") then
- child["WeaponConfiguration"]["Reload Duration"].Value = RD
- end
- end
- for _, child in pairs(localPlayer:GetDescendants()) do
- if child:IsA("Tool") and child:FindFirstChild("WeaponConfiguration") then
- child["WeaponConfiguration"]["Reload Duration"].Value = RD
- end
- end
- end
- if FDB == false and localPlayer.Character ~= nil then
- for _, child in pairs(localPlayer.Character:GetChildren()) do
- if child:IsA("Tool") and child:FindFirstChild("WeaponConfiguration") then
- child["WeaponConfiguration"]["FireDelay"].Value = FD
- end
- end
- for _, child in pairs(localPlayer:GetDescendants()) do
- if child:IsA("Tool") and child:FindFirstChild("WeaponConfiguration") then
- child["WeaponConfiguration"]["FireDelay"].Value = FD
- end
- end
- end
- end
- local function infammo()
- if localPlayer.Character ~= nil then
- for _, child in pairs(localPlayer.Character:GetChildren()) do
- if child:IsA("Tool") and child:FindFirstChild("ServerWeaponState") then
- local sws = child:FindFirstChild("ServerWeaponState")
- local ca: Instance? = sws:FindFirstChild("CurrentAmmo")
- if ca ~= nil then
- ca.Value = 100000
- end
- end
- end
- for _, child in pairs(localPlayer.Character:GetDescendants()) do
- if child:IsA("Tool") and child:FindFirstChild("ServerWeaponState") then
- local sws = child:FindFirstChild("ServerWeaponState")
- local ca: Instance? = sws:FindFirstChild("CurrentAmmo")
- if ca ~= nil then
- ca.Value = 100000
- end
- end
- end
- end
- wait(0.1)
- end
- ModsSection:Label({
- Text = "Custom Reload Duration",
- Color = Color3.new(1.000000, 1.000000, 1.000000)
- })
- ModsSection:Input({
- Placeholder = "0.1",
- Callback = function(v)
- RDB = true
- RD = tonumber(v)
- WeaponModsRefresh()
- end
- })
- ModsSection:Label({
- Text = "Custom Fire/Shoot Delay",
- Color = Color3.new(1.000000, 1.000000, 1.000000)
- })
- ModsSection:Input({
- Placeholder = "0.1",
- Callback = function(v)
- FDB = true
- FD = tonumber(v)
- WeaponModsRefresh()
- end
- })
- ModsSection:Toggle({
- Text = "[CLIENT] Infinite Ammo",
- Callback = function(v)
- if v then
- infammoloop = RunService.Stepped:Connect(infammo)
- else
- if infammoloop then
- infammoloop:Disconnect()
- end
- end
- end
- })
- local LockOnButton = LockOnSection:Toggle({
- Text = "Toggle Button",
- Callback = function(v)
- Button.UI.Enabled = v
- end
- })
- local LockOnClosest = LockOnSection:Toggle({
- Text = "LockOn Closest",
- Callback = function()
- getgenv().LockOnClosest = not getgenv().LockOnClosest
- end
- })
- LockOnSection:Keybind({
- Default = Enum.UserInputType.MouseButton2,
- Text = "Toggle Keybind",
- Callback = function()
- getgenv().LockOn = not getgenv().LockOn
- end
- })
- -- filter
- LockOnSection:Label({
- Text = "Filtering:",
- Color = Color3.new(1.000000, 1.000000, 1.000000),
- Tooltip = "Filter the enemys that get locked on"
- })
- local LockOnlaws = LockOnSection:Toggle({
- Text = "Outlaws",
- Callback = function(v)
- EnemyNames["ShotgunOutlaw"] = v
- EnemyNames["RifleOutlaw"] = v
- EnemyNames["RevolverOutlaw"] = v
- end
- })
- local LockOnZombies = LockOnSection:Toggle({
- Text = "Zombies",
- Callback = function(v)
- EnemyNames["Walker"] = v
- EnemyNames["Runner"] = v
- end
- })
- local LockOnVampires = LockOnSection:Toggle({
- Text = "Vampires",
- Callback = function(v)
- EnemyNames["Vampire"] = v
- end
- })
- local LockOnWereWolf = LockOnSection:Toggle({
- Text = "WereWolfs",
- Callback = function(v)
- EnemyNames["WereWolf"] = v
- end
- })
- local LockOnWolf = LockOnSection:Toggle({
- Text = "Wolfs",
- Callback = function(v)
- EnemyNames["Wolf"] = v
- end
- })
- local LockOnUnicorn = LockOnSection:Toggle({
- Text = "Unicorns",
- Callback = function(v)
- EnemyNames["Unicorn"] = v
- end
- })
- local LockOnHorse = LockOnSection:Toggle({
- Text = "Horses",
- Callback = function(v)
- EnemyNames["Horse"] = v
- end
- })
- Main:Select()
- LockOnButton:Set(true)
- LockOnClosest:Set(getgenv().LockOnClosest)
- LockOnlaws:Set(EnemyNames["ShotgunOutlaw"])
- LockOnZombies:Set(EnemyNames["Walker"])
- LockOnVampires:Set(EnemyNames["Vampire"])
- LockOnWereWolf:Set(EnemyNames["WereWolf"])
- LockOnWolf:Set(EnemyNames["Wolf"])
- LockOnUnicorn:Set(EnemyNames["Unicorn"])
- LockOnHorse:Set(EnemyNames["Horse"])
- MovementSection:Slider({
- Text = "[UNDETECTED] Walk Speed",
- Default = 16,
- Minimum = 16,
- Maximum = 18,
- Flag = "SliderFlag",
- Callback = function(v)
- localPlayer.Character.Humanoid.WalkSpeed = v
- end
- })
- MovementSection:Slider({
- Text = "[UNDETECTED] Jump Height",
- Default = 7.2,
- Minimum = 7.2,
- Maximum = 16,
- Flag = "SliderFlag",
- Callback = function(v)
- localPlayer.Character.Humanoid.JumpHeight = v
- end
- })
- -- FULL CREDIT TO INFINITE YIELD!!!!
- local Noclipping = nil
- MovementSection:Toggle({
- Text = "Noclip",
- Callback = function(v)
- Clip = false
- wait(0.1)
- if v == true then
- local function NoclipLoop()
- if Clip == false and localPlayer.Character ~= nil then
- for _, child in pairs(localPlayer.Character:GetDescendants()) do
- if child:IsA("BasePart") and child.CanCollide == true then
- child.CanCollide = false
- end
- end
- end
- end
- Noclipping = RunService.Stepped:Connect(NoclipLoop)
- else
- if Noclipping then
- Noclipping:Disconnect()
- end
- Clip = true
- end
- end
- })
- Button.Button.MouseButton1Click:Connect(function()
- getgenv().LockOn = not getgenv().LockOn
- if getgenv().LockOn then
- Button.OutLine.Color = Color3.fromRGB(0, 255, 127)
- else
- Button.OutLine.Color = Color3.fromRGB(255, 69, 72)
- end
- end)
- RunService.RenderStepped:Connect(function()
- if getgenv().LockOn then
- local closestNPC = nil
- local closestDistance = math.huge
- for _, obj in ipairs(workspace:GetDescendants()) do
- if obj:IsA("Model") and obj:FindFirstChild("Humanoid") and not Players:GetPlayerFromCharacter(obj) then
- for i,v in pairs(EnemyNames) do
- if v and obj.Name == i then
- local humanoid = obj:FindFirstChild("Humanoid")
- if humanoid and humanoid.Health > 0 then
- local head = obj:FindFirstChild("Head")
- if getgenv().LockOnClosest then
- if head then
- local distance = (head.Position - camera.CFrame.p).Magnitude
- if distance < closestDistance then
- closestDistance = distance
- closestNPC = obj
- end
- end
- else
- closestNPC = obj
- end
- end
- end
- end
- end
- end
- if closestNPC and closestNPC:FindFirstChild("Head") then
- local head = closestNPC.Head
- camera.CFrame = CFrame.new(head.Position + head.CFrame:VectorToWorldSpace(lockOffset), head.Position)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement