I have an error deleting a local script from the backpack

because when I try to delete something that I no longer use I get an error?
is a LocalScript.

image

Try using waitforchild(“apuntar”) instead. The local script is probably being cloned in after it searches for it, so the FindFirstChild is returning nil.

1 Like

This means that you are trying to reference something that does not exist.

Script Example:

local int = nil

int.Value

Have you attempted to check if aim exists?

if aim then
	print('Aim does exist!')
end

Assuming this script is in starter player scripts; as @XdJackyboiiXd21 said,

Using WaitForChild() would be a better option.

1 Like