Ok, so a little back story, I've been making this gun for months now, and so far it's been working great, a few problems but nothing that a little thinking cant help. However, I came across this one issue that is not making any sense to me. ("BV" is the variable for "BodyVelocity.Velocity")
while Bullet do
wait(5)
BV = Vector3.new(BV.X, 10,BV.Z)
end
Now, with this code you would expect that the Velocity of BV (The bullets Body Velocity), would have its Y value changed to 10, and so did I. Until I looked in Body Velocity directly and found that the Velocity is exactly the same, and Y did not change at all. So I decided to put some prints in my script to test it.
while Bullet do
print(BV.Y)
wait(5)
BV = Vector3.new(BV.X, 10,BV.Z)
print(BV)
end
However, (this is the part that really confuses me) even tho looking at the body velocity I know it has not changed, when I look in the output, I see that somehow Roblox is printing "10". So in essence, there is a discrepancy in what im printing and what the script actually is doing, help. I have looked at this for weeks, and I don't know what is happening. Also if there is any way to add pictures to one of these questions, Id loves, to better describe this problem.
Sincerely, An extraordinarily confused noob scripter

1 comment
your printing it to console so it dosent run it