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: return

Previous Thread :: Next Thread 
ReynnSolaris is not online. ReynnSolaris
Joined: 16 Jun 2013
Total Posts: 1345
16 Sep 2016 08:20 PM
pastebin/AJgipxSX

doesn't return back the value and is grrr


Report Abuse
CodeBreadpudding is not online. CodeBreadpudding
Joined: 24 Aug 2016
Total Posts: 1286
16 Sep 2016 08:22 PM
You didn't send any arguments to Instance.new
Report Abuse
ReynnSolaris is not online. ReynnSolaris
Joined: 16 Jun 2013
Total Posts: 1345
16 Sep 2016 08:23 PM
yes i did,


local new = Instance.new
local item = new(i)


Report Abuse
CodeBreadpudding is not online. CodeBreadpudding
Joined: 24 Aug 2016
Total Posts: 1286
16 Sep 2016 08:24 PM
http://wiki.roblox.com/index.php?title=Instance_(Data_Structure)
Report Abuse
ReynnSolaris is not online. ReynnSolaris
Joined: 16 Jun 2013
Total Posts: 1345
16 Sep 2016 08:26 PM
["ScreenGui"] is the i and it creates the screen gui but not returning the value.


Report Abuse
CodeBreadpudding is not online. CodeBreadpudding
Joined: 24 Aug 2016
Total Posts: 1286
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
ReynnSolaris is not online. ReynnSolaris
Joined: 16 Jun 2013
Total Posts: 1345
16 Sep 2016 08:26 PM
#######################################################################################################################################################################################################################################################
Report Abuse
ReynnSolaris is not online. ReynnSolaris
Joined: 16 Jun 2013
Total Posts: 1345
16 Sep 2016 08:27 PM
pastebin/4XtwcNt5 cause roblox is great


Report Abuse
ReynnSolaris is not online. ReynnSolaris
Joined: 16 Jun 2013
Total Posts: 1345
16 Sep 2016 08:32 PM
B


Report Abuse
TimeTicks is not online. 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
ReynnSolaris is not online. ReynnSolaris
Joined: 16 Jun 2013
Total Posts: 1345
16 Sep 2016 08:50 PM
bump


Report Abuse
ReynnSolaris is not online. ReynnSolaris
Joined: 16 Jun 2013
Total Posts: 1345
16 Sep 2016 08:51 PM
nvm thanks time/.


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