Im trying to subtract every single milisecond but it's not working for me it keeps returning a error in the output saying Z cannot be assigned
local BodyVelocity = script.Parent.BodyVelocity
while true do
wait()
BodyVelocity.Velocity.Z = BodyVelocity.Velocity.Z - 1 --Subtracts every milisecond
end
COMMUNITY QUESTION
Z cannot be assigned How do I make this work?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
try BodyVelocity.Velocity = BodyVelocity.Velocity - Vector3.new(0, 0, 1)
Yeah, Roblox Studio doesn't allow you to change one axis specifically, so you have to do something like what MegaManSam1 said.