How do I go about changing the X,Y,Z properties from a number or int value(s)
I have this currently which does not work. I have tried doing value changed functions, reordering of code, etc.
while true do
local X = script.Parent.XVal.Value
local Y = script.Parent.YVal.Value
local Z = script.Parent.ZVal.Value
script.Parent.BodyVelocity.Velocity = Vector3.new(X,Y,Z)
wait()
end