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: setfenv1(1,{})

Previous Thread :: Next Thread 
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
03 May 2014 02:42 PM
Exactly what would

setfenv1(1,{})

do?
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
03 May 2014 02:43 PM
Stuff about your question:
http://www.lua.org/pil/14.3.html
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
03 May 2014 02:50 PM
That didn't really help.

I just wanna know, would that wipe out every function? Like print, Instance.new, Vector3.new, etc.
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
03 May 2014 02:51 PM
You could always try.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
03 May 2014 02:54 PM
I'm on iPod...
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
03 May 2014 03:02 PM
Anyone wanna tell me what that would do?
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
03 May 2014 03:04 PM
just did it, print doesn't work.
and it then won't recognize "Workspace" as a variable

#nerdsunited
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
03 May 2014 03:30 PM
What about Instance.new

Wait does that get rid if all references?
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
03 May 2014 03:32 PM
apparently so

21:31:35.699 - setfenv(1,{}) Instance.new('Part', Workspace):1: attempt to index global 'Instance' (a nil value)
21:31:35.700 - Stack Begin
21:31:35.700 - Script 'setfenv(1,{}) Instance.new('Part', Workspace)', Line 1
21:31:35.700 - Stack End

#nerdsunited
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
03 May 2014 05:03 PM
Wow...

So those 14 characters makes it impossible for a script to do anything?
Report Abuse
dennis96411 is not online. dennis96411
Joined: 06 Mar 2009
Total Posts: 1079
03 May 2014 06:42 PM
setfenv() does exactly what its name implies: set f[unction] env[ironment]. Basically, the environment originally had a table holding all the global variables, such as print, Instance.new, etc. When you set an empty table to the environment, you effectively lose all the references to those variables.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
04 May 2014 05:15 PM
Snap... This whole time I meant setfenv(1,{})

Sorry XD
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