Yingyang005

Ninja time

Feb 23rd, 2025
907
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.46 KB | None | 1 0
  1. local Fluent = loadstring(game:HttpGet("https://raw.githubusercontent.com/discoart/FluentPlus/refs/heads/main/release.lua"))()
  2. local SaveManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/SaveManager.lua"))()
  3. local InterfaceManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/InterfaceManager.lua"))()
  4.  
  5. local Window = Fluent:CreateWindow({
  6. Title = "Ninja Time Script", SubTitle = "By MiweR :D",
  7. TabWidth = 160, Size = UDim2.fromOffset(580, 380),
  8. Acrylic = true, Theme = "AMOLED"
  9. })
  10.  
  11. -- Trocar os ícones: (https://lucide.dev/icons/)
  12. local Tabs = {
  13. Player = Window:AddTab({ Title = "Local Player", Icon = "ruler" }),
  14. AutoFarm = Window:AddTab({ Title = "Auto Farm", Icon = "gem" }),
  15. Teleport = Window:AddTab({ Title = "Teleport", Icon = "plane" }),
  16. ServerHop = Window:AddTab({ Title = "Server Hop", Icon = "book" }),
  17. Settings = Window:AddTab({ Title = "Settings", Icon = "settings" })
  18. }
  19.  
  20. -- Player References
  21. local LocalPlayer = game:GetService("Players").LocalPlayer
  22. local char = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
  23. local hrp = char:WaitForChild("HumanoidRootPart")
  24. local Humanoid = char:WaitForChild("Humanoid")
  25.  
  26. -- Services
  27. local uis = game:GetService("UserInputService")
  28.  
  29. local Slider = Tabs.AutoFarm:AddSlider("Slider",
  30. {
  31. Title = "Distance",
  32. Description = "Distance above the Enemies",
  33. Default = 5,
  34. Min = 5,
  35. Max = 10,
  36. Rounding = 1,
  37. Callback = function(Value)
  38.  
  39. end
  40. })
  41.  
  42. local Slider = Tabs.Player:AddSlider("Slider",
  43. {
  44. Title = "WalkSpeed",
  45. Description = "WalkSpeed of the player",
  46. Default = 5,
  47. Min = 16, -- Corrigido: Min geralmente é menor que Max, mas 16 parece ser o padrão do Roblox
  48. Max = 500,
  49. Rounding = 1,
  50. Callback = function(Value)
  51. -- Quando o slider é ajustado, atualiza a WalkSpeed apenas se permitido
  52. if WalkSpeedPermitido then
  53. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = Value
  54. end
  55. end
  56. })
  57.  
  58. local WalkSpeedPermitido = false -- Declarado fora para ser acessível por ambos
  59.  
  60. local Keybind = Tabs.Player:AddKeybind("Keybind", {
  61. Title = "Activate walkspeed",
  62. Mode = "Toggle", -- Mantido como Toggle para ligar/desligar
  63. Default = "N", -- Tecla padrão "N"
  64. Callback = function(Value)
  65. -- Value é true quando ativado, false quando desativado
  66. WalkSpeedPermitido = Value
  67. if WalkSpeedPermitido then
  68. -- Aplica a velocidade do slider quando ativado
  69. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = Slider.Value
  70. else
  71. -- Reseta para o padrão do Roblox (16) quando desativado
  72. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  73. end
  74. end,
  75. ChangedCallback = function(New)
  76. -- Opcional: Não é necessário inverter WalkSpeedPermitido aqui, mas mantive como exemplo
  77. print("Keybind alterado para: ", New.Name)
  78. end
  79. })
  80.  
  81. local Toggle = Tabs.Player:AddToggle("AutoExecute", {Title = "Auto Load Script", Default = false})
  82.  
  83. local function loadScript()
  84. pcall(function()
  85. repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character
  86.  
  87. local queue_on_teleport = queue_on_teleport or syn.queue_on_teleport
  88.  
  89. queue_on_teleport([[
  90. repeat wait() until game.Players.LocalPlayer:FindFirstChild("ReplicatedData")
  91. loadstring(game:HttpGet('https://raw.githubusercontent.com/Miwermachado/NinjaTime/refs/heads/main/Main', true))()
  92. ]])
  93. end)
  94. end
  95.  
  96. Toggle:OnChanged(function()
  97. if Toggle.Value then
  98. loadScript()
  99. else
  100. end
  101. end)
  102.  
  103. Tabs.AutoFarm:AddButton({
  104. Title = "Weak Ninja Farms",
  105. Description = "Level 10 mission",
  106. Callback = function(isChecked)
  107.  
  108. end
  109. })
  110.  
  111. local Dropdown = Tabs.Teleport:AddDropdown("Dropdown", {
  112. Title = "Teleport",
  113. Description = "Teleport to a Region in the map",
  114. Values = {"Ishikage", "Logs", "Receptionist", "Bones Hideout"},
  115. Multi = false,
  116. Default = nil,
  117. })
  118.  
  119. Dropdown:OnChanged(function(Value)
  120. if Value == "Ishikage" then
  121. hrp.CFrame = CFrame.new(1361.6407470703125, 132.0932159423828, -121.28382110595703)
  122. elseif Value == "Logs" then
  123. hrp.CFrame = CFrame.new(1080.6617431640625, 8.393749237060547, -1228.8092041015625)
  124. elseif Value == "Receptionist" then
  125. hrp.CFrame = CFrame.new(211.26376342773438, 44.312278747558594, 610.1218872070312)
  126. elseif Value == "Bones Hideout" then
  127. hrp.CFrame = CFrame.new(2329.343994140625, 13.299999237060547, 4262.64892578125)
  128. end
  129. end)
  130.  
  131. -- Adicionando os botões na aba Teleport (mantendo o código original)
  132. Tabs.ServerHop:AddButton({
  133. Title = "Rejoin Server",
  134. Description = "Rejoin the current game server",
  135. Callback = function()
  136. Fluent:Notify({
  137. Title = "Success!",
  138. Content = "Rejoining the server",
  139. Duration = 3 -- Set to nil to make the notification not disappear
  140. })
  141.  
  142. task.wait(1.5)
  143.  
  144. local TeleportService = game:GetService("TeleportService")
  145. local Players = game:GetService("Players")
  146. local player = Players.LocalPlayer
  147.  
  148. local placeId = game.PlaceId
  149. local jobId = game.JobId
  150.  
  151. TeleportService:TeleportToPlaceInstance(placeId, jobId, player)
  152. end
  153. })
  154.  
  155. Tabs.ServerHop:AddButton({
  156. Title = "Server low hop",
  157. Description = "Teleport to an EMPTY server",
  158. Callback = function()
  159. Fluent:Notify({
  160. Title = "Success!",
  161. Content = "Teleporting to a server with low players",
  162. Duration = 3 -- Set to nil to make the notification not disappear
  163. })
  164.  
  165. task.wait(1.5)
  166.  
  167. local Http = game:GetService("HttpService")
  168. local TPS = game:GetService("TeleportService")
  169. local Api = "https://games.roblox.com/v1/games/"
  170.  
  171. local _place = game.PlaceId
  172. local _servers = Api.._place.."/servers/Public?sortOrder=Asc&limit=100"
  173. function ListServers(cursor)
  174. local Raw = game:HttpGet(_servers .. ((cursor and "&cursor="..cursor) or ""))
  175. return Http:JSONDecode(Raw)
  176. end
  177.  
  178. local Server, Next; repeat
  179. local Servers = ListServers(Next)
  180. Server = Servers.data[1]
  181. Next = Servers.nextPageCursor
  182. until Server
  183.  
  184. TPS:TeleportToPlaceInstance(_place, Server.id, game:GetService('Players').LocalPlayer)
  185. end
  186. })
  187.  
  188. Tabs.ServerHop:AddButton({
  189. Title = "Random Server Hop",
  190. Description = "Teleport to a random different server",
  191. Callback = function()
  192. Fluent:Notify({
  193. Title = "Success!",
  194. Content = "Teleporting to a random different server...",
  195. Duration = 3 -- Notificação desaparece após 3 segundos
  196. })
  197.  
  198. task.wait(1.5) -- Pequena pausa antes de teleportar
  199.  
  200. local TeleportService = game:GetService("TeleportService")
  201. local Players = game:GetService("Players")
  202. local HttpService = game:GetService("HttpService")
  203. local player = Players.LocalPlayer
  204.  
  205. local placeId = game.PlaceId
  206. local currentJobId = game.JobId
  207.  
  208. -- URL da API do Roblox para listar servidores públicos
  209. local Api = "https://games.roblox.com/v1/games/"
  210. local _servers = Api .. placeId .. "/servers/Public?sortOrder=Asc&limit=100"
  211.  
  212. -- Função para listar servidores com cursor (paginção)
  213. local function ListServers(cursor)
  214. local Raw = game:HttpGet(_servers .. ((cursor and "&cursor=" .. cursor) or ""))
  215. return HttpService:JSONDecode(Raw)
  216. end
  217.  
  218. local allServers = {}
  219. local Next = nil
  220.  
  221. -- Coletar todos os servidores disponíveis
  222. repeat
  223. local Servers = ListServers(Next)
  224. for _, server in pairs(Servers.data) do
  225. -- Adicionar apenas servidores com jogadores (evitar servidores vazios, se desejar)
  226. if server.id ~= currentJobId and server.playing ~= 0 then -- Excluir o servidor atual e servidores vazios
  227. table.insert(allServers, server)
  228. end
  229. end
  230. Next = Servers.nextPageCursor
  231. until not Next or #allServers >= 10 -- Limitar para evitar sobrecarga (ajuste conforme necessário)
  232.  
  233. if #allServers > 0 then
  234. -- Escolher um servidor aleatório da lista
  235. local randomServer = allServers[math.random(1, #allServers)]
  236. TeleportService:TeleportToPlaceInstance(placeId, randomServer.id, player)
  237. else
  238. Fluent:Notify({
  239. Title = "Error!",
  240. Content = "No available servers found. Try again later.",
  241. Duration = 5
  242. })
  243. warn("Nenhum servidor disponível encontrado para teleportar.")
  244. end
  245. end
  246. })
  247.  
  248. Window:SelectTab(1)
  249.  
  250. -- Settings Tab [[ -- SaveManager (Allows you to have a configuration system) -- InterfaceManager (Allows you to have a interface management system)
  251. SaveManager:SetLibrary(Fluent)
  252. SaveManager:IgnoreThemeSettings()
  253. SaveManager:SetIgnoreIndexes({})
  254. SaveManager:SetFolder("Fluent UI Settings")
  255. SaveManager:LoadAutoloadConfig()
  256.  
  257. InterfaceManager:SetLibrary(Fluent)
  258. InterfaceManager:SetFolder("Fluent UI Settings")
  259.  
  260. InterfaceManager:BuildInterfaceSection(Tabs.Settings)
  261. SaveManager:BuildConfigSection(Tabs.Settings)
Advertisement
Add Comment
Please, Sign In to add comment