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
 

Raycasting multiple ignore

Previous Thread :: Next Thread 
iBroski is not online. iBroski
Joined: 06 Jul 2011
Total Posts: 100
09 Sep 2013 07:54 PM
How would I make a ray ignore more than one instance's descendants?

Can I do this?

local ignore = game.Players.LocalPlayer.Character, game.Workspace.SomeModel, game.Workspace.Another

local hit, position = Workspace:FindPartOnRay(ray, ignore)
Report Abuse
1waffle1 is online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
09 Sep 2013 07:58 PM
Either group all of the instances you want to ignore, or cast a new ray every time it hits something you want to ignore.
Report Abuse
cxcharlie is not online. cxcharlie
Joined: 26 Aug 2009
Total Posts: 1414
09 Sep 2013 08:01 PM
local ignore={}
hit,pos=workspace:FindPartOnRayWithIngoreList(ray,table of ignore)
Report Abuse
iBroski is not online. iBroski
Joined: 06 Jul 2011
Total Posts: 100
09 Sep 2013 08:04 PM
Thanksa much guys :D
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
09 Sep 2013 08:05 PM
He spelled Ignore wrong though.
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