I constantly get the acceleration I assign as “accel” in this script regardless of what I make P:
local weight = script.Parent.Parent:GetMass()*196.2 -- weight
local accel = 5 -- acceleration
local mass = script.Parent.Parent:GetMass() -- mass
script.Parent.MaxForce = Vector3.new(0,weight + accel*(mass), 0) -- resultant force
local count = 0
local PrevVelo = script.Parent.Parent.Velocity.Y
while true do
wait(1)
count = count + 1
print("Time: "..count.." Seconds")
print("Velocity: "..script.Parent.Parent.Velocity.Y.." m/s")
print("Acceleration: "..script.Parent.Parent.Velocity.Y - PrevVelo.." m/s²")
PrevVelo = script.Parent.Parent.Velocity.Y
print("------------------------------------------------------------------------------")
end
So if P isn’t affecting the acceleration, what does it actually do?