|
| 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 |
|
|
|
| 23 Jun 2015 08:03 PM |
| Ew. Thats not the most efficient way of doing it. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 23 Apr 2011 |
| Total Posts: 1541 |
|
| |
|
|
| 23 Jun 2015 08:22 PM |
| It is but it will only take one minute if you copy and paste. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 23 Jun 2015 08:49 PM |
| Yeah but I prefer to make it long |
|
|
| Report Abuse |
|
|
|
| 23 Jun 2015 08:52 PM |
| Why would you want to make it long? It just grants more work and tedious organization. |
|
|
| Report Abuse |
|
|
|
| 23 Jun 2015 08:53 PM |
| I don't know. I just like it long! I can't really explain it! |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
| |
|
|
| 23 Jun 2015 10:51 PM |
| Bump, New Scripts on Tuesdays. |
|
|
| Report Abuse |
|
|
|
| 23 Jun 2015 11:22 PM |
| I fainted after reading this. |
|
|
| Report Abuse |
|
|
|
| 23 Jun 2015 11:23 PM |
| You owe me money for hospital fees. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
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
|
  |
| 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 |
|
|
| |
|
|
| 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 |
|
|