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: I made my own Instance Function

Previous Thread :: Next Thread 
xdhunta1774 is not online. xdhunta1774
Joined: 28 Jun 2011
Total Posts: 1112
20 Apr 2012 03:55 AM
local it,bc,c3=Instance.new,BrickColor.new,Color3.new
qis = {}
qis["bg"]="BackgroundColor3"
qis["ts3"]="TextStrokeColor3"
qis["tst"]="TextStrokeTransparency"
qis["bgt"]="BackgroundTransparency"
qis["s"]="Size"
qis["n"]="Name"
qis["p"]="Position"
qis["zi"]="ZIndex"
qis["img"]="Image"
qis["t"]="Text"
qis["tc3"]="TextColor3"
qis["fo"]="Font"
qis["fos"]="FontSize"
qis["tex"]="Texture"
qis["tr"]="Transparency"
qis["bc3"]="BorderColor3"
qis["bsp"]="BorderSizePixel"
qis["an"]="Anchored"
qis["cll"]="CanCollide"
qis["cf"]="CFrame"
qis["bri"]="BrickColor"
qis["clips"]="ClipsDescendants"
qis["txa"]="TextXAlignment"
qis["tya"]="TextYAlignment"
qis["wrap"]="TextWrap"
qis["sca"]="Scale"
qis["mtype"]="MeshType"
qis["mid"]="MeshId"
qis["tid"]="TextureId"
qis["bv"]="Bevel"
qis["f"]="Face"
qis["te"]="Texture"
qis["p0"]="Part0"
qis["p1"]="Part1"
qis[""]=""
qis[""]=""
qis[""]=""
qis[""]=""
GuiClass = {}
GuiClass["Frame"]=1
GuiClass["ImageLabel"]=1
GuiClass["TextLabel"]=1
GuiClass["ImageButton"]=1
GuiClass["TextButton"]=1
qi = function(ta)
local n = it(ta[1])
if GuiClass[n.className] then n.BorderSizePixel=0 end
for i,v in pairs(ta) do
if i~=1 and i~=2 then -- if not clas and par
local ind = qis[i] or i
local elem = v
if string.find(ind,"Color3") then elem = bc(elem).Color end -- auto ;)
if string.find(ind,"Color") then elem = bc(elem).Color end -- auto ;)
if string.find(ind,"SecondaryColor") then elem = bc(elem).Color end -- auto ;)
if string.find(ind,"BrickColor") then elem = bc(elem) end -- auto ;)
if string.find(ind,"FontSize") then elem = "Size" ..elem end -- auto ;)
n[ind] = elem
end
end
n.Parent=ta[2]
return n
end

Is it good? :o
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
20 Apr 2012 08:03 AM
[ Content Deleted ]
Report Abuse
xdhunta1774 is not online. xdhunta1774
Joined: 28 Jun 2011
Total Posts: 1112
20 Apr 2012 08:19 AM
y not

Report Abuse
SQLi is not online. SQLi
Joined: 10 Jul 2011
Total Posts: 1597
20 Apr 2012 10:03 AM
Wow, why post this? It's an embarrassment.
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
20 Apr 2012 10:36 AM
^

Of epic proportions.

I hesitate to say that we finally have a purpose for the value infinite. For exponentiating the word 'embarrassment' to describe this thread.
Report Abuse
myr8 is not online. myr8
Joined: 10 Apr 2012
Total Posts: 100
20 Apr 2012 10:51 AM
[ Content Deleted ]
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