Advertisement
Msizz

Not a dead rails script

Mar 18th, 2025 (edited)
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.71 KB | None | 0 0
  1. -- WeaponConfiguration
  2. -- Reload Duration
  3. -- FireDelay
  4.  
  5. --[[
  6.  
  7. ]]
  8.  
  9. local Players = game:GetService("Players")
  10. local RunService = game:GetService("RunService")
  11. local localPlayer = Players.LocalPlayer
  12. local camera = workspace.CurrentCamera
  13. local lockOffset = Vector3.new(0, 2, 0)
  14.  
  15. local Button = loadstring(game:HttpGet("https://pastebin.com/raw/VfYtrnwj"))()
  16. local Library = loadstring(game:HttpGet('https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/Shaman.lua'))()
  17. local Flags = Library.Flags
  18.  
  19. getgenv().LockOn = false;
  20. getgenv().LockOnClosest = true;
  21. getgenv().Mode = 1; -- 1: Include, 2: Exclude
  22.  
  23. local EnemyNames = { -- All NPC/Enemy names (not 100% most are guessed)
  24. ["Horse"] = false;
  25. ["Runner"] = true; -- fast zombie
  26. ["Walker"] = true; -- normal zombie
  27. ["Wolf"] = false;
  28. ["WereWolf"] = true;
  29. ["Unicorn"] = false;
  30. ["Vampire"] = true;
  31. ["ShotgunOutlaw"] = true;
  32. ["RifleOutlaw"] = true;
  33. ["RevolverOutlaw"] = true;
  34. }
  35.  
  36. local Window = Library:Window({
  37. Text = "Dead Rails - by x6/skire"
  38. })
  39.  
  40. local Main = Window:Tab({
  41. Text = "Pluh"
  42. })
  43.  
  44. local LockOnSection = Main:Section({
  45. Text = "Aimbot/LockOn",
  46. Side = "Left"
  47. })
  48.  
  49. local ModsSection = Main:Section({
  50. Text = "Weapon Mods",
  51. Side = "Left"
  52. })
  53.  
  54. local MovementSection = Main:Section({
  55. Text = "Player",
  56. Side = "Right"
  57. })
  58.  
  59. local infammoloop = nil
  60. local RDB,RD = false, 0
  61. local FDB,FD = false, 0
  62.  
  63. local function WeaponModsRefresh()
  64. if RDB == false and localPlayer.Character ~= nil then
  65. for _, child in pairs(localPlayer.Character:GetDescendants()) do
  66. if child:IsA("Tool") and child:FindFirstChild("WeaponConfiguration") then
  67. child["WeaponConfiguration"]["Reload Duration"].Value = RD
  68. end
  69. end
  70. for _, child in pairs(localPlayer:GetDescendants()) do
  71. if child:IsA("Tool") and child:FindFirstChild("WeaponConfiguration") then
  72. child["WeaponConfiguration"]["Reload Duration"].Value = RD
  73. end
  74. end
  75. end
  76. if FDB == false and localPlayer.Character ~= nil then
  77. for _, child in pairs(localPlayer.Character:GetChildren()) do
  78. if child:IsA("Tool") and child:FindFirstChild("WeaponConfiguration") then
  79. child["WeaponConfiguration"]["FireDelay"].Value = FD
  80. end
  81. end
  82. for _, child in pairs(localPlayer:GetDescendants()) do
  83. if child:IsA("Tool") and child:FindFirstChild("WeaponConfiguration") then
  84. child["WeaponConfiguration"]["FireDelay"].Value = FD
  85. end
  86. end
  87. end
  88. end
  89. local function infammo()
  90. if localPlayer.Character ~= nil then
  91. for _, child in pairs(localPlayer.Character:GetChildren()) do
  92. if child:IsA("Tool") and child:FindFirstChild("ServerWeaponState") then
  93. local sws = child:FindFirstChild("ServerWeaponState")
  94. local ca: Instance? = sws:FindFirstChild("CurrentAmmo")
  95. if ca ~= nil then
  96. ca.Value = 100000
  97. end
  98. end
  99. end
  100. for _, child in pairs(localPlayer.Character:GetDescendants()) do
  101. if child:IsA("Tool") and child:FindFirstChild("ServerWeaponState") then
  102. local sws = child:FindFirstChild("ServerWeaponState")
  103. local ca: Instance? = sws:FindFirstChild("CurrentAmmo")
  104. if ca ~= nil then
  105. ca.Value = 100000
  106. end
  107. end
  108. end
  109. end
  110. wait(0.1)
  111. end
  112. ModsSection:Label({
  113. Text = "Custom Reload Duration",
  114. Color = Color3.new(1.000000, 1.000000, 1.000000)
  115. })
  116. ModsSection:Input({
  117. Placeholder = "0.1",
  118. Callback = function(v)
  119. RDB = true
  120. RD = tonumber(v)
  121. WeaponModsRefresh()
  122. end
  123. })
  124. ModsSection:Label({
  125. Text = "Custom Fire/Shoot Delay",
  126. Color = Color3.new(1.000000, 1.000000, 1.000000)
  127. })
  128. ModsSection:Input({
  129. Placeholder = "0.1",
  130. Callback = function(v)
  131. FDB = true
  132. FD = tonumber(v)
  133. WeaponModsRefresh()
  134. end
  135. })
  136. ModsSection:Toggle({
  137. Text = "[CLIENT] Infinite Ammo",
  138. Callback = function(v)
  139. if v then
  140. infammoloop = RunService.Stepped:Connect(infammo)
  141. else
  142. if infammoloop then
  143. infammoloop:Disconnect()
  144. end
  145. end
  146. end
  147. })
  148.  
  149. local LockOnButton = LockOnSection:Toggle({
  150. Text = "Toggle Button",
  151. Callback = function(v)
  152. Button.UI.Enabled = v
  153. end
  154. })
  155.  
  156. local LockOnClosest = LockOnSection:Toggle({
  157. Text = "LockOn Closest",
  158. Callback = function()
  159. getgenv().LockOnClosest = not getgenv().LockOnClosest
  160. end
  161. })
  162.  
  163. LockOnSection:Keybind({
  164. Default = Enum.UserInputType.MouseButton2,
  165. Text = "Toggle Keybind",
  166. Callback = function()
  167. getgenv().LockOn = not getgenv().LockOn
  168. end
  169. })
  170.  
  171. -- filter
  172.  
  173. LockOnSection:Label({
  174. Text = "Filtering:",
  175. Color = Color3.new(1.000000, 1.000000, 1.000000),
  176. Tooltip = "Filter the enemys that get locked on"
  177. })
  178.  
  179. local LockOnlaws = LockOnSection:Toggle({
  180. Text = "Outlaws",
  181. Callback = function(v)
  182. EnemyNames["ShotgunOutlaw"] = v
  183. EnemyNames["RifleOutlaw"] = v
  184. EnemyNames["RevolverOutlaw"] = v
  185. end
  186. })
  187.  
  188. local LockOnZombies = LockOnSection:Toggle({
  189. Text = "Zombies",
  190. Callback = function(v)
  191. EnemyNames["Walker"] = v
  192. EnemyNames["Runner"] = v
  193. end
  194. })
  195.  
  196. local LockOnVampires = LockOnSection:Toggle({
  197. Text = "Vampires",
  198. Callback = function(v)
  199. EnemyNames["Vampire"] = v
  200. end
  201. })
  202.  
  203. local LockOnWereWolf = LockOnSection:Toggle({
  204. Text = "WereWolfs",
  205. Callback = function(v)
  206. EnemyNames["WereWolf"] = v
  207. end
  208. })
  209.  
  210. local LockOnWolf = LockOnSection:Toggle({
  211. Text = "Wolfs",
  212. Callback = function(v)
  213. EnemyNames["Wolf"] = v
  214. end
  215. })
  216.  
  217. local LockOnUnicorn = LockOnSection:Toggle({
  218. Text = "Unicorns",
  219. Callback = function(v)
  220. EnemyNames["Unicorn"] = v
  221. end
  222. })
  223.  
  224. local LockOnHorse = LockOnSection:Toggle({
  225. Text = "Horses",
  226. Callback = function(v)
  227. EnemyNames["Horse"] = v
  228. end
  229. })
  230.  
  231. Main:Select()
  232.  
  233. LockOnButton:Set(true)
  234. LockOnClosest:Set(getgenv().LockOnClosest)
  235. LockOnlaws:Set(EnemyNames["ShotgunOutlaw"])
  236. LockOnZombies:Set(EnemyNames["Walker"])
  237. LockOnVampires:Set(EnemyNames["Vampire"])
  238. LockOnWereWolf:Set(EnemyNames["WereWolf"])
  239. LockOnWolf:Set(EnemyNames["Wolf"])
  240. LockOnUnicorn:Set(EnemyNames["Unicorn"])
  241. LockOnHorse:Set(EnemyNames["Horse"])
  242.  
  243. MovementSection:Slider({
  244. Text = "[UNDETECTED] Walk Speed",
  245. Default = 16,
  246. Minimum = 16,
  247. Maximum = 18,
  248. Flag = "SliderFlag",
  249. Callback = function(v)
  250. localPlayer.Character.Humanoid.WalkSpeed = v
  251. end
  252. })
  253. MovementSection:Slider({
  254. Text = "[UNDETECTED] Jump Height",
  255. Default = 7.2,
  256. Minimum = 7.2,
  257. Maximum = 16,
  258. Flag = "SliderFlag",
  259. Callback = function(v)
  260. localPlayer.Character.Humanoid.JumpHeight = v
  261. end
  262. })
  263.  
  264. -- FULL CREDIT TO INFINITE YIELD!!!!
  265. local Noclipping = nil
  266. MovementSection:Toggle({
  267. Text = "Noclip",
  268. Callback = function(v)
  269. Clip = false
  270. wait(0.1)
  271. if v == true then
  272. local function NoclipLoop()
  273. if Clip == false and localPlayer.Character ~= nil then
  274. for _, child in pairs(localPlayer.Character:GetDescendants()) do
  275. if child:IsA("BasePart") and child.CanCollide == true then
  276. child.CanCollide = false
  277. end
  278. end
  279. end
  280. end
  281. Noclipping = RunService.Stepped:Connect(NoclipLoop)
  282. else
  283. if Noclipping then
  284. Noclipping:Disconnect()
  285. end
  286. Clip = true
  287. end
  288. end
  289. })
  290.  
  291. Button.Button.MouseButton1Click:Connect(function()
  292. getgenv().LockOn = not getgenv().LockOn
  293. if getgenv().LockOn then
  294. Button.OutLine.Color = Color3.fromRGB(0, 255, 127)
  295. else
  296. Button.OutLine.Color = Color3.fromRGB(255, 69, 72)
  297. end
  298. end)
  299.  
  300.  
  301. RunService.RenderStepped:Connect(function()
  302. if getgenv().LockOn then
  303. local closestNPC = nil
  304. local closestDistance = math.huge
  305. for _, obj in ipairs(workspace:GetDescendants()) do
  306. if obj:IsA("Model") and obj:FindFirstChild("Humanoid") and not Players:GetPlayerFromCharacter(obj) then
  307. for i,v in pairs(EnemyNames) do
  308. if v and obj.Name == i then
  309. local humanoid = obj:FindFirstChild("Humanoid")
  310. if humanoid and humanoid.Health > 0 then
  311. local head = obj:FindFirstChild("Head")
  312. if getgenv().LockOnClosest then
  313. if head then
  314. local distance = (head.Position - camera.CFrame.p).Magnitude
  315. if distance < closestDistance then
  316. closestDistance = distance
  317. closestNPC = obj
  318. end
  319. end
  320. else
  321. closestNPC = obj
  322. end
  323. end
  324. end
  325. end
  326. end
  327. end
  328. if closestNPC and closestNPC:FindFirstChild("Head") then
  329. local head = closestNPC.Head
  330. camera.CFrame = CFrame.new(head.Position + head.CFrame:VectorToWorldSpace(lockOffset), head.Position)
  331. end
  332. end
  333. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement