Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I'm having issues with what someFrame and someButton, etc is?

Asked by 6 years ago

? Like what does it mean, lots of people are replying with it. I thought it used to be :

local button = Instance.new("TextButton")

Not

local button = someButton

OR

local frame = someFrame

Please explain this to me, thank you!

1 answer

Log in to vote
0
Answered by 6 years ago

This is a just a vague reference people use assuming you know how to assign a GUI's instance to the variable. No one will know where your objects are located in studio, so just saying someFrame makes it easy on them when providing others with an answer based on their code.

Although on your end, you would replace this with the instance of your GUI element. So if you had a TextButton in a frame and the script in the same frame, you would assign your variable the object's location like so:

local button = script.Parent.TextButton
0
thx :) CrimsonFlux 6 — 6y
Ad

Answer this question