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 » Club Houses » Let's Make a Deal
Home Search
 

Re: im making a computer simulator -foreverdev

Previous Thread :: Next Thread 
TheAltOfDavid12 is not online. TheAltOfDavid12
Joined: 05 Feb 2014
Total Posts: 352
03 Sep 2014 06:38 PM
it's gonna be completely generated by a script

i made some cool functions that have saved button skins, so you can basically do

edit(
Instance.new("Button", script.Parent),
getSkin("closeButton")
)

and it will create a button with preset properties and st00f
yay



function edit(obj, ...)
for _, property in pairs({...}) do
if property[1]:lower() == "onclick" then
obj.MouseButton1Click:connect(function()
property[2]()
end)
else
obj[property[1]] = property[2]
end
end
return obj
end

function getSkin(type)
local skins = {
["close_button"] = {
{"BackgroundColor3", Color3.new(1, 0, 0)},
{"Text", "swag"},
{"Size", UDim2.new(0, 50, 0, 50)},
{"OnClick", function() print("you clicked me!") end}
}
}
return unpack(skins[type])
end

function generateUI()
local button = edit(
Instance.new("TextButton", script.Parent),
getSkin("close_button")
)
end



-ForeverDev [ R$5 / sadness ]
Report Abuse
mittCat is not online. mittCat
Joined: 03 Mar 2013
Total Posts: 17888
03 Sep 2014 06:39 PM
{"Text", "swag"},

-meow-
Report Abuse
TheAltOfDavid12 is not online. TheAltOfDavid12
Joined: 05 Feb 2014
Total Posts: 352
03 Sep 2014 06:39 PM
@mitt

yus



-ForeverDev [ R$5 / sadness ]
Report Abuse
sidd28 is not online. sidd28
Joined: 26 May 2014
Total Posts: 4566
03 Sep 2014 06:40 PM
Hai dev
Report Abuse
TheAltOfDavid12 is not online. TheAltOfDavid12
Joined: 05 Feb 2014
Total Posts: 352
03 Sep 2014 06:41 PM
hai



-ForeverDev [ R$5 / sadness ]
Report Abuse
9Millionaire is not online. 9Millionaire
Joined: 06 Feb 2010
Total Posts: 10263
03 Sep 2014 06:43 PM
ok
Report Abuse
DominusAstra is not online. DominusAstra
Joined: 23 Jun 2014
Total Posts: 12468
03 Sep 2014 06:45 PM
soryy im not gonna be your brother in law i got a gf
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Let's Make a Deal
   
 
   
  • 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