Jump to content

Recommended Posts

I'm making a character mod and when trying to add a custom item to it this error keeps popping up. Because of my limited knowledge of programming i was following this tutorial on youtube and everything was working until that point https://youtu.be/LYVljyEUa24

 

war.png

chainsword.lua

Remove the text that says "name:" so that those lines of code look like this

Quote

inst:AddComponent("inspectable")

inst:AddComponent("inventoryitem")

I think you have mistakenly copied a feature of the program the video maker is using to code that is labelling things. That text shouldn't be part of the code itself.

I think that should at least fix this error message.

Edited by Chesed

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...