Advertisement
Guest User

Naval Warfare script by nuzak232

a guest
Mar 12th, 2022
1,389
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.92 KB | None | 0 0
  1. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  2.  
  3. local Window = Library.CreateLib("Naval Warfare Script by nuzak232", "Midnight")
  4.  
  5. local Tab = Window:NewTab("Player")
  6. local Section = Tab:NewSection("Player scripts")
  7.  
  8. Section:NewButton("Admin commands", "Infinite Yield FE v5.5", function()
  9. loadstring(game:HttpGet(('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'),true))() --nice!--
  10. end)
  11.  
  12. Section:NewSlider("Walkspeed", "Do you want to run fast?", 500, 16, function(s) -- 500 (MaxValue) | 0 (MinValue)
  13. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = s
  14. end)
  15.  
  16. Section:NewSlider("Jump power", "Do you want to jump high?", 500, 1, function(s) -- 500 (MaxValue) | 0 (MinValue)
  17. game.Players.LocalPlayer.Character.Humanoid.JumpPower = s
  18. end)
  19.  
  20. Section:NewTextBox("Teleport to player", "Teleports you to player", function(txt)
  21. local p1 = game.Players.LocalPlayer.Character.HumanoidRootPart
  22. local p2 = (txt)
  23. local pos = p1.CFrame
  24.  
  25. p1.CFrame = game.Players[p2].Character.HumanoidRootPart.CFrame
  26.  
  27. wait(5)
  28.  
  29. p1.CFrame = pos
  30. end)
  31.  
  32. local Section = Tab:NewSection("Visual")
  33.  
  34. Section:NewButton("Remove water", "Removes water (other players can see it)", function()
  35. game.Workspace.Setting.VisualScene:Destroy()
  36. end)
  37.  
  38.  
  39. local Tab = Window:NewTab("Teleports")
  40.  
  41. local Section = Tab:NewSection("Your team locations")
  42.  
  43. Section:NewButton("Carrier", "Teleport to Carrier", function()
  44. local args = {
  45. [1] = "Teleport",
  46. [2] = {
  47. [1] = "Carrier",
  48. [2] = "",
  49. [3] = 0
  50. }
  51. }
  52.  
  53. game:GetService("ReplicatedStorage").Event:FireServer(unpack(args))
  54.  
  55. end)
  56.  
  57. Section:NewButton("Battleship", "Teleport to Battleship", function()
  58. -- Script generated by SimpleSpy - credits to exx#9394
  59.  
  60. local args = {
  61. [1] = "Teleport",
  62. [2] = {
  63. [1] = "Battleship",
  64. [2] = "",
  65. [3] = 0
  66. }
  67. }
  68.  
  69. game:GetService("ReplicatedStorage").Event:FireServer(unpack(args))
  70. end)
  71.  
  72. Section:NewButton("Harbour", "Teleport to Harbour", function()
  73. local args = {
  74. [1] = "Teleport",
  75. [2] = {
  76. [1] = "Harbour",
  77. [2] = ""
  78. }
  79. }
  80.  
  81. game:GetService("ReplicatedStorage").Event:FireServer(unpack(args))
  82. end)
  83.  
  84. local Tab = Window:NewTab("Mods")
  85. local Section = Tab:NewSection("Gun mods")
  86.  
  87. Section:NewButton("Infinite ammo", "Infinite ammo script", function()
  88. function AvoidCrasher(Fenv, F)
  89. for i, v in pairs(Fenv) do
  90. if i == "script" and typeof(v) == "Instance" and v.ClassName == F.ClassName and F == v then
  91. return true
  92. end
  93. end
  94. return false
  95. end
  96. function LoopThroughTable(Tab, F, LookThrough)
  97. for i, v in pairs(LookThrough) do
  98. if typeof(v) == "function" and islclosure(v) and getfenv(v) and AvoidCrasher(getfenv(v), F) then
  99. table.insert(Tab, v)
  100. end
  101. end
  102. end
  103. function GetFunctionsFromScript(F)
  104. local functionstab = {}
  105. LoopThroughTable(functionstab, F, getgc())
  106. LoopThroughTable(functionstab, F, debug.getregistry())
  107. return functionstab
  108. end
  109. function ChangeAmmoGun(Gun)
  110. if not Gun:FindFirstChild("TriggerScript") then return end
  111. local T = GetFunctionsFromScript(Gun.TriggerScript)
  112. for i, v in pairs(GetFunctionsFromScript(Gun.TriggerScript)) do
  113. if table.find(debug.getconstants(v), "Reloading...") then
  114. if typeof(debug.getupvalue(v, 3)) ~= "number" then
  115. debug.setupvalue(v, 4, 99999999)
  116. else
  117. hookfunction(v, function() end)
  118. end
  119. elseif table.find(debug.getconstants(T[i]), "Ray") then
  120. debug.setconstant(T[i], 9, 999999999)
  121. end
  122. end
  123. end
  124. for i, v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  125. ChangeAmmoGun(v)
  126. end
  127. game.Players.LocalPlayer.CharacterAdded:connect(function()
  128. repeat
  129. wait()
  130. until game.Players.LocalPlayer:FindFirstChild("Backpack") and #game.Players.LocalPlayer.Backpack:GetChildren() > 0
  131. for i, v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  132. ChangeAmmoGun(v)
  133. end
  134. end)
  135.  
  136. end)
  137.  
  138. local Tab = Window:NewTab("Settings")
  139. local Section = Tab:NewSection("GUI")
  140.  
  141. Section:NewKeybind("Toggle", "Button to toggle GUI", Enum.KeyCode.Insert, function()
  142. Library:ToggleUI()
  143. end)
  144.  
  145.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement