dats-scythe

dead rails fixing

Jan 26th, 2026
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.25 KB | None | 0 0
  1. local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
  2.  
  3. local Window = Rayfield:CreateWindow({
  4. Name = "Dead Rails Hub",
  5. LoadingTitle = "Loading Dead Rails...",
  6. LoadingSubtitle = "Lucky 28]",
  7. ConfigurationSaving = {
  8. Enabled = false,
  9. FolderName = nil,
  10. FileName = "DeadRailsConfig"
  11. }
  12. })
  13.  
  14. local Tab = Window:CreateTab("Main")
  15.  
  16. local autoSwingEnabled = false
  17. local swingSpeed = 0.01 -- Default speed in seconds (adjustable)
  18. local autoShovelEnabled = false
  19. local autoExcaliburEnabled = false
  20. local enlargeEnabled = false
  21. local hitboxSize = 10
  22. local connections = {}
  23. local flySpeed = 50 -- Default fly speed in studs per second (adjustable)
  24. local flyEnabled = false
  25. local flyBV = nil
  26. local flyBG = nil
  27. local flyKeys = {w = false, s = false, a = false, d = false, space = false, ctrl = false}
  28. local flyInputConnections = {}
  29.  
  30. local function isZombie(obj)
  31. return obj:IsA("Model") and obj:FindFirstChild("Humanoid") and obj:FindFirstChild("HumanoidRootPart") and string.find(obj.Name:lower(), "zombie")
  32. end
  33.  
  34. local function enableFly()
  35. if flyEnabled then return end
  36. flyEnabled = true
  37. local player = game:GetService("Players").LocalPlayer
  38. local character = player.Character or player.CharacterAdded:Wait()
  39. local humanoid = character:WaitForChild("Humanoid")
  40. local root = character:WaitForChild("HumanoidRootPart")
  41. humanoid:ChangeState(Enum.HumanoidStateType.Physics)
  42.  
  43. flyBV = Instance.new("BodyVelocity")
  44. flyBV.Velocity = Vector3.new(0, 0, 0)
  45. flyBV.MaxForce = Vector3.new(9e9, 9e9, 9e9)
  46. flyBV.Parent = root
  47.  
  48. flyBG = Instance.new("BodyGyro")
  49. flyBG.MaxTorque = Vector3.new(9e9, 9e9, 9e9)
  50. flyBG.P = 9e4
  51. flyBG.Parent = root
  52.  
  53. local UIS = game:GetService("UserInputService")
  54.  
  55. local inputBegan = UIS.InputBegan:Connect(function(input)
  56. if input.UserInputType == Enum.UserInputType.Keyboard then
  57. local key = input.KeyCode
  58. if key == Enum.KeyCode.W then flyKeys.w = true
  59. elseif key == Enum.KeyCode.S then flyKeys.s = true
  60. elseif key == Enum.KeyCode.A then flyKeys.a = true
  61. elseif key == Enum.KeyCode.D then flyKeys.d = true
  62. elseif key == Enum.KeyCode.Space then flyKeys.space = true
  63. elseif key == Enum.KeyCode.LeftControl then flyKeys.ctrl = true
  64. end
  65. end
  66. end)
  67.  
  68. local inputEnded = UIS.InputEnded:Connect(function(input)
  69. if input.UserInputType == Enum.UserInputType.Keyboard then
  70. local key = input.KeyCode
  71. if key == Enum.KeyCode.W then flyKeys.w = false
  72. elseif key == Enum.KeyCode.S then flyKeys.s = false
  73. elseif key == Enum.KeyCode.A then flyKeys.a = false
  74. elseif key == Enum.KeyCode.D then flyKeys.d = false
  75. elseif key == Enum.KeyCode.Space then flyKeys.space = false
  76. elseif key == Enum.KeyCode.LeftControl then flyKeys.ctrl = false
  77. end
  78. end
  79. end)
  80.  
  81. local renderStepped = game:GetService("RunService").RenderStepped:Connect(function()
  82. if not flyEnabled then return end
  83. local cam = workspace.CurrentCamera
  84. local move = Vector3.new(0, 0, 0)
  85. if flyKeys.w then move = move + cam.CFrame.LookVector end
  86. if flyKeys.s then move = move - cam.CFrame.LookVector end
  87. if flyKeys.a then move = move - cam.CFrame.RightVector end
  88. if flyKeys.d then move = move + cam.CFrame.RightVector end
  89. if flyKeys.space then move = move + Vector3.new(0, 1, 0) end
  90. if flyKeys.ctrl then move = move - Vector3.new(0, 1, 0) end
  91. if move.Magnitude > 0 then
  92. move = move.Unit
  93. flyBV.Velocity = move * flySpeed
  94. else
  95. flyBV.Velocity = Vector3.new(0, 0, 0)
  96. end
  97. flyBG.CFrame = cam.CFrame
  98. end)
  99.  
  100. table.insert(flyInputConnections, inputBegan)
  101. table.insert(flyInputConnections, inputEnded)
  102. table.insert(flyInputConnections, renderStepped)
  103. end
  104.  
  105. local function disableFly()
  106. if not flyEnabled then return end
  107. flyEnabled = false
  108. local player = game:GetService("Players").LocalPlayer
  109. local character = player.Character or player.CharacterAdded:Wait()
  110. local humanoid = character:WaitForChild("Humanoid")
  111. humanoid:ChangeState(Enum.HumanoidStateType.GettingUp)
  112.  
  113. if flyBV then flyBV:Destroy() flyBV = nil end
  114. if flyBG then flyBG:Destroy() flyBG = nil end
  115.  
  116. for _, conn in ipairs(flyInputConnections) do
  117. conn:Disconnect()
  118. end
  119. flyInputConnections = {}
  120. end
  121.  
  122. local Toggle = Tab:CreateToggle({
  123. Name = "Auto Swing Melee",
  124. CurrentValue = false,
  125. Flag = "AutoSwingToggle",
  126. Callback = function(Value)
  127. autoSwingEnabled = Value
  128. if autoSwingEnabled then
  129. spawn(function()
  130. while autoSwingEnabled do
  131. local args = {
  132. game:GetService("Players").LocalPlayer.Character:WaitForChild("Vampire Knife"),
  133. os.clock() * 1000, -- Using current time as approximation; adjust if needed
  134. Vector3.new(0.38748157024383545, -0.469262033700943, 0.7935056090354919)
  135. }
  136. game:GetService("ReplicatedStorage"):WaitForChild("Shared"):WaitForChild("Universe"):WaitForChild("Network"):WaitForChild("RemoteEvent"):WaitForChild("SwingMelee"):FireServer(unpack(args))
  137. wait(swingSpeed)
  138. end
  139. end)
  140. end
  141. end,
  142. })
  143.  
  144. local Slider = Tab:CreateSlider({
  145. Name = "Swing Speed (seconds)",
  146. Range = {0.01, 1.0},
  147. Increment = 0.01,
  148. Suffix = "s",
  149. CurrentValue = 0.01,
  150. Flag = "SwingSpeedSlider",
  151. Callback = function(Value)
  152. swingSpeed = Value
  153. end,
  154. })
  155.  
  156. local ShovelToggle = Tab:CreateToggle({
  157. Name = "Auto Shovel",
  158. CurrentValue = false,
  159. Flag = "AutoShovelToggle",
  160. Callback = function(Value)
  161. autoShovelEnabled = Value
  162. if autoShovelEnabled then
  163. spawn(function()
  164. while autoShovelEnabled do
  165. local args = {
  166. game:GetService("Players").LocalPlayer.Character:WaitForChild("Shovel"),
  167. 1768150910.657773,
  168. Vector3.new(-0.8638443350791931, -0.3981878459453583, -0.3085765242576599)
  169. }
  170. game:GetService("ReplicatedStorage"):WaitForChild("Shared"):WaitForChild("Universe"):WaitForChild("Network"):WaitForChild("RemoteEvent"):WaitForChild("SwingMelee"):FireServer(unpack(args))
  171. task.wait(0.01)
  172. end
  173. end)
  174. spawn(function()
  175. while autoShovelEnabled do
  176. local args = {
  177. game:GetService("Players").LocalPlayer.Character:WaitForChild("Shovel"),
  178. 1768150909.257726
  179. }
  180. game:GetService("ReplicatedStorage"):WaitForChild("Shared"):WaitForChild("Universe"):WaitForChild("Network"):WaitForChild("RemoteEvent"):WaitForChild("ChargeMelee"):FireServer(unpack(args))
  181. task.wait(0.01)
  182. end
  183. end)
  184. end
  185. end,
  186. })
  187.  
  188. local ExcaliburToggle = Tab:CreateToggle({
  189. Name = "Auto Excalibur",
  190. CurrentValue = false,
  191. Flag = "AutoExcaliburToggle",
  192. Callback = function(Value)
  193. autoExcaliburEnabled = Value
  194. if autoExcaliburEnabled then
  195. spawn(function()
  196. while autoExcaliburEnabled do
  197. local args = {
  198. game:GetService("Players").LocalPlayer.Character:WaitForChild("Excalibur"),
  199. 1768326712.974426
  200. }
  201. game:GetService("ReplicatedStorage"):WaitForChild("Shared"):WaitForChild("Universe"):WaitForChild("Network"):WaitForChild("RemoteEvent"):WaitForChild("ChargeMelee"):FireServer(unpack(args))
  202. task.wait(0.01)
  203. end
  204. end)
  205. spawn(function()
  206. while autoExcaliburEnabled do
  207. local args = {
  208. game:GetService("Players").LocalPlayer.Character:WaitForChild("Excalibur"),
  209. 1768326713.962643,
  210. Vector3.new(0.6278625130653381, -0.5555389523506165, 0.5451285243034363)
  211. }
  212. game:GetService("ReplicatedStorage"):WaitForChild("Shared"):WaitForChild("Universe"):WaitForChild("Network"):WaitForChild("RemoteEvent"):WaitForChild("SwingMelee"):FireServer(unpack(args))
  213. task.wait(0.01)
  214. end
  215. end)
  216. end
  217. end,
  218. })
  219.  
  220. local FlySpeedSlider = Tab:CreateSlider({
  221. Name = "Fly Speed",
  222. Range = {10, 200},
  223. Increment = 10,
  224. Suffix = "studs/s",
  225. CurrentValue = 50,
  226. Flag = "FlySpeedSlider",
  227. Callback = function(Value)
  228. flySpeed = Value
  229. end,
  230. })
  231.  
  232. local function goToSeat(trainName, notifyTitle, notifyContent)
  233. local player = game:GetService("Players").LocalPlayer
  234. local character = player.Character or player.CharacterAdded:Wait()
  235. local humanoid = character:WaitForChild("Humanoid")
  236. local root = character:WaitForChild("HumanoidRootPart")
  237. local train = workspace:FindFirstChild(trainName)
  238. if train then
  239. local seatPath = train:WaitForChild("RequiredComponents"):WaitForChild("Controls"):WaitForChild("ConductorSeat"):WaitForChild("VehicleSeat")
  240. root.CFrame = seatPath.CFrame + Vector3.new(0, 3, 0)
  241. wait(0.1)
  242. humanoid:Sit(seatPath)
  243. else
  244. Rayfield:Notify({
  245. Title = notifyTitle,
  246. Content = notifyContent,
  247. Duration = 5,
  248. Image = 4483362458
  249. })
  250. enableFly()
  251. spawn(function()
  252. while true do
  253. train = workspace:FindFirstChild(trainName)
  254. if train then
  255. local seatPath = train:WaitForChild("RequiredComponents"):WaitForChild("Controls"):WaitForChild("ConductorSeat"):WaitForChild("VehicleSeat")
  256. disableFly()
  257. root.CFrame = seatPath.CFrame + Vector3.new(0, 3, 0)
  258. wait(0.1)
  259. humanoid:Sit(seatPath)
  260. break
  261. end
  262. task.wait(1)
  263. end
  264. end)
  265. end
  266. end
  267.  
  268. local Button = Tab:CreateButton({
  269. Name = "Go to Presidential Conductor Seat",
  270. Callback = function()
  271. goToSeat("presidential", "Train Not Found", "Enabling manual fly. Will auto-sit when presidential train appears.")
  272. end,
  273. })
  274.  
  275. local DefaultButton = Tab:CreateButton({
  276. Name = "Go to Default Train Conductor Seat",
  277. Callback = function()
  278. goToSeat("default", "Train Not Found", "Enabling manual fly. Will auto-sit when default train appears.")
  279. end,
  280. })
  281.  
  282. local GhostButton = Tab:CreateButton({
  283. Name = "Go to Ghost Train Conductor Seat",
  284. Callback = function()
  285. goToSeat("ghost", "Train Not Found", "Enabling manual fly. Will auto-sit when ghost train appears.")
  286. end,
  287. })
  288.  
  289. local SliderHitbox = Tab:CreateSlider({
  290. Name = "Hitbox Size",
  291. Range = {1, 50},
  292. Increment = 1,
  293. Suffix = "studs",
  294. CurrentValue = 10,
  295. Flag = "HitboxSizeSlider",
  296. Callback = function(Value)
  297. hitboxSize = Value
  298. end,
  299. })
  300.  
  301. local ToggleEnlarge = Tab:CreateToggle({
  302. Name = "Enlarge Zombie Hitboxes",
  303. CurrentValue = false,
  304. Flag = "EnlargeHitboxToggle",
  305. Callback = function(Value)
  306. enlargeEnabled = Value
  307. if enlargeEnabled then
  308. for _, obj in ipairs(workspace:GetChildren()) do
  309. if isZombie(obj) then
  310. obj.HumanoidRootPart.Size = Vector3.new(hitboxSize, hitboxSize, hitboxSize / 2)
  311. obj.HumanoidRootPart.Transparency = 0.5
  312. end
  313. end
  314. local conn = workspace.ChildAdded:Connect(function(child)
  315. if enlargeEnabled and isZombie(child) then
  316. task.wait(0.1)
  317. if child:FindFirstChild("HumanoidRootPart") then
  318. child.HumanoidRootPart.Size = Vector3.new(hitboxSize, hitboxSize, hitboxSize / 2)
  319. child.HumanoidRootPart.Transparency = 0.5
  320. end
  321. end
  322. end)
  323. table.insert(connections, conn)
  324. else
  325. for _, obj in ipairs(workspace:GetChildren()) do
  326. if isZombie(obj) then
  327. obj.HumanoidRootPart.Size = Vector3.new(2, 2, 1)
  328. obj.HumanoidRootPart.Transparency = 0
  329. end
  330. end
  331. for _, conn in ipairs(connections) do
  332. conn:Disconnect()
  333. end
  334. connections = {}
  335. end
  336. end,
  337. })
  338.  
  339. -- Vampire knife charge loop (always on)
  340. while task.wait(0.01) do
  341. local args = {
  342. game:GetService("Players").LocalPlayer.Character:WaitForChild("Vampire Knife"),
  343. 1768151606.210378
  344. }
  345. game:GetService("ReplicatedStorage"):WaitForChild("Shared"):WaitForChild("Universe"):WaitForChild("Network"):WaitForChild("RemoteEvent"):WaitForChild("ChargeMelee"):FireServer(unpack(args))
  346. end
Advertisement
Add Comment
Please, Sign In to add comment