Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. hook.Add("PlayerNoClip", "InvisibleNoClip", function(player)
  2.     if (player.IsNoDrawn == nil) then
  3.         player.IsNoDrawn = player:IsEffectActive(EF_NODRAW);
  4.     end;
  5.      
  6.     if (player:GetMoveType() == MOVETYPE_NOCLIP) then
  7.         player:AddEffects(EF_NODRAW);
  8.     elseif (!player.IsNoDrawn) then
  9.         player:RemoveEffects(player.IsNoDrawn);
  10.     else
  11.         player.IsNoDrawn = nil;
  12.     end;
  13. end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement