MaxSpeed (Property)

From Legacy Roblox Wiki
Jump to navigationJump to search
MaxSpeed
Property Number MaxSpeed
Description The maximum speed of the object.
Member of RocketPropulsion
Example
Here's a script that causes a RocketPropulsion's MaxSpeed to go up by 1 every one-third of a second.
local RoPr = Instance.new( "RocketPropulsion", Workspace )
RoPr.MaxSpeed = 0

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