Advertisement
Guest User

Frontline Script KILL ALL

a guest
Feb 26th, 2023
1,203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. local utils = getrenv()._G.utils;
  2. local globals = getrenv()._G.globals;
  3. local slapAHoe = getrenv()._G.enums.c_net_msg.MELEE_HIT_SOL;
  4. local cliState = globals.cli_state;
  5. local combatNetShit = globals.combat_net_msg_state;
  6. local fpvEquip = globals.fpv_sol_equipment;
  7. local hitboxHash = globals.soldier_hitbox_hash;
  8. local triggerEvent = utils.gbus.trig_event;
  9. local netShit = utils.net_msg_util.c_prep_net_msg;
  10. function hit(p1)
  11. local hash = hitboxHash[p1];
  12. local equipment = fpvEquip.curr_equipment;
  13. local hitboxPos = equipment.model.hitbox.Position
  14.  
  15. if (cliState.id == cliState.fpv_sol_id) then
  16. netShit(combatNetShit, slapAHoe, hash);
  17. end
  18. triggerEvent(utils.gbus.EVENT_ENUM.FPV_SOL_MELEE_SOL_HIT, equipment, p1, hitboxPos);
  19. end;
  20.  
  21. for i,v in next,workspace:GetChildren() do
  22. if v:IsA("Model") and v.Name=="soldier_model" and v:FindFirstChild("fpv_humanoid") then
  23. player = v
  24. end
  25. end
  26.  
  27. while task.wait() do
  28. for i,badBitch in pairs(game.CollectionService:GetTagged("ENEMY_SOLDIER")) do
  29. player.HumanoidRootPart.CFrame = badBitch.CFrame
  30. hit(badBitch)
  31. task.wait()
  32. end
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement