Hello! I'm trying to make a lua script that makes so if a player has a shield, even when standing, the shield would deflect most projectiles, a-la Sonic 3 & Knuckles. I tried making this code, but it doesn't work, idk what's wrong
addHook("PlayerThink", function(p)
if p.mo and p.mo.valid...