Yhehewgq

Ninja Legends Script

Nov 24th, 2025 (edited)
944
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 15.47 KB | None | 0 0
  1. -- JayRBLX Script for Ninja Legends
  2. -- Load Rayfield UI Library
  3. local Rayfield = loadstring(game:HttpGet('https://raw.githubusercontent.com/UI-Interface/CustomFIeld/main/RayField.lua'))()
  4.  
  5. -- Create Window
  6. local Window = Rayfield:CreateWindow({
  7.    Name = "JayRBLX Script - Ninja Legends",
  8.    LoadingTitle = "Loading JayRBLX Interface",
  9.    LoadingSubtitle = "by JayRBLX",
  10.    ConfigurationSaving = {
  11.       Enabled = false,
  12.       FolderName = nil,
  13.       FileName = "JayRBLX"
  14.    },
  15.    Discord = {
  16.       Enabled = false,
  17.       Invite = "noinv",
  18.       RememberJoins = true
  19.    },
  20.    KeySystem = true, -- Set this to true to use our key system
  21.    KeySettings = {
  22.       Title = "JayRBLX Key System",
  23.       Subtitle = "Key System",
  24.       Note = "Join our discord to get the key! https://discord.gg/KPUPp4m9pJ",
  25.       FileName = "JayRBLXKey",
  26.       SaveKey = false,
  27.       GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
  28.       Key = "Jcheeks130"
  29.    }
  30. })
  31.  
  32. -- Services
  33. local Players = game:GetService("Players")
  34. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  35. local UserInputService = game:GetService("UserInputService")
  36. local RunService = game:GetService("RunService")
  37. local TweenService = game:GetService("TweenService")
  38. local player = Players.LocalPlayer
  39. local character = player.Character or player.CharacterAdded:Wait()
  40. local humanoid = character:WaitForChild("Humanoid")
  41. local rootpart = character:WaitForChild("HumanoidRootPart")
  42.  
  43. -- Remotes (based on common Ninja Legends remotes)
  44. local remotes = ReplicatedStorage:WaitForChild("Remotes")
  45. local combatRemote = remotes:WaitForChild("Combat"):WaitForChild("RemoteEvent")
  46. local coinCollectRemote = remotes:WaitForChild("CoinCollectEvent")
  47. local chiCollectRemote = remotes:WaitForChild("ChiCollectEvent")
  48. local sellRemote = remotes:WaitForChild("SellEvent")
  49. local rebirthRemote = remotes:WaitForChild("RebirthEvent")
  50. local unlockIslandRemote = remotes:WaitForChild("UnlockIslandEvent") -- Assumed
  51. local buyPetRemote = remotes:WaitForChild("BuyPetEvent") -- Assumed
  52. local evolvePetRemote = remotes:WaitForChild("EvolvePetEvent") -- Assumed
  53. local equipPetRemote = remotes:WaitForChild("EquipPetEvent") -- Assumed
  54. local levelPetRemote = remotes:WaitForChild("LevelPetEvent") -- Assumed
  55. local addCoinsRemote = remotes:WaitForChild("AddCoinsEvent") -- Assumed for inf coins
  56. local addGemsRemote = remotes:WaitForChild("AddGemsEvent") -- Assumed
  57. local resetCoinsRemote = remotes:WaitForChild("ResetCoinsEvent") -- Assumed
  58. local resetGemsRemote = remotes:WaitForChild("ResetGemsEvent") -- Assumed
  59. local unlockMasteryRemote = remotes:WaitForChild("UnlockMasteryEvent") -- Assumed
  60. local buySwordRemote = remotes:WaitForChild("BuySwordEvent") -- Assumed
  61. local buyBeltRemote = remotes:WaitForChild("BuyBeltEvent") -- Assumed
  62.  
  63. -- Islands list
  64. local islands = {
  65.     "Enchanted Island",
  66.     "Astral Island",
  67.     "Mystical Island",
  68.     "Space Island",
  69.     "Tundra Island",
  70.     "Eternal Island",
  71.     "Sandstorm Island",
  72.     "Thunderstorm Island",
  73.     "Ancient Inferno Island",
  74.     "Midnight Shadow Island",
  75.     "Mythical Souls Island",
  76.     "Winter Wonderland Island",
  77.     "Golden Master Island",
  78.     "Dragon Legend Island",
  79.     "Cybernetic Legends Island",
  80.     "Skystorm Ultraus Island",
  81.     "Chaos Legends Island",
  82.     "Soul Fusion Island",
  83.     "Dark Elements Island",
  84.     "Inner Peace Island"
  85. }
  86.  
  87. -- Pets list (partial from research)
  88. local pets = {
  89.     "Red Kitty",
  90.     "Yellow Squeak",
  91.     "Blue Birdie",
  92.     "Green Bunny",
  93.     "Dark Golem",
  94.     "Orange Birdie",
  95.     "Tan Dog",
  96.     "Red Golem",
  97.     "Yellow Butterfly",
  98.     "Purple Falcon",
  99.     "White Pegasus",
  100.     "Purple Birdie",
  101.     "Silver Dog",
  102.     "Blue Hedgehog",
  103.     "Green Vampy",
  104.     "Dark Vamp",
  105.     "Purple Angel"
  106. }
  107.  
  108. -- Variables for toggles
  109. local autoSwing = false
  110. local autoCollectCoins = false
  111. local autoCollectChi = false
  112. local autoSell = false
  113. local autoLoops = false
  114. local autoCollectChests = false
  115. local autoRebirth = false
  116. local autoEvolvePets = false
  117. local autoEquipBestPets = false
  118. local autoLevelPets = false
  119. local infiniteJump = false
  120. local highJump = false
  121. local jumpConnection
  122.  
  123. -- Function to teleport to island top
  124. local function teleportToIsland(islandName)
  125.     local island = workspace.Islands:FindFirstChild(islandName)
  126.     if island then
  127.         local spawnPart = island:FindFirstChild("Spawn") or island.PrimaryPart or island:FindFirstChildOfClass("Part")
  128.         if spawnPart then
  129.             rootpart.CFrame = spawnPart.CFrame + Vector3.new(0, 10, 0)
  130.         end
  131.     end
  132. end
  133.  
  134. -- Unlock all islands
  135. local function unlockAllIslands()
  136.     for _, islandName in ipairs(islands) do
  137.         pcall(function()
  138.             unlockIslandRemote:FireServer(islandName)
  139.         end)
  140.     end
  141. end
  142.  
  143. -- Inf coins (fire add coins many times)
  144. local function giveInfCoins()
  145.     for i = 1, 10000 do
  146.         pcall(function()
  147.             addCoinsRemote:FireServer(1000000)
  148.         end)
  149.         wait(0.01)
  150.     end
  151. end
  152.  
  153. -- Inf gems
  154. local function giveInfGems()
  155.     for i = 1, 10000 do
  156.         pcall(function()
  157.             addGemsRemote:FireServer(1000000)
  158.         end)
  159.         wait(0.01)
  160.     end
  161. end
  162.  
  163. -- Unlock all masteries (assume list)
  164. local masteries = {"Strength", "Speed", "Etc"} -- Placeholder
  165. local function unlockAllMasteries()
  166.     for _, mastery in ipairs(masteries) do
  167.         pcall(function()
  168.             unlockMasteryRemote:FireServer(mastery)
  169.         end)
  170.     end
  171. end
  172.  
  173. -- Unlock all swords and belts (placeholder)
  174. local swords = {"Katana", "Ninja Sword"} -- Placeholder
  175. local belts = {"White Belt", "Black Belt"} -- Placeholder
  176. local function unlockAllSwords()
  177.     for _, sword in ipairs(swords) do
  178.         pcall(function()
  179.             buySwordRemote:FireServer(sword)
  180.         end)
  181.     end
  182. end
  183.  
  184. local function unlockAllBelts()
  185.     for _, belt in ipairs(belts) do
  186.         pcall(function()
  187.             buyBeltRemote:FireServer(belt)
  188.         end)
  189.     end
  190. end
  191.  
  192. -- Add specific coins
  193. local function addCoins(amount)
  194.     pcall(function()
  195.         addCoinsRemote:FireServer(tonumber(amount))
  196.     end)
  197. end
  198.  
  199. -- Reset coins
  200. local function resetCoins()
  201.     pcall(function()
  202.         resetCoinsRemote:FireServer()
  203.     end)
  204. end
  205.  
  206. -- Reset gems
  207. local function resetGems()
  208.     pcall(function()
  209.         resetGemsRemote:FireServer()
  210.     end)
  211. end
  212.  
  213. -- Auto swing loop
  214. spawn(function()
  215.     while true do
  216.         if autoSwing then
  217.             pcall(function()
  218.                 combatRemote:FireServer()
  219.             end)
  220.         end
  221.         wait(0.1)
  222.     end
  223. end)
  224.  
  225. -- Auto collect coins (teleport to them)
  226. spawn(function()
  227.     while true do
  228.         if autoCollectCoins then
  229.             for _, coin in ipairs(workspace.Coins:GetChildren()) do
  230.                 if coin:IsA("Part") then
  231.                     rootpart.CFrame = coin.CFrame
  232.                     coinCollectRemote:FireServer(coin)
  233.                     wait(0.1)
  234.                 end
  235.             end
  236.         end
  237.         wait(1)
  238.     end
  239. end)
  240.  
  241. -- Auto collect chi similar
  242. spawn(function()
  243.     while true do
  244.         if autoCollectChi then
  245.             for _, chi in ipairs(workspace.Chi:GetChildren()) do
  246.                 if chi:IsA("Part") then
  247.                     rootpart.CFrame = chi.CFrame
  248.                     chiCollectRemote:FireServer(chi)
  249.                     wait(0.1)
  250.                 end
  251.             end
  252.         end
  253.         wait(1)
  254.     end
  255. end)
  256.  
  257. -- Auto sell (tp to sell area, fire sell)
  258. local sellPosition = workspace.SellArea.Position -- Assume
  259. spawn(function()
  260.     while true do
  261.         if autoSell then
  262.             rootpart.CFrame = CFrame.new(sellPosition + Vector3.new(0,5,0))
  263.             sellRemote:FireServer()
  264.             wait(2)
  265.         end
  266.         wait(1)
  267.     end
  268. end)
  269.  
  270. -- Auto loops (tp to hoops)
  271. local function tpToLoops()
  272.     for _, hoop in ipairs(workspace.Hoops:GetChildren()) do
  273.         rootpart.CFrame = hoop.CFrame + Vector3.new(0,10,0)
  274.         wait(1)
  275.     end
  276. end
  277.  
  278. spawn(function()
  279.     while true do
  280.         if autoLoops then
  281.             tpToLoops()
  282.         end
  283.         wait(5)
  284.     end
  285. end)
  286.  
  287. -- Auto collect chests
  288. spawn(function()
  289.     while true do
  290.         if autoCollectChests then
  291.             for _, islandName in ipairs(islands) do
  292.                 teleportToIsland(islandName)
  293.                 wait(1)
  294.                 -- Assume collect chest remote
  295.                 local chestRemote = remotes.CollectChestEvent
  296.                 pcall(function()
  297.                     chestRemote:FireServer(islandName)
  298.                 end)
  299.             end
  300.         end
  301.         wait(10)
  302.     end
  303. end)
  304.  
  305. -- Auto rebirth
  306. spawn(function()
  307.     while true do
  308.         if autoRebirth then
  309.             rebirthRemote:FireServer()
  310.             wait(1)
  311.         end
  312.         wait(60) -- Rebirth takes time
  313.     end
  314. end)
  315.  
  316. -- Auto evolve pets
  317. spawn(function()
  318.     while true do
  319.         if autoEvolvePets then
  320.             -- Assume get pets and evolve
  321.             for _, pet in ipairs(player.Pets:GetChildren()) do
  322.                 pcall(function()
  323.                     evolvePetRemote:FireServer(pet.Name)
  324.                 end)
  325.             end
  326.         end
  327.         wait(5)
  328.     end
  329. end)
  330.  
  331. -- Auto equip best pets (placeholder, assume sort and equip top 3)
  332. spawn(function()
  333.     while true do
  334.         if autoEquipBestPets then
  335.             -- Placeholder: equip first 3
  336.             for i = 1, 3 do
  337.                 local pet = player.Pets:GetChildren()[i]
  338.                 if pet then
  339.                     equipPetRemote:FireServer(pet.Name)
  340.                 end
  341.             end
  342.         end
  343.         wait(10)
  344.     end
  345. end)
  346.  
  347. -- Auto level all pets
  348. spawn(function()
  349.     while true do
  350.         if autoLevelPets then
  351.             for _, pet in ipairs(player.Pets:GetChildren()) do
  352.                 pcall(function()
  353.                     levelPetRemote:FireServer(pet.Name)
  354.                 end)
  355.             end
  356.         end
  357.         wait(1)
  358.     end
  359. end)
  360.  
  361. -- Infinite jump
  362. UserInputService.JumpRequest:Connect(function()
  363.     if infiniteJump and humanoid then
  364.         humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  365.     end
  366. end)
  367.  
  368. -- High jump toggle
  369. local function toggleHighJump(value)
  370.     if value then
  371.         humanoid.JumpPower = 100
  372.     else
  373.         humanoid.JumpPower = 50
  374.     end
  375. end
  376.  
  377. -- Tabs
  378.  
  379. -- Home Tab
  380. local HomeTab = Window:CreateTab("Home", 4483362458) -- Icon
  381.  
  382. local HomeSection = HomeTab:CreateSection("Welcome")
  383.  
  384. HomeTab:CreateParagraph({Title = "Warning", Content = "This script is for educational purposes only. Use at your own risk. May result in bans."})
  385.  
  386. HomeTab:CreateButton({
  387.     Name = "Copy Discord Link",
  388.     Callback = function()
  389.         setclipboard("https://discord.gg/KPUPp4m9pJ")
  390.         Rayfield:Notify({
  391.             Title = "Copied!",
  392.             Content = "Discord link copied to clipboard.",
  393.             Duration = 3,
  394.             Image = 4483362458,
  395.         })
  396.     end,
  397. })
  398.  
  399. -- Main Tab
  400. local MainTab = Window:CreateTab("Main")
  401.  
  402. local MainSection = MainTab:CreateSection("Maps & Jumps")
  403.  
  404. MainTab:CreateButton({
  405.     Name = "Unlock All Maps",
  406.     Callback = function()
  407.         unlockAllIslands()
  408.         Rayfield:Notify({
  409.             Title = "Unlocked!",
  410.             Content = "All maps unlocked.",
  411.             Duration = 3,
  412.         })
  413.     end,
  414. })
  415.  
  416. local mapDropdown
  417. mapDropdown = MainTab:CreateDropdown({
  418.     Name = "Select Map to Teleport",
  419.     Options = islands,
  420.     CurrentOption = islands[1],
  421.     Callback = function(Option)
  422.         teleportToIsland(Option)
  423.     end,
  424. })
  425.  
  426. MainTab:CreateToggle({
  427.     Name = "Infinite Jump",
  428.     CurrentValue = false,
  429.     Callback = function(Value)
  430.         infiniteJump = Value
  431.     end,
  432. })
  433.  
  434. MainTab:CreateToggle({
  435.     Name = "High Jump",
  436.     CurrentValue = false,
  437.     Callback = function(Value)
  438.         toggleHighJump(Value)
  439.     end,
  440. })
  441.  
  442. -- Coins and Gems Tab
  443. local CoinsTab = Window:CreateTab("Coins and Gems")
  444.  
  445. local CoinsSection = CoinsTab:CreateSection("Coins & Gems")
  446.  
  447. CoinsTab:CreateButton({
  448.     Name = "Inf Coins (1M x10k)",
  449.     Callback = function()
  450.         giveInfCoins()
  451.     end,
  452. })
  453.  
  454. CoinsTab:CreateButton({
  455.     Name = "Inf Gems (1M x10k)",
  456.     Callback = function()
  457.         giveInfGems()
  458.     end,
  459. })
  460.  
  461. CoinsTab:CreateButton({
  462.     Name = "Unlock All Masteries",
  463.     Callback = function()
  464.         unlockAllMasteries()
  465.     end,
  466. })
  467.  
  468. CoinsTab:CreateButton({
  469.     Name = "Unlock All Swords",
  470.     Callback = function()
  471.         unlockAllSwords()
  472.     end,
  473. })
  474.  
  475. CoinsTab:CreateButton({
  476.     Name = "Unlock All Belts",
  477.     Callback = function()
  478.         unlockAllBelts()
  479.     end,
  480. })
  481.  
  482. local coinInput
  483. coinInput = CoinsTab:CreateInput({
  484.     Name = "Amount of Coins",
  485.     PlaceholderText = "Enter amount",
  486.     RemoveTextAfterFocusLost = false,
  487.     Callback = function(Text)
  488.         addCoins(Text)
  489.     end,
  490. })
  491.  
  492. CoinsTab:CreateButton({
  493.     Name = "Reset Coins",
  494.     Callback = function()
  495.         resetCoins()
  496.     end,
  497. })
  498.  
  499. CoinsTab:CreateButton({
  500.     Name = "Reset Gems",
  501.     Callback = function()
  502.         resetGems()
  503.     end,
  504. })
  505.  
  506. -- Auto Farm Tab
  507. local FarmTab = Window:CreateTab("Auto Farm")
  508.  
  509. local FarmSection = FarmTab:CreateSection("Auto Features")
  510.  
  511. FarmTab:CreateToggle({
  512.     Name = "Auto Swing Sword",
  513.     CurrentValue = false,
  514.     Callback = function(Value)
  515.         autoSwing = Value
  516.     end,
  517. })
  518.  
  519. FarmTab:CreateToggle({
  520.     Name = "Auto Collect Coins (TP)",
  521.     CurrentValue = false,
  522.     Callback = function(Value)
  523.         autoCollectCoins = Value
  524.     end,
  525. })
  526.  
  527. FarmTab:CreateToggle({
  528.     Name = "Auto Collect Chi (TP)",
  529.     CurrentValue = false,
  530.     Callback = function(Value)
  531.         autoCollectChi = Value
  532.     end,
  533. })
  534.  
  535. FarmTab:CreateToggle({
  536.     Name = "Auto Sell (TP)",
  537.     CurrentValue = false,
  538.     Callback = function(Value)
  539.         autoSell = Value
  540.     end,
  541. })
  542.  
  543. FarmTab:CreateToggle({
  544.     Name = "Auto Loops (Hoops)",
  545.     CurrentValue = false,
  546.     Callback = function(Value)
  547.         autoLoops = Value
  548.     end,
  549. })
  550.  
  551. FarmTab:CreateToggle({
  552.     Name = "Auto Collect Reward Chests (All Maps)",
  553.     CurrentValue = false,
  554.     Callback = function(Value)
  555.         autoCollectChests = Value
  556.     end,
  557. })
  558.  
  559. FarmTab:CreateToggle({
  560.     Name = "Auto Rebirth",
  561.     CurrentValue = false,
  562.     Callback = function(Value)
  563.         autoRebirth = Value
  564.     end,
  565. })
  566.  
  567. -- Pets Tab
  568. local PetsTab = Window:CreateTab("Pets")
  569.  
  570. local PetsSection = PetsTab:CreateSection("Pets")
  571.  
  572. local petDropdown
  573. petDropdown = PetsTab:CreateDropdown({
  574.     Name = "Select Pet to Buy",
  575.     Options = pets,
  576.     CurrentOption = pets[1],
  577.     Callback = function(Option)
  578.         -- Buy selected
  579.         pcall(function()
  580.             buyPetRemote:FireServer(Option)
  581.         end)
  582.     end,
  583. })
  584.  
  585. PetsTab:CreateToggle({
  586.     Name = "Auto Evolve Pets",
  587.     CurrentValue = false,
  588.     Callback = function(Value)
  589.         autoEvolvePets = Value
  590.     end,
  591. })
  592.  
  593. PetsTab:CreateToggle({
  594.     Name = "Auto Equip Best Pets",
  595.     CurrentValue = false,
  596.     Callback = function(Value)
  597.         autoEquipBestPets = Value
  598.     end,
  599. })
  600.  
  601. PetsTab:CreateToggle({
  602.     Name = "Auto Level All Pets",
  603.     CurrentValue = false,
  604.     Callback = function(Value)
  605.         autoLevelPets = Value
  606.     end,
  607. })
  608.  
  609. -- Handle character respawn
  610. player.CharacterAdded:Connect(function(newChar)
  611.     character = newChar
  612.     humanoid = character:WaitForChild("Humanoid")
  613.     rootpart = character:WaitForChild("HumanoidRootPart")
  614.     if highJump then
  615.         toggleHighJump(true)
  616.     end
  617. end)
Advertisement
Add Comment
Please, Sign In to add comment