#💬 jaxonʹs Feedback

1 messages · Page 1 of 1 (latest)

quaint swallowBOT
viscid tendon
#

ngl that looks a lot harder then doing

frame.BackGroundColor3 = color3.new(255,255,255)
wild fractal
#

it does the same thing

#

just you instance the frame without typing the boilerplate every time

#
    local ballsUI = EI.new(nil, "ScreenGUI", "ScreenGui", UDim2.new(0.6,0,0.6,0), UDim2.new(0.5,0,0.5,0), player.PlayerGui)
    local balls1 = EI.new(nil, "Frame", "Frame", UDim2.new(0.2,0,0.2,0), UDim2.new(0.5,0,0.5,0), player.PlayerGui[ballsUI.Name])
    
    balls1.BackgroundColor = BrickColor.Red()
#

just wrote it for myself since typing all the boilerplate for instancing stuff gets tiring

#
EI.new(config: table?, name: string?, typeOf: string?, size: UDim2? | Vector3?, position: any?, parent: any?)
#

all the paramters it takes

#

wish lua had like overloads

viscid tendon
#

yk you can just do that same thing without having to memorize the order of the arguments

#

like

#
local ball = instance.new("Part") ball.Size = Vector3.new(5,5,5) ball.Anchored = true
#

probably spelt instance wrong but u get the idea

wild fractal
#

you dont have to memorize anything roblox shows you it all

#

your code is mine with more characters

viscid tendon
#

still very unnessesary

#

like

#

very

wild fractal
#

Boilerplate is annoying to look at walls of instancing stuff

viscid tendon
#

then like

viscid tendon
#

or just making it how u want it and putting it in rep storage

#

three viable options...

wild fractal
#

what the code i sent does Names it ScreenGUI, instancings a ScreenGui, sets the size of it to 0.6,0,0.6,0 then sets the position of it to 0.5,0,0.5,0 and then parents it to playerGui

viscid tendon
#

which is best

wild fractal
#

or you can type that out as

viscid tendon
#

yk that making things on the server takes up memory

#

so its almost always better to just have it already made

#

and keep it somewhere

#

then clone it to where ever it needs to go

viscid tendon
wild fractal
#
local gui = Instance.new("ScreenGui")
gui.Parent = player.PlayerGui
gui.Name = "Name"
gui.Size = UDim2.new(0.6,0,0.6,0)
gui.Position = Udim2.new(0.5,0,0.5,0)
#

30 less characters for the same thing

#

and imo is much more enjoyable to look at

wanton urchin
#
local part = Instance.new("Part")
local properties = {Size = Vector3.new(1,1,1),Position = Vector3.new(0.5,0,0.5),Name = "Name",Parent = workspace}
for k,v in pairs(properties) do
 part[k] = v
end

smug

wanton urchin
wild fractal
#

if you type it you know which one is which

#

or if it was real you probably wont name your screengui ScreenGUI

wanton urchin
#

future proofing is out the window,,,,

wild fractal
#

also this part

wanton urchin
#

yeah its not that viable

#

good work though

wild fractal
#

1/5 less characters thats a W in my book for me and my keyboard

#

🙏

wanton urchin
#

roblox autocorrect be like

wild fractal
#

roblox dont type the name of your gui

wild fractal
#

this one just gets rid of you typing

ballsUI.Parent = player

#

hitting enter