|
| 16 Sep 2016 08:20 PM |
pastebin/AJgipxSX
doesn't return back the value and is grrr
|
|
|
| Report Abuse |
|
|
|
| 16 Sep 2016 08:22 PM |
| You didn't send any arguments to Instance.new |
|
|
| Report Abuse |
|
|
|
| 16 Sep 2016 08:23 PM |
yes i did,
local new = Instance.new local item = new(i)
|
|
|
| Report Abuse |
|
|
|
| 16 Sep 2016 08:24 PM |
| http://wiki.roblox.com/index.php?title=Instance_(Data_Structure) |
|
|
| Report Abuse |
|
|
|
| 16 Sep 2016 08:26 PM |
["ScreenGui"] is the i and it creates the screen gui but not returning the value.
|
|
|
| Report Abuse |
|
|
|
| 16 Sep 2016 08:26 PM |
| Forget I posted that. The i value is a number while the v value is the actual thing you are looking for. |
|
|
| Report Abuse |
|
|
|
| 16 Sep 2016 08:26 PM |
| ####################################################################################################################################################################################################################################################### |
|
|
| Report Abuse |
|
|
|
| 16 Sep 2016 08:27 PM |
pastebin/4XtwcNt5 cause roblox is great
|
|
|
| Report Abuse |
|
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 16 Sep 2016 08:50 PM |
--server
local module = require(game.ServerScriptService.ModuleScript) local Create = module.Create
local part = Create({Part = { Parent = 'workspace', Name = 'Part2', Size = Vector3.new(1,1,1), Position = Vector3.new(0,5,0), Anchored = true, }})
print(part.Name)
>> Part2
--module
local module = {}
module.Create = function(obj) local tab,object = {} if type(obj) == 'table' then for key,val in next, obj do tab[key] = val object = Instance.new(key) break end local newobj = tab[object.Name] for key,val in next, newobj do if key == 'Parent' then object[key] = game[newobj[key]] else object[key] = newobj[key] end end else object = Instance.new(obj) end return object end
return module
|
|
|
| Report Abuse |
|
|
| |
|
| |
|