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 » Scripting Helpers
Home Search
 

Re: FindPartOnRayWithIgnoreList() method

Previous Thread :: Next Thread 
TrueSoulWolf is not online. TrueSoulWolf
Joined: 02 Apr 2011
Total Posts: 460
25 Nov 2012 12:58 PM
For the ignore list (which is a table), does it ignore the name, classname, or what in relations to the values of the table inserted into the arguments?
Report Abuse
MikeAnIkes is not online. MikeAnIkes
Joined: 13 Mar 2010
Total Posts: 1581
25 Nov 2012 01:01 PM
It ignores the actual objects, so
Workspace:FindPartOnRayWithIgnoreList(Ray,{Workspace.Part1,Workspace.Part2,Workspace.Part3},false)

would ignore Part1, Part2, and Part3.
Report Abuse
TrueSoulWolf is not online. TrueSoulWolf
Joined: 02 Apr 2011
Total Posts: 460
25 Nov 2012 01:21 PM
So, would this set IFoundIt as true?:

table = {workspace.donotwant1, workspace.donotwant2}
IFoundIt = false
NumOfTimes = 0


while IFoundIt = false do
wait()
NumOfTimes = NumOfTimes + 1
p = (FindPartOnRayWithIgnoreList(Ray,{workspace.PartInTheWay1},false))

if p.Name ~= "CoolName" then
table[(NumOfTimes + 2)] = p

else
IFoundIt = true
end
Report Abuse
MikeAnIkes is not online. MikeAnIkes
Joined: 13 Mar 2010
Total Posts: 1581
25 Nov 2012 01:24 PM
Well no, you're missing some ends, FindPartOnRayWithIgnoreList() is a method not a function, and Ray is undefined.
Report Abuse
TrueSoulWolf is not online. TrueSoulWolf
Joined: 02 Apr 2011
Total Posts: 460
25 Nov 2012 01:41 PM

Assuming Ray already exists, I added the end I missed for the loop, and changed it to a method after realizing my derp.


while IFoundIt = false do
wait()
NumOfTimes = NumOfTimes + 1
p = (Ray:FindPartOnRayWithIgnoreList(Ray,{workspace.PartInTheWay1},false))


if p.Name ~= "CoolName" then

table[(NumOfTimes + 2)] = p


else

IFoundIt = true

end
end
Report Abuse
MikeAnIkes is not online. MikeAnIkes
Joined: 13 Mar 2010
Total Posts: 1581
25 Nov 2012 01:56 PM
Almost, but its a method of Workspace, not Ray. Other than than, it should work.
Report Abuse
TrueSoulWolf is not online. TrueSoulWolf
Joined: 02 Apr 2011
Total Posts: 460
25 Nov 2012 01:59 PM
Yay
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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