Advertisement
Guest User

Untitled

a guest
Mar 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. local exDee = 23
  2. kar = "ur mum"
  3.  
  4. local mooney = function(John)
  5.   kar = "jk"
  6.   return John, exDee
  7. end
  8.  
  9. print(kar) -- this prints 'ur mum' as usual
  10.  
  11. print(mooney("lol"))
  12. lol = mooney("lmao")
  13. print(lol)
  14.  
  15. local function mooney2(John)
  16.   kar = "lamem"
  17.   return John, exDee
  18. end
  19.  
  20. print(kar) -- but this prints 'jk'..
  21. -- im curious why..
  22.  
  23. print(mooney2("mum"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement