Yue Posted January 31, 2022 Share Posted January 31, 2022 have five items that are added to the inventory. These items become invisible. But if the character dies, his inventory is emptied and those five items have to be made visible again to the player. The idea is to target those five items and make them all visible. I was thinking of something like a ForEach. Quote Link to comment Share on other sites More sharing options...
Yue Posted January 31, 2022 Author Share Posted January 31, 2022 Solved. Function Script:UpdateWorld() -- Here variable change + 1. if self.collisionEpo == true then self.collisionEpo = false self.Inv.script:AddEpo() end if self.entity:GetKeyValue("name") == "KitHealth" then self.entity:Turn(0,0,2) elseif self.entity:GetKeyValue("name") == "Epo" then self.entity:Turn(1,1,1) end if player.script.ragdoll == true and self.dead == false then self.dead = true end if self.dead == true and player.script.ragdoll == false then self.entity:Show() self.dead=false if self.entity:GetKeyValue("name") =="Epo" then self.Inv.script:ResetEpo() end end end 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.