#ServerStorage.BarrageHand:29: attempt to index nil with 'Character'

6 messages · Page 1 of 1 (latest)

craggy palm
#

you're gonna wanna use a colon for the functions other than the create function if you're doing OOP

#

otherwise self is nil, which is the problem here

#

so instead of

module.startbarrage()```
you'd do 
```lua
module:startbarrage()```
#

same with endbarrage

#

createbarrage will stay as a period, though

#

change the two in the modulescript and you should be good :)