Advertisement
KodingKid

Basic Lua Class

Apr 23rd, 2021
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. function Player:create(game)
  2.    local play = {}
  3.    setmetatable(play,Player)
  4.    play.game = game
  5.    return play
  6. end
  7. --creates a function for a player, and a class for it called play
  8. --see also: https://pastebin.com/2CYCdYSD and https://pastebin.com/TqEhPaiC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement