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 » Scripters
Home Search
 

Re: Anyone Need a Message Script?

Previous Thread :: Next Thread 
forgetaboutit24 is not online. forgetaboutit24
Joined: 22 Nov 2012
Total Posts: 8771
23 Jun 2015 08:01 PM

function StartupMessage() --Change Startup Message to whatever you want to name it.
Instance.new("Message", game.Workspace) --This makes the message
wait (NUMBER OF TIME YOU WANT) --Change NUMBER OF TIME to how long you want.
game.Workspace.Message.Text = ("MESSAGE WHEN PLAYER JOINS") --It says it all
wait (NUMBER OF TIME) --Change NUMBER OF TIME to how long you want.
game.Workspace.Message.Text = ("MESSAGE HERE") --Put a Message here
game.Workspace.Message:Destroy() --Deletes the message (DO NOT MESS WITH)

end


function SecondMessage() --Rename Second Message What you want to to be named
Instance.new("Message", game.Workspace) --Creates Your Message
game.Workspace.Message.Text = ("MESSAGE HERE") --Change MESSAGE HERE to a Message
wait (NUMBER OF TIME) --Change NUMBER OF TIME to the the time you want.
game.Workspace.Message:Destroy() --Deletes Message (DO NOT MESS WITH)
wait (NUMBER OF TIME) --Change NUMBER of TIME to the time you want
Instance.new("Message", game.Workspace) --Makes a new Message
game.Workspace.Message.Text = ("MESSAGE HERE") --Change Message HERE to a Message
wait (NUMBER OF TIME) --Change Number of time to the time you want.
game.Workspace.Message.Text = ("MESSAGE HERE") --Change Message here to a message
wait (NUMBER OF TIME) --Change Number of time to the time you want.
game.Workspace.Message.Text = ("MESSAGE HERE") --Change Message Here to a message
wait (NUMBER OF TIME) --Change Number of Time to the number of seconds you want.
game.Workspace.Message:Destroy() --Destroys the Message (DO NOT MESS WITH)
wait (NUMBER OF TIME) --Change Number of Time to the number of seconds you want.

end

NAME FOR STARTUPMESSAGE HERE() -- Change startupmessage to the name on line1
wait (NUMBER OF TIME) --Put the number of seconds you want to wait here.
NAME FOR SECONDMESSAGE HERE() --change SecondMessage to the name on 2ND function

Ok so do not delete the lines where it says Deletes Message (DO NOT MESS WITH) or the message will stay until the next time it is deleted!
Anywhere I put NUMBER OF TIME Or MESSAGE HERE ect. Do not delete the parentheses only delete the words ok? Don't delete the ()s or the "s ore anything except the word then put what it say to put. Hope this helps with your game! ;D
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
23 Jun 2015 08:03 PM
Ew. Thats not the most efficient way of doing it.
Report Abuse
Locard is not online. Locard
Joined: 13 Apr 2014
Total Posts: 3516
23 Jun 2015 08:04 PM
Thank you for your wonderful input. I'm sure beginner scripters would love to use this script. I suggest using loops instead, though.
Report Abuse
forgetaboutit24 is not online. forgetaboutit24
Joined: 22 Nov 2012
Total Posts: 8771
23 Jun 2015 08:09 PM
Oh I'm so stupid I didn't do that! Here is my original version I was making a Racing game. I actually made it pretty good! But none of it saved XD because I saved on test mode so here is the original
function StartupMessage()
Instance.new("Message", game.Workspace)
wait (10)
game.Workspace.Message.Text = ("Player Has Joined 14 seconds ago.")
wait (6)
game.Workspace.Message.Text = ("2 Minutes until next Race!")
game.Workspace.Message:Destroy()

end

StartupMessage()

function BeforeRace()
Instance.new("Message", game.Workspace)
game.Workspace.Message.Text = ("Race Starts in 1 Minute!")
wait (10)
game.Workspace.Message:Destroy()
wait (50)
Instance.new("Message", game.Workspace)
game.Workspace.Message.Text = ("Starting in 3")
wait (1)
game.Workspace.Message.Text = ("Starting in 2")
wait (1)
game.Workspace.Message.Text = ("Starting in 1")
wait (1)
game.Workspace.Message:Destroy()
wait (1)

end

StartupMessage()
wait (60)
BeforeRace()
Report Abuse
forgetaboutit24 is not online. forgetaboutit24
Joined: 22 Nov 2012
Total Posts: 8771
23 Jun 2015 08:20 PM
While loop Updated.

function StartupMessage() --Change Startup Message to whatever you want to name it.
Instance.new("Message", game.Workspace) --This makes the message
wait (NUMBER OF TIME YOU WANT) --Change NUMBER OF TIME to how long you want.
game.Workspace.Message.Text = ("MESSAGE WHEN PLAYER JOINS") --It says it all
wait (NUMBER OF TIME) --Change NUMBER OF TIME to how long you want.
game.Workspace.Message.Text = ("MESSAGE HERE") --Put a Message here
game.Workspace.Message:Destroy() --Deletes the message (DO NOT MESS WITH)

end


function SecondMessage() --Rename Second Message What you want to to be named
Instance.new("Message", game.Workspace) --Creates Your Message
game.Workspace.Message.Text = ("MESSAGE HERE") --Change MESSAGE HERE to a Message
wait (NUMBER OF TIME) --Change NUMBER OF TIME to the the time you want.
game.Workspace.Message:Destroy() --Deletes Message (DO NOT MESS WITH)
wait (NUMBER OF TIME) --Change NUMBER of TIME to the time you want
Instance.new("Message", game.Workspace) --Makes a new Message
game.Workspace.Message.Text = ("MESSAGE HERE") --Change Message HERE to a Message
wait (NUMBER OF TIME) --Change Number of time to the time you want.
game.Workspace.Message.Text = ("MESSAGE HERE") --Change Message here to a message
wait (NUMBER OF TIME) --Change Number of time to the time you want.
game.Workspace.Message.Text = ("MESSAGE HERE") --Change Message Here to a message
wait (NUMBER OF TIME) --Change Number of Time to the number of seconds you want.
game.Workspace.Message:Destroy() --Destroys the Message (DO NOT MESS WITH)
wait (NUMBER OF TIME) --Change Number of Time to the number of seconds you want.

end
while true do
NAME FOR STARTUPMESSAGE HERE() -- Change startupmessage to the name on line1
wait (NUMBER OF TIME) --Put the number of seconds you want to wait here.
NAME FOR SECONDMESSAGE HERE() --change SecondMessage to the name on 2ND function
End

Ok so do not delete the lines where it says Deletes Message (DO NOT MESS WITH) or the message will stay until the next time it is deleted!
Anywhere I put NUMBER OF TIME Or MESSAGE HERE ect. Do not delete the parentheses only delete the words ok? Don't delete the ()s or the "s ore anything except the word then put what it say to put. Hope this helps with your game! ;D
Report Abuse
ehern11 is not online. ehern11
Joined: 23 Apr 2011
Total Posts: 1541
23 Jun 2015 08:22 PM
that is too long
Report Abuse
forgetaboutit24 is not online. forgetaboutit24
Joined: 22 Nov 2012
Total Posts: 8771
23 Jun 2015 08:22 PM
It is but it will only take one minute if you copy and paste.
Report Abuse
ehern11 is not online. ehern11
Joined: 23 Apr 2011
Total Posts: 1541
23 Jun 2015 08:31 PM
what are you trying to do with this? e_e
Report Abuse
forgetaboutit24 is not online. forgetaboutit24
Joined: 22 Nov 2012
Total Posts: 8771
23 Jun 2015 08:46 PM
It makes a Message change and delete itself C: Only for beginners though most people who know how to script knows how to do this. It is an easy script
Report Abuse
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
23 Jun 2015 08:47 PM
Those whom know how to script, can also make this much shorter.
Report Abuse
forgetaboutit24 is not online. forgetaboutit24
Joined: 22 Nov 2012
Total Posts: 8771
23 Jun 2015 08:49 PM
Yeah but I prefer to make it long
Report Abuse
1billybob1 is not online. 1billybob1
Joined: 15 Jun 2008
Total Posts: 4852
23 Jun 2015 08:52 PM
Why would you want to make it long? It just grants more work and tedious organization.
Report Abuse
forgetaboutit24 is not online. forgetaboutit24
Joined: 22 Nov 2012
Total Posts: 8771
23 Jun 2015 08:53 PM
I don't know. I just like it long! I can't really explain it!
Report Abuse
ash877 is not online. ash877
Joined: 18 Feb 2008
Total Posts: 5142
23 Jun 2015 08:53 PM
many programmers like it shorter cuz' it gets REALLY annoying having to go through 100-1000s of lines of code to debug. Keep it short=good, long, healthy life.
Report Abuse
LeitrisArcade is online. LeitrisArcade
Joined: 15 May 2010
Total Posts: 2127
23 Jun 2015 08:54 PM
oh god my eyes

( ͡ಠ ͜ʖಠ)
Report Abuse
forgetaboutit24 is not online. forgetaboutit24
Joined: 22 Nov 2012
Total Posts: 8771
23 Jun 2015 09:22 PM
B1
Report Abuse
forgetaboutit24 is not online. forgetaboutit24
Joined: 22 Nov 2012
Total Posts: 8771
23 Jun 2015 10:51 PM
Bump, New Scripts on Tuesdays.
Report Abuse
LongKillKreations is not online. LongKillKreations
Joined: 14 Feb 2014
Total Posts: 4502
23 Jun 2015 11:22 PM
I fainted after reading this.
Report Abuse
LongKillKreations is not online. LongKillKreations
Joined: 14 Feb 2014
Total Posts: 4502
23 Jun 2015 11:23 PM
You owe me money for hospital fees.
Report Abuse
forgetaboutit24 is not online. forgetaboutit24
Joined: 22 Nov 2012
Total Posts: 8771
24 Jun 2015 09:42 AM
B1
Report Abuse
forgetaboutit24 is not online. forgetaboutit24
Joined: 22 Nov 2012
Total Posts: 8771
24 Jun 2015 05:08 PM
B1
Report Abuse
DevJackB is not online. DevJackB
Joined: 16 Apr 2015
Total Posts: 44
24 Jun 2015 05:13 PM
Fixed:

local set1, set2 = {
"Hello!",
"I do love fried fish.",
}, {
"This is a 2nd set of messages.",
"I was kidding. I don't like fried foods.",
"Cholestrol? No thanks!",
}

local waitTime = 2

for i, m in pairs(set1) do
local msg = Instance.new("Message")
msg.Text = m
msg.Parent = game.Workspace
wait(waitTime)
msg:Destroy()
wait(waitTime)
end

wait(waitTime * 10)

for i, m in pairs(set2) do
local msg = Instance.new("Message")
msg.Text = m
msg.Parent = game.Workspace
wait(waitTime)
msg:Destroy()
wait(waitTime)
end

"Lord have mercy on us. All people before me take warning by me." ~ John Amy Bell
Report Abuse
DevJackB is not online. DevJackB
Joined: 16 Apr 2015
Total Posts: 44
24 Jun 2015 05:14 PM
Note that my script is shorted and more efficient, but I like spacing. Spacing is good for the soul.

"Lord have mercy on us. All people before me take warning by me." ~ John Amy Bell
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
24 Jun 2015 05:16 PM
peoples eyes are bleeding
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
24 Jun 2015 05:18 PM
You never want it long, it will be a pain to fix and a pain to read
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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