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: Displaying messages

Previous Thread :: Next Thread 
Proxemics is not online. Proxemics
Joined: 30 Oct 2013
Total Posts: 2542
28 Mar 2015 09:45 AM
i know Message(" ") is deprecated, so i do this:

local msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "Hello world"
wait(5)
msg:Destroy()

what i want to ask is: are there any simpler ways of displaying global messages?
Report Abuse
memorycode is not online. memorycode
Joined: 24 Sep 2011
Total Posts: 3322
28 Mar 2015 09:46 AM
Just something simple, you can parent the msg inside of the Instance.new

so, Instance.new("Message", game.Workspace) will create the message and parent it into Workspace


those four years of wumbology are really paying off
Report Abuse
Proxemics is not online. Proxemics
Joined: 30 Oct 2013
Total Posts: 2542
28 Mar 2015 09:47 AM
no, i meant displaying messages without having to set a variable etc

go free models!
Report Abuse
SummerEquinox is not online. SummerEquinox
Joined: 25 Jun 2013
Total Posts: 2088
28 Mar 2015 09:48 AM
local msg = Instance.new("Message"); msg.Parent = game.Workspace; msg.Text = "Hello world"; wait(5); msg:Destroy()

Not really simpler... sorry... just...yeah
Report Abuse
memorycode is not online. memorycode
Joined: 24 Sep 2011
Total Posts: 3322
28 Mar 2015 09:48 AM
I was just telling you a side note that you can parent it inside of the Instance.new



those four years of wumbology are really paying off
Report Abuse
SummerEquinox is not online. SummerEquinox
Joined: 25 Jun 2013
Total Posts: 2088
28 Mar 2015 09:50 AM
It depends, if its in workspace you can:

local msg = game.Workspace.(youknownotme)
do
msg.Visible = true
wait(5)
msg:Destroy()
Report Abuse
FunkiAndrew is not online. FunkiAndrew
Joined: 01 Dec 2013
Total Posts: 2318
28 Mar 2015 09:50 AM
Instance.new("Message",game.Workspace).Text = "Hello world"
Report Abuse
Proxemics is not online. Proxemics
Joined: 30 Oct 2013
Total Posts: 2542
28 Mar 2015 09:50 AM
@memorycode
i know that one could do that
i was asking if there is something relative to Message(str) one could use

go free models!
Report Abuse
SummerEquinox is not online. SummerEquinox
Joined: 25 Jun 2013
Total Posts: 2088
28 Mar 2015 09:51 AM
Funki you forgot to destroy it...
Report Abuse
Proxemics is not online. Proxemics
Joined: 30 Oct 2013
Total Posts: 2542
28 Mar 2015 09:54 AM
local msg = game.Workspace.(youknownotme)
do
msg.Visible = true
wait(5)
msg:Destroy()


@Summer
that's completely wrong
a message does not have a Visible boolean
Report Abuse
memorycode is not online. memorycode
Joined: 24 Sep 2011
Total Posts: 3322
28 Mar 2015 09:55 AM
Summer are you sure you know what you are doing ._.


those four years of wumbology are really paying off
Report Abuse
SummerEquinox is not online. SummerEquinox
Joined: 25 Jun 2013
Total Posts: 2088
28 Mar 2015 09:56 AM
look, im here to attempt help...
I obviously don't have 4 years of wumbology.
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
28 Mar 2015 10:13 AM
function message(text,duration)
local m = Instance.new("Message",workspace)
m.Text = text
wait(duration)
m:Destroy()
return
end

message("Hello World",5)
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
28 Mar 2015 10:14 AM
Or...

function message(text, duration)
game.Debris:AddItem(Instance.new("Message",workspace).Text = text, duration)
end
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
28 Mar 2015 10:14 AM
^ That would be wrong.
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
28 Mar 2015 10:18 AM
I did this awhile ago which was

put a string value in serverstorage
put a textlabel in the player's gui

inside the gui I put this code

game.ServerStorage.Value.Changed:connect(function()
script.Parent.Text = game.ServerStorage.Value.Value
end)


now when ever you want to send a message to everyone you can just do

game.ServerStorage.Value.Value = "Hello World"
Report Abuse
CrescentJade is not online. CrescentJade
Joined: 07 Jul 2010
Total Posts: 5494
28 Mar 2015 10:19 AM
Can you do this?(cant test)

game.Debris:AddItem((Instance.new("Message",workspace).Text="Hi"),5)
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
28 Mar 2015 10:20 AM
Oh nvm I did that for hint not message
but you can easily edit it to turn invisible again

"NO OPINIONS ALLOWED" - BrightEyes 2015v
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
28 Mar 2015 10:21 AM
@CresentJade, no.
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
28 Mar 2015 10:21 AM
@Crescent

I literally JUST put this here.
Report Abuse
CrescentJade is not online. CrescentJade
Joined: 07 Jul 2010
Total Posts: 5494
28 Mar 2015 10:22 AM
O lol, i didnt read that.
Report Abuse
Proxemics is not online. Proxemics
Joined: 30 Oct 2013
Total Posts: 2542
28 Mar 2015 10:23 AM
local msg = Instance.new("Message", game.Workspace).Text = "Hello world"
wait(3)
msg:Destroy()


that's the most simple i can do
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
28 Mar 2015 10:31 AM
I suggest using abstract's method which is use a function to handle it

function message(text,duration)
local m = Instance.new("Message",workspace)
m.Text = text
wait(duration)
m:Destroy()
return
end

message("Hello World",5)
Report Abuse
CrescentJade is not online. CrescentJade
Joined: 07 Jul 2010
Total Posts: 5494
28 Mar 2015 10:35 AM
Or use some kind of function library..
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
28 Mar 2015 10:37 AM
-- Or you can do this derpy way.



game.Debris:AddItem(LoadLibrary'RbxUtility'.Create'Message'{Text = 'Lol', Parent = workspace}, 5)
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