oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|
|
| 17 Feb 2012 06:33 AM |
| I arn't this adavanced :O what does getmeatable do? |
|
|
| Report Abuse |
|
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|
|
| 17 Feb 2012 09:22 PM |
| Instance.new = function() return {Name = "Part", Anchored = false, Size = Vector3.new(), CFrame = CFrame.new()} end |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2012 09:23 PM |
| Oops, I forgot about the part at the top. |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2012 09:30 PM |
| Are you sure this is possible? The only thing we can use are keywords and getfenv. |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2012 09:32 PM |
setfenv(1,{getfenv = getfenv})
--- Your work v workspace = game.Workspace --- Your work ^
local part = Instance.new("Part",workspace) part.Name = "cPart" part.Anchored = true part.Size = Vector3.new(5,5,5) part.CFrame = CFrame.new(5,5,5)
print(getmetatable(part)) |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2012 09:36 PM |
@Fortunato
Game is gone too, though... |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2012 09:38 PM |
| Could you explain what the first line of code does, please? |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2012 09:39 PM |
| It basically makes the only function or variable you can use getfenv. |
|
|
| Report Abuse |
|
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|
smurf279
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 6871 |
|
|
| 17 Feb 2012 09:48 PM |
| Are we restricted to one line? |
|
|
| Report Abuse |
|
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|
|
| 17 Feb 2012 09:58 PM |
setfenv(1,{getfenv = getfenv}) --- Your work v getfenv().Vector3 = {new = function() return {X = 0, Y = 0, Z = 0} end} getfenv().CFrame = {new = function() return {} end} getfenv().Instance = {new = function() return {Name="",Anchored=false,Size=Vector3.new(),CFrame=CFrame.new()} end} --- Your work ^ local part = Instance.new("Part",workspace) part.Name = "cPart" part.Anchored = true part.Size = Vector3.new(5,5,5) part.CFrame = CFrame.new(5,5,5) print(getmetatable(part))
This is as far as I've gotten, but I can't rewrite getmetatable. |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2012 09:59 PM |
| Wait, we're restricted to ONE LINE? |
|
|
| Report Abuse |
|
|
smurf279
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 6871 |
|
|
| 17 Feb 2012 09:59 PM |
| I did something similar to kings lol |
|
|
| Report Abuse |
|
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|
|
| 17 Feb 2012 10:09 PM |
setfenv(1,{getfenv = getfenv})
--- Your work v Instance.new = function() return {Name = "Part", Anchored = false, Size = Vector3.new(), CFrame = CFrame.new()} end print(getmetatable(part)) --[[ lol does this count? --- Your work ^
local part = Instance.new("Part",workspace) part.Name = "cPart" part.Anchored = true part.Size = Vector3.new(5,5,5) part.CFrame = CFrame.new(5,5,5)
print(getmetatable(part)) |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2012 10:10 PM |
| This is impossible to do in one line. Please PM me your solution to prove me wrong. |
|
|
| Report Abuse |
|
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|
| |
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|