|
| 17 Dec 2011 08:22 AM |
Could you do something like this:
Hint = Instance.new("Hint")
HT = Hint.Text |
|
|
| Report Abuse |
|
|
|
| 17 Dec 2011 08:22 AM |
I think you can.
http://www.roblox.com/Part-Generator-Plugin-item?id=67667741 |
|
|
| Report Abuse |
|
|
|
| 17 Dec 2011 10:12 AM |
| Yes, you could... but you never put in the actual text to the hint, so it'll just return "" |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 17 Dec 2011 10:18 AM |
| Yes you could...But what would be the point? You already have a variable for Hint... |
|
|
| Report Abuse |
|
|
|
| 17 Dec 2011 11:53 AM |
Yes, but the point is instead of saying:
Hint.Text = "Hello"
You could say:
HT = "Hello" |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 17 Dec 2011 11:55 AM |
Once again what's the point? If you do that mine as well just say
HT = Instance.new("Hint",Workspace) HT.Text = "Hello"
|
|
|
| Report Abuse |
|
|
xvgigakid
|
  |
| Joined: 22 Jun 2008 |
| Total Posts: 4407 |
|
|
| 17 Dec 2011 11:58 AM |
@Miz Idiot,
Hint = Instance.new("Hint") HT = Hint.Text Hint.Text = "Bob"
print(Hint.Text) >"Bob" print(HT) >""
There is a diffrence.
|
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 17 Dec 2011 12:06 PM |
@xvgigakid
Idiot,
HT = Instance.new("Hint") HT.Parent = Workspace HT.Text = "Hello"
Text Hello
I know there is a difference...But he's asking if he can do a variable with another variable so I said what's the point....When you can just do this simple script I made...That's what he wanted! |
|
|
| Report Abuse |
|
|
|
| 17 Dec 2011 12:08 PM |
My point is trying to shorten things from:
Hint.Text = "dshfhdj"
To:
HT = "dshfhdj"
It gets rid of: Hint.Text |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 17 Dec 2011 12:09 PM |
| Oh that's what you wanted? |
|
|
| Report Abuse |
|
|
|
| 17 Dec 2011 12:09 PM |
It wouldn't actually change the Hint Text, it would change the string you stored the first string in, like this
Hint = Instance.new("Hint") HT = Hint.Text -- The string currently is ""
HT = "Ohai" --Now, the HT is "Ohai" instead of "", but that didn't change the Hint Text because you didn't say Hint.Text |
|
|
| Report Abuse |
|
|
|
| 17 Dec 2011 12:10 PM |
Without metatables, there is NO way to reference properties. AKA, no you cant do that unless you use haxy scripts, which I happen to know how to make. |
|
|
| Report Abuse |
|
|
|
| 17 Dec 2011 12:10 PM |
| Ok, that is what I was asking. Thanks. |
|
|
| Report Abuse |
|
|