MaxThrust (Property)

From Legacy Roblox Wiki
Revision as of 15:10, 27 January 2011 by >Camoy (formatted)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
MaxThrust
Property Number MaxThrust
Description The maximum thrust the rocket will exert. Heavy rockets need more thrust to remain airborne and to track the target.
Member of RocketPropulsion


Description

Max Thrust is the maximum amount of force the rocket will use to try and keep moving. The bigger the rocket the more thrust is needed to stay in the air and follow the target.

Example
This Script causes a RocketPropulsion's MaxThrust to go up by 1 every ⅓rd of a second.
local RoPr = Instance.new('RocketPropulsion', game.Workspace)
RoPr.MaxThrust = 0

while wait(1/3) do
   RoPr.MaxThrust = RoPr.MaxThrust + 1
end