|
| 16 Jul 2015 06:32 PM |
Hi, I'm basically trying to write a script so that while a part is touching another part called 'brick' it moves 1 stud in each axis (except Y).
I just don't know how to update the :GetTouchingParts() inside the for loop. How would you go about this? :l |
|
|
| Report Abuse |
|
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 16 Jul 2015 06:35 PM |
Show the script. Usually, you'd just re-call the function and re-define the variable:
local Parts = Part:GetTouchingParts()
while wait() do -- Update variable Parts = Part:GetTouchingParts() end |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2015 06:58 PM |
| I just needed to know how to update it :b. Thanks! |
|
|
| Report Abuse |
|
|
CrowClaws
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 4466 |
|
|
| 16 Jul 2015 07:01 PM |
that's how you would "update" it
just run a loop |
|
|
| Report Abuse |
|
|