RBX.lua.RocketPropulsion (Object): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Anaminus
cleaned up
>Anaminus
cleaned up
(No difference)

Revision as of 01:40, 3 January 2009


Preliminary:This item is under development and is likely to change. Use only for experimental work.

The RocketPropulsion object is used to apply force to a Part or other object in a similiar manner as a rocket (ie. towards a given part, with given thrust and torque).

Functions

In addition to the Global functions, RocketPropulsion incorporates the following:

Properties

In addition to the Global properties, the BodyForce also has these:

Events


Example Script

Insert this script into a small, unanchored part, and change the name in the script:

local rocket = script.Parent

local rp = Instance.new("RocketPropulsion")
rp.Parent = rocket
rp.Target = game.Players.YourNameHere.Character.Torso
rp:Fire()

See Also

Blog post