CapsAdmin

Untitled

Mar 19th, 2017
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. if part.ClipPlanes then
  2.     for key, clip in pairs(part.ClipPlanes) do
  3.         if clip:IsValid() and not clip:IsHidden() then
  4.             local pos, ang = clip.Position, clip:CalcAngles(clip.Angles)
  5.             local normal = ang:Forward()
  6.             holo_str = holo_str .. "CI++\n"
  7.             holo_str = holo_str .. "holoClipEnable(I, CI, 1)\n"
  8.             holo_str = holo_str .. "holoClip(I, " .. tovec(pos + normal) .. ", " .. tovec(normal) ..  ", 1)\n"
  9.         end
  10.     end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment