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

There's something really confusing about a line of code. Could anyone help?

Asked by 6 years ago

This is the line of code that confuses me: local x = someFrame.BackgroundTransparency

Does this take the value of "someFrame.BackgroundTransparency" or does it make a reference to it?

0
Takes its value , i've never succeeded in my lazy stuff like I'd like to do 'local abc = script.IntValue.Value' User#17685 0 — 6y
0
like i'd like to do is 'abc = 123' . lmao User#17685 0 — 6y
0
it makes a reference, what do you mean with taking the value SulaymanArafat 230 — 6y

3 answers

Log in to vote
1
Answered by
tek_o 56
6 years ago
local x = someFrame.BackgroundTransparency

Basically, this is a "directory."

Just like a phone book, it shows you the persons name (which could be x (the name of the directory in this case))

SomeFrame is the person's address, and BackgroundTransparency is their phone number.

Most likely, someone would do:

local x = .5
0
Thank you for your response! xXprohax0r1337Xx 74 — 6y
Ad
Log in to vote
1
Answered by 6 years ago

It stores the value of 'BackgroundTransparency'

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

look at https://www.youtube.com/watch?v=e1zGdnFZrSg

0
Uhmmm... That's not an explanation. xXprohax0r1337Xx 74 — 6y
0
did you watch the video? GamingZacharyC 152 — 6y
0
It is quite self-explanatory. GamingZacharyC 152 — 6y

Answer this question