Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. function rot()
  2. for _, pl in pairs(player.GetAll()) do
  3. if pl:GetActiveWeapon().VElements then
  4. if pl:GetActiveWeapon().VElements["AroundScope"] then
  5. pl:GetActiveWeapon().VElements["AroundScope"].angle.y = pl:GetActiveWeapon().VElements["AroundScope"].angle.y + 0.1
  6. end
  7. end
  8. end
  9. end
  10.  
  11. function rot2()
  12. for _, pl in pairs(player.GetAll()) do
  13. if pl:GetActiveWeapon().VElements then
  14. if pl:GetActiveWeapon().VElements["AroundScope+"] then
  15. pl:GetActiveWeapon().VElements["AroundScope+"].angle.y = pl:GetActiveWeapon().VElements["AroundScope+"].angle.y + 0.1
  16. end
  17. end
  18. end
  19. end
  20.  
  21. function rot3()
  22. for _, pl in pairs(player.GetAll()) do
  23. if pl:GetActiveWeapon().VElements then
  24. if pl:GetActiveWeapon().VElements["AroundScope++"] then
  25. pl:GetActiveWeapon().VElements["AroundScope++"].angle.y = pl:GetActiveWeapon().VElements["AroundScope++"].angle.y + 0.1
  26. end
  27. end
  28. end
  29. end
  30.  
  31. hook.Add("Think", "RotateCog1", rot)
  32. hook.Add("Think", "RotateCog2", rot2)
  33. hook.Add("Think", "RotateCog3", rot3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement