Jump to content

Recommended Posts

Hm, maybe something like this?

inst:ListenForEvent("itemget", function(inst, data)    if inst.prefab == "You character's prefab here" and data.item.prefab:find("petals") then        data.item.components.perishable:StopPerishing()    endend)inst:ListenForEvent("itemlose", function(inst, data)    if inst.prefab == "You character's prefab here" and data.item.prefab:find("petals") then        data.item.components.perishable:StartPerishing()    endend)

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...