|
| 28 Aug 2013 07:26 PM |
Basically what I want to do is do a repeat loop until an event. Here is what I got but it wont work:
repeat Brick.Humanoid:MoveTo(Target.Position,Target) wait() until Target.Touched:connect(function(hit) if hit.Parent then if hit.Parent.Name==Character.Name then Target:Destroy() local Value=Instance.new("StringValue",Brick) Value.Value=Target.Name end end end)
|
|
|
| Report Abuse |
|
|
| |
|
|
| 28 Aug 2013 07:29 PM |
| Use the argument not the function. |
|
|
| Report Abuse |
|
|
|
| 28 Aug 2013 08:45 PM |
| how? Like make it into its own function or what? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 29 Aug 2013 03:54 PM |
why couldn't you just do
while true do --Move to here part.Touched:connect(function() break -- The loop has been broken. -- your stuff end) end |
|
|
| Report Abuse |
|
|