So im trying to remove something from the player but it isn’t working why?
elseif player.BulletHit.Value <= 0 then
shield:Remove()
forcefield.Parent = nil
end
So im trying to remove something from the player but it isn’t working why?
elseif player.BulletHit.Value <= 0 then
shield:Remove()
forcefield.Parent = nil
end
Is the BulletHit
value valid & available to the player?
Also Remove()
is deprecated, do change it to Destroy()
You could also add another else
statement if the Player’s BulletHit
value is not <=
0
but when i use destroy, and i try to set the shield back on the player. It always error saying something like the player parent property is locked or something. BulletHit is valid and available to the player