Advertisement
IHATEMICROWAVEOVEN

sam sample sam

Apr 20th, 2023 (edited)
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. -- SETTINGS
  2. local reload = 9
  3. local name = "Fanaf freddy"
  4. local remainings = {} -- like the youtuber
  5.  
  6.  
  7. -- SCRIPT
  8. -- nothing special happens yet
  9. local debounce = true
  10. function Use(plr, device, CS, CWS)
  11. if debounce then
  12. debounce = false
  13. local target = nil
  14. if CS("GetStat", "NewAim") == 1 then
  15. target = plr:GetMouse().hit.lookVector * 15
  16. else
  17. target = plr.Character.Torso.CFrame.lookVector * 15
  18. end
  19.  
  20. -- now something special happens
  21. local fetched = plr.Character.CountUnboost.Value
  22. if not remainings[fetched] then
  23. remainings[fetched] = 6
  24. end
  25. if remainings[fetched] > 0 then
  26. CWS("RunWeapon", name, target, remainings[fetched])
  27. -- CWS("RunWeapon", name, target)
  28. -- in case it doesnt need the extra param
  29. remainings[fetched] -= 1
  30. end
  31.  
  32. -- back to regular stuff now
  33. task.wait(0.5)
  34. debounce = true
  35. end
  36. end
  37.  
  38. return {Use, reload}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement