generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: :GetTouchingParts() Update

Previous Thread :: Next Thread 
Lordlukervol is not online. Lordlukervol
Joined: 29 May 2012
Total Posts: 749
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 is not online. 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
Lordlukervol is not online. Lordlukervol
Joined: 29 May 2012
Total Posts: 749
16 Jul 2015 06:58 PM
I just needed to know how to update it :b. Thanks!
Report Abuse
CrowClaws is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image