The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
KAT! script pastebin roblox
By LINK GAME on 2024-11-24 08:00 am | Syntax: LUA | Views: 19



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1.  local mt = getrawmetatable(game)
  2. setreadonly(mt,false)
  3. local nidx = mt.__newindex
  4.  
  5. mt.__newindex = newcclosure(function(a,b,c)
  6.     if b == 'Text' and tostring(a.Name) == 'AmmoCounter' then
  7.         return nidx(a,b,math.huge..'/3')
  8.     end
  9.    
  10.     return nidx(a,b,c)
  11. end)
  12.  
  13. local function Ammo()
  14.     for i, v in next, getgc(true) do
  15.         if type(v) == "table" and rawget(v, "LoadedAmmo") then
  16.             v.LoadedAmmo = math.huge
  17.         end
  18.     end
  19. end
  20.  
  21. while wait(1) do
  22.     if game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChild('Revolver') then
  23.         spawn(function()
  24.             pcall(function()
  25.                 game.Players.LocalPlayer.Character.Revolver.ClientEvent:FireServer("SetVisible", {[1] = false})
  26.                
  27.                 wait(0.25)
  28.                
  29.                 game.Players.LocalPlayer.Character.Revolver.ClientEvent:FireServer("SetVisible", {[1] = true})
  30.                 game.Players.LocalPlayer.Character.Revolver.ClientEvent:FireServer("ReloadUpdate", {[1] = "Start"})
  31.                
  32.                 wait(0.25)
  33.                
  34.                 game.Players.LocalPlayer.Character.Revolver.ClientEvent:FireServer("ReloadUpdate", {[1] = "AmmoAdded"})
  35.                
  36.                 Ammo()
  37.             end)
  38.         end)
  39.     end
  40. end



  • Recent Roblox Scripts