AkaiNight Posted August 1, 2017 Share Posted August 1, 2017 I'm using this code for when eat something not "fish or cooked fish or ice or fishsticks or fish tacos" gives 5 hunger and -10 sanity elseif food and food.components.edible and food.prefab == not "ice" or "fish_cooked" or "fish" or "fishtacos" or "fishsticks" or then local hungerboost = 5 local sanityboost = -10 local foodcheck = food.inst.prefab == "spoiled_food" and 0 or hungerboost inst.components.health:DoDelta(0) inst.components.sanity:DoDelta(0) inst.components.hunger:DoDelta(5 - food:GetHunger() * eater.hungerabsorption) inst.components.talker:Say("I shouldn't eat that. Nya~") end but when i eat something it crash. lost server connection. Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now