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: Did they change how raycasting works?

Previous Thread :: Next Thread 
1waffle1 is online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
27 Sep 2011 04:43 PM
Everything that used to work is broken.
Report Abuse
Tenal is not online. Tenal
Joined: 15 May 2011
Total Posts: 18684
27 Sep 2011 04:43 PM
[ Content Deleted ]
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
27 Sep 2011 04:47 PM
[ Content Deleted ]
Report Abuse
1waffle1 is online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
27 Sep 2011 04:50 PM
No, they just added a new error. "Missing argument" then it crashes.
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
27 Sep 2011 04:50 PM
[ Content Deleted ]
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
27 Sep 2011 04:52 PM
[ Content Deleted ]
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
27 Sep 2011 04:53 PM
[ Content Deleted ]
Report Abuse
1waffle1 is online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
27 Sep 2011 05:57 PM
I used nil for the second argument after I found that it didn't work. It used to work, but THEY DID THIS. THEY DID THIS!!!
Report Abuse
Dresscode is not online. Dresscode
Joined: 26 Aug 2010
Total Posts: 151
27 Sep 2011 06:20 PM
pew pew pew
Report Abuse
iamogggg is not online. iamogggg
Joined: 09 Sep 2008
Total Posts: 642
27 Sep 2011 07:36 PM
Using nil for the second argument worked for me. Maybe your Lua doesn't like you.
Report Abuse
iamogggg is not online. iamogggg
Joined: 09 Sep 2008
Total Posts: 642
27 Sep 2011 07:38 PM
Oh. It did work for you. Ignore the last comment. =3. Why must you screw with us so? It used to default to nil.. Why you trollin' ROBLOX, why?
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
27 Sep 2011 07:39 PM
function rayCast(pos, dir, ignore)
  return workspace:FindPartOnRay(Ray.new(pos, dir), ignore or Instance.new('Model'))
end

Maybe? Models without descendants get removed (I think).
Report Abuse
Rousie14 is not online. Rousie14
Joined: 20 Jan 2010
Total Posts: 344
27 Sep 2011 07:45 PM
Yea they did some updates and the patched some scripts. Something of the uptades patched somethig in the Raycast script. Not sure what.
Report Abuse
HotThoth is not online. HotThoth
Forum Moderator
Joined: 24 Aug 2010
Total Posts: 1176
28 Sep 2011 05:30 PM
Basically, when one of our functions expects 3 arguments, but was given fewer, Lua "guessed" at what the default values should be. And it always guessed nil. This confused a lot of users, because they might then get some nil-related error, or the function might just not work. It seemed bad. So now when an argument is left out, if we have a default argument coded in, we use that (instead of nil), but if there isn't a default argument, instead of just using nil and hoping stuff doesn't break or behave weirdly, it errors to let the user know it wants something there.

This means most functions will have better default behaviors, and our error messages will be better. However, if you were relying on skipping arguments so they'd be nil, now some of those functions will error out (instead of just passing undying shame to your family).

That's why just using "nil" as a second argument will fix things. In this particular case, that default makes sense, but just hasn't been added in yet (we have to add defaults for every one of our functions if we don't want them to throw this error X< ). So for now, nil ftw!
Report Abuse
Rousie14 is not online. Rousie14
Joined: 20 Jan 2010
Total Posts: 344
28 Sep 2011 06:49 PM
Now that guy is smart ^, Thanks HotThoth.
Report Abuse
1waffle1 is online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
28 Sep 2011 08:03 PM
hottoth is better than sorcus. sorcus has to stay in c&g.
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