Error attempt to perform arithmetic on local 'dt' (a table value)
Posted: Sun Sep 13, 2020 9:51 pm
Having an issue with 'dt'(deltatime), I am confused of why I can't reference dt in main.lua. I've made sure I put dt in all update functions but I still come out with this error.
error: Error
Player.lua:21: attempt to perform arithmetic on local 'dt' (a table value)
Traceback
Player.lua:21: in function 'update'
main.lua:9: in function 'update'
[C]: in function 'xpcall'
I linked my code in an attachment. Im pretty sure I've formatted everything correctly. If you can help me out with this problem I would be forever in your debt . Thank you for your time and stay safe
error: Error
Player.lua:21: attempt to perform arithmetic on local 'dt' (a table value)
Traceback
Player.lua:21: in function 'update'
main.lua:9: in function 'update'
[C]: in function 'xpcall'
I linked my code in an attachment. Im pretty sure I've formatted everything correctly. If you can help me out with this problem I would be forever in your debt . Thank you for your time and stay safe