Magnitude is not a valid member of Vector3

I’ve been trying to fix this error for ages now and I keep going back to it but just can’t get my head around it. Any idea how to fix it?

if (RootPart.Position - Target.Position).magnitiude <= chargedlist then
if (RootPart.Position - Target.Position).Magnitiude <= chargedlist then

What is the value of the chargedlist variable? Also, what is the error?

Also, it looks like magnitude was spelled wrong, so try changing it.

Omg thankyou so much, I am so dumb some times.

It’s fine. I make these errors to lol

“Magnitude” is a property so remember to capitalise it like you would with all other references to properties.

1 Like

Just spend 20 minutes trying to make a fishing rod that casts where you click, within a certain distance - the magnitude wasn’t working so I came to google, saw this, and noticed I also had made a typo in magnitude and that’s why it was broken the whole time…