9551

Untitled

Jun 9th, 2021 (edited)
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. ---------gun by elektrobom1-----------
  2. local per = peripheral.wrap("back")
  3. local arg = {...}
  4. if arg[1] == nil then
  5.     arg[1] = "1"
  6. end
  7. while true do
  8.     local meta = per.getMetaOwner()
  9.     if meta.isSneaking then
  10.         per.fire(meta.yaw, meta.pitch, tonumber(arg[1]))
  11.         repeat
  12.             local localm = per.getMetaOwner()
  13.         until localm.isSneaking == false
  14.     end
  15. end
  16.  
Add Comment
Please, Sign In to add comment