ReachedTarget (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
Fixed
>Camoy
Example added
Line 6: Line 6:
|}}</onlyinclude>
|}}</onlyinclude>
|}
|}
{{Example|<pre>
game.Workspace.Part.RocketPropulsion:connect(function()
  print("Reached target")
end)
</pre>}}

Revision as of 16:01, 29 August 2010

ReachedTarget ( )
Description Fired when the Rocket comes within TargetRadius of the Target. This is used to make the rocket work, such as make an explosion when it flies near the Target.
Member of: [[RBX.lua.RocketPropulsion (Object)|RocketPropulsion]]
Example
game.Workspace.Part.RocketPropulsion:connect(function()
  print("Reached target")
end)