local result = 0
local items = game.CurrentCharacter.Items
for i = 1, #items do
if items[i]:getName() == "hammer" or items[i]:getName() == "nails" or items[i]:getName() == "wood" then
result = result + 1
if result == 3 then return true end
end
end
return false
You set up your display text to show when the player has got the gun-with-bullet, but not the money-bag.... which would then shift the issue to "if have not the gun, but the money bag". So effectively you would need to have an else for each if statement.If you want the display text to show when the player hasn't the gun, you need to move the else down under the first end if.
return Conditions["item1_found" ].Value and Conditions["item2_found" ].Value and
Conditions["item3_found" ].Value
Yep, that is true. If you move the else to the first if-query the text would display wether the player has the money bag or not. The engine would only check if the player has got the gun or not.You set up your display text to show when the player has got the gun-with-bullet, but not the money-bag.... which would then shift the issue to "if have not the gun, but the money bag". So effectively you would need to have an else for each if statement.If you want the display text to show when the player hasn't the gun, you need to move the else down under the first end if.