Advertisement
Guest User

rainbow weapons

a guest
Dec 12th, 2019
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. function rainbowesp()
  2.  
  3.    local speed = 2
  4.    local r = math.floor(math.sin(globals.RealTime() * speed) * 127 + 128)
  5.    local g = math.floor(math.sin(globals.RealTime() * speed + 2) * 127 + 128)
  6.    local b = math.floor(math.sin(globals.RealTime() * speed + 4) * 127 + 128)
  7.    local a = 255
  8.    
  9.    for k,v in pairs({  "clr_chams_weapon_primary",
  10.                        "clr_chams_weapon_secondary"}) do
  11.                        
  12.        gui.SetValue(v, r,g,b,a)
  13.        
  14.    end
  15. end
  16.  
  17. callbacks.Register( "Draw", "uwu", rainbowesp);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement