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: How do I make the words at the top in the black bar change?

Previous Thread :: Next Thread 
minicl55 is not online. minicl55
Joined: 25 Dec 2010
Total Posts: 2371
16 Apr 2011 09:26 PM
I want it too go beteen 5 phrases. I know enough about scripting to read what it says and change it up enough the change what the prases say and how long it appears for.
Report Abuse
dddylan98 is not online. dddylan98
Joined: 16 Jul 2008
Total Posts: 1497
16 Apr 2011 09:32 PM
local h = Instance.new("Hint")
h.Parent = game.Workspace
while true do
h.Text = "blah"
wait(5)
h.Text = "blahblah"
wait(5)
h.Text = "bloob"
wait(5)
h.Text = "blob"
wait(5)
h.Text = "block"
wait(5)
end
Report Abuse
76hyy11 is not online. 76hyy11
Joined: 05 Dec 2009
Total Posts: 1698
16 Apr 2011 09:32 PM
Insert>object>message
then change the message to what you want, I think that should help but I'm not sure.
Report Abuse
dddylan98 is not online. dddylan98
Joined: 16 Jul 2008
Total Posts: 1497
16 Apr 2011 09:33 PM
@76 Nope.
Report Abuse
76hyy11 is not online. 76hyy11
Joined: 05 Dec 2009
Total Posts: 1698
16 Apr 2011 09:37 PM
sorry, Im still learning the ropes.
Report Abuse
minicl55 is not online. minicl55
Joined: 25 Dec 2010
Total Posts: 2371
16 Apr 2011 10:03 PM
Its OK, but dddylan98 solved it.
Report Abuse
minicl55 is not online. minicl55
Joined: 25 Dec 2010
Total Posts: 2371
16 Apr 2011 10:08 PM
WAIT!!!! I want it to loop! how do I do this? is it loop(9999999)

Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
16 Apr 2011 10:10 PM
It already does loop...
Report Abuse
RoboTestGear is not online. RoboTestGear
Joined: 28 Dec 2009
Total Posts: 3063
16 Apr 2011 10:25 PM
local created = Instance.new("Hint",Workspace)
for i=1,10 do
created.Text = "Hi"
wait(i)
created.Text = "Hello?"
wait(i)
end
Report Abuse
wario50 is not online. wario50
Joined: 23 Mar 2009
Total Posts: 8098
16 Apr 2011 10:48 PM
You can do a easy loop like this.
___________________
local msg = Instance.new("Hint",Workspace)
repeat
msg.Text = "Hi"
wait(1)
msg.Text = "This"
wait(1)
msg.Text = "Is"
wait(1)
msg.Text = "A"
wait(1)
msg.Text = "Message!"
until game.Workspace.Name == "hay"
___________________


That's one way of doing loops.
Report Abuse
cod0078 is not online. cod0078
Joined: 15 Oct 2010
Total Posts: 2429
16 Apr 2011 10:50 PM
wait(1) makes the loops.
Report Abuse
wario50 is not online. wario50
Joined: 23 Mar 2009
Total Posts: 8098
16 Apr 2011 10:52 PM
No.

Wait makes you wait.

It is sort of a "Delay" type thing.

This way, people can make nice Day/Night scripts without it going haywire.
Report Abuse
ColonelGraff is not online. ColonelGraff
Joined: 28 Sep 2008
Total Posts: 2457
16 Apr 2011 11:00 PM
"while true do" will never end unless the script breaks or gets removed.
Report Abuse
RoboTestGear is not online. RoboTestGear
Joined: 28 Dec 2009
Total Posts: 3063
16 Apr 2011 11:38 PM
Acttuly.. break will end it.
Report Abuse
ColonelGraff is not online. ColonelGraff
Joined: 28 Sep 2008
Total Posts: 2457
16 Apr 2011 11:48 PM
ikr
Report Abuse
minicl55 is not online. minicl55
Joined: 25 Dec 2010
Total Posts: 2371
16 Apr 2011 11:52 PM
OK! Thanks for answering my question!
Report Abuse
soccaboy17 is not online. soccaboy17
Joined: 22 Sep 2009
Total Posts: 3161
16 Apr 2011 11:52 PM
lol...
Report Abuse
dddylan98 is not online. dddylan98
Joined: 16 Jul 2008
Total Posts: 1497
17 Apr 2011 01:01 AM
I did put a loop in, I put it after it created it so there weren't 10 million new hints.
Report Abuse
Fredfishy is not online. Fredfishy
Joined: 21 Mar 2009
Total Posts: 4197
17 Apr 2011 01:41 AM
messages = { "Blibble", "Blobble", "BLOO!" }
h = Instance.new("Hint", Workspace)

while true do
for i = 1, #messages do
h.Text = messages[i]
wait(5)
end
end
Report Abuse
Cpbald is not online. Cpbald
Joined: 13 May 2011
Total Posts: 1985
19 Aug 2011 01:22 PM
So, we want a Hint. Let's start with:

workspace.new.local=Hint.(workspace)

Now, we need some text and a Never Ending script part.

while true do
h.Text="Hello world!"
wait(5)
h.Text="I am a friendly user."
end

Now let's add where it should be.

position={"0","0","0"}
resize={"30","10,","0"
end

The finished Script:


workspace.new.local=Hint.(workspace)

while true do
h.Text="Hello world!"
wait(5)
h.Text="I am a friendly user."
end

position={"0","0","0"}
resize={"30","10,","0"
end
Report Abuse
Cpbald is not online. Cpbald
Joined: 13 May 2011
Total Posts: 1985
19 Aug 2011 01:23 PM
Oops I meant at the end of the text, I forgot wait(5).
Report Abuse
radioactivated is not online. radioactivated
Joined: 05 Sep 2009
Total Posts: 1181
19 Aug 2011 01:31 PM
while true do is an infinite loop, and I'm pretty sure this post is useless because someone already said this. :3
Report Abuse
pwnedu46 is not online. pwnedu46
Joined: 23 May 2009
Total Posts: 7534
19 Aug 2011 02:08 PM
"workspace.new.local=Hint.(workspace)"

erm...lolno


______________________________________
~pwnedu46~
-I lost the game.-
Report Abuse
DarkDragonChiora is not online. DarkDragonChiora
Joined: 18 May 2010
Total Posts: 30
28 Aug 2011 04:09 PM
Wow... that script was a lot simpler than I'd imagined
Report Abuse
csisgreat is not online. csisgreat
Joined: 30 Aug 2011
Total Posts: 34
02 Jan 2012 02:20 AM
where is local
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