generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Hint.Text

Previous Thread :: Next Thread 
Lamatron9000 is not online. Lamatron9000
Joined: 11 Jan 2010
Total Posts: 1866
17 Dec 2011 08:22 AM
Could you do something like this:

Hint = Instance.new("Hint")

HT = Hint.Text
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
17 Dec 2011 08:22 AM
I think you can.

http://www.roblox.com/Part-Generator-Plugin-item?id=67667741
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
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 is not online. 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
Lamatron9000 is not online. Lamatron9000
Joined: 11 Jan 2010
Total Posts: 1866
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 is not online. 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 is not online. 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 is not online. 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
Lamatron9000 is not online. Lamatron9000
Joined: 11 Jan 2010
Total Posts: 1866
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 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
17 Dec 2011 12:09 PM
Oh that's what you wanted?
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
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
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
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
Lamatron9000 is not online. Lamatron9000
Joined: 11 Jan 2010
Total Posts: 1866
17 Dec 2011 12:10 PM
Ok, that is what I was asking. Thanks.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image