#"X cannot be assigned to"

27 messages · Page 1 of 1 (latest)

real wraith
#

VectorVelocity.X/Y/Z takes numbers, not vector3s. If you want to do it like that, then do...

bullet.LinearVelocity.VectorVelocity = mouse.Hit

or

bullet.LinearVelocity.VectorVelocity.X = mouse.Hit.X
bullet.LinearVelocity.VectorVelocity.Y = mouse.Hit.Y
bullet.LinearVelocity.VectorVelocity.Z = mouse.Hit.Z

I'd also double-check that mouse.Hit is actually a vector3 and not a raycastResult or something like that

real wraith
#

What's the full error?

#

Also, what's mouse.hit?

jade surge
#

u cant set x

#

bullet.LinearVelocity.VectorVelocity = mouse.Hit.Position

jade surge
#

and ??

tired tideBOT
#

studio** You are now Level 4! **studio

jade surge
#

show screenshot, if offset it the same always (like Y offset with mouse.hit it frequently happend) you can add vectors

#
bullet.LinearVelocity.VectorVelocity = mouse.Hit.Position + Vector3.yAxis
#

yes

#

no

#

X -> Left Right
Y -> Up Down
Z -> Forward Backward

#

you should have this little guy to help you

#

you should use the mouse hit

#

or you should normalise the vector

#

use the camera look vector instead

#

basically see the mouse.Hit like creating a part where your mouse is pointing

#

if you point to a part, it will basically create a dot on this part

#

and you are creating a vector between you and the point, but if your mouse is touching like your gun, it will not go thorugh it (except if you use the hit list)

#

yes you can

#

toward the mouse or toward where you are looking at

#

yes its because youre pointing toward your part

#

so its hitting the part

#

well if it does that it have nothing to do with what you shown

#

idk what can i say too