ReachedTarget (Event): Difference between revisions

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

Revision as of 17:09, 8 July 2011

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.ReachedTarget:connect(function()
  print("Reached target")
end)