maganam Posted May 31, 2018 Share Posted May 31, 2018 I created an item and i want to start with it coz my game crash every time i activ the mod. Is this line correct or not? local start_inv = {Spiky_Bat} Yeah... my item name is literally Spiky_Bat Link to comment Share on other sites More sharing options...
IronHunter Posted May 31, 2018 Share Posted May 31, 2018 5 minutes ago, maganam said: I created an item and i want to start with it coz my game crash every time i activ the mod. Is this line correct or not? local start_inv = {Spiky_Bat} Yeah... my item name is literally Spiky_Bat prefabs are referenced as strings, you'll want to change Spiky_Bat to "Spiky_Bat" with "" because atm Spiky_Bat is a pointer/variable referencing nil data which is incorrect and giving you the error. Link to comment Share on other sites More sharing options...
maganam Posted June 1, 2018 Author Share Posted June 1, 2018 Thanks, I will change that and I'll let you know if something change. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now