I got red squiggles but have no idea why

I don’t know what I’m doing wrong and why the code won’t build. I’d appreciate any help!

The signature of the function asks for an optional agent since triggers are not always triggered by players, it can get triggered by water, pulse devices or prop mover for example, use this instead :

volume_granter_half(AgentMaybe: ?agent):void=
    if(Agent := AgentMaybe?):
1 Like

Thank you sm. I appreciate it!

1 Like