Mr_3242

NDS anti fall damage (this script is not game id locked)

Jun 2nd, 2026
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.66 KB | Gaming | 0 0
  1. --// Anti Fall Damage
  2.  
  3. local Players = game:GetService("Players")
  4. local RunService = game:GetService("RunService")
  5. local StarterGui = game:GetService("StarterGui")
  6.  
  7. local player = Players.LocalPlayer
  8.  
  9. local TARGET_PLACE_ID = 189707 -- Natural Disaster Survival
  10. local antiFallEnabled = true
  11. local connection
  12.  
  13. local function notify(title, text, duration)
  14.     pcall(function()
  15.         StarterGui:SetCore("SendNotification", {
  16.             Title = title,
  17.             Text = text,
  18.             Duration = duration or 5
  19.         })
  20.     end)
  21. end
  22.  
  23. -- Place check warning
  24. if game.PlaceId ~= TARGET_PLACE_ID then
  25.     notify(
  26.         "Warning",
  27.         "Not Natural Disaster Survival. Script will still run anyway.",
  28.         6
  29.     )
  30. else
  31.     notify(
  32.         "AntiFall",
  33.         "Natural Disaster Survival detected. Script active.",
  34.         4
  35.     )
  36. end
  37.  
  38. local function attach(character)
  39.     local root = character:WaitForChild("HumanoidRootPart")
  40.  
  41.     if connection then
  42.         connection:Disconnect()
  43.     end
  44.  
  45.     local hb = RunService.Heartbeat
  46.     local rsd = RunService.RenderStepped
  47.     local zero = Vector3.zero
  48.  
  49.     connection = hb:Connect(function()
  50.         if not antiFallEnabled or not root or not root.Parent then
  51.             if connection then connection:Disconnect() end
  52.             return
  53.         end
  54.  
  55.         local vel = root.AssemblyLinearVelocity
  56.         root.AssemblyLinearVelocity = zero
  57.         rsd:Wait()
  58.         root.AssemblyLinearVelocity = vel
  59.     end)
  60. end
  61.  
  62. if player.Character then
  63.     attach(player.Character)
  64. end
  65.  
  66. player.CharacterAdded:Connect(function(char)
  67.     if antiFallEnabled then
  68.         attach(char)
  69.     end
  70. end)
Tags: delta
Advertisement
Add Comment
Please, Sign In to add comment