#💬 jaxonʹs Feedback
1 messages · Page 1 of 1 (latest)
ngl that looks a lot harder then doing
frame.BackGroundColor3 = color3.new(255,255,255)
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
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
you dont have to memorize anything roblox shows you it all
your code is mine with more characters
Boilerplate is annoying to look at walls of instancing stuff
then like
type out all this
instead of this
or just making it how u want it and putting it in rep storage
three viable options...
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
or you can type that out as
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
anyways i was watching one piece before you so rudely interrupted me
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
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

its confusin when you read back becaus you dont know which is which,,,
my solution:.,.,..,

if you type it you know which one is which
or if it was real you probably wont name your screengui ScreenGUI
future proofing is out the window,,,,
roblox autocorrect be like
roblox dont type the name of your gui
neither does this,,,
