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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 28 Mar 2015 09:50 AM |
| Instance.new("Message",game.Workspace).Text = "Hello world" |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 28 Mar 2015 09:51 AM |
| Funki you forgot to destroy it... |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 28 Mar 2015 09:56 AM |
look, im here to attempt help... I obviously don't have 4 years of wumbology. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
| |
|
|
| 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 |
|
|
|
| 28 Mar 2015 10:19 AM |
Can you do this?(cant test)
game.Debris:AddItem((Instance.new("Message",workspace).Text="Hi"),5) |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
| |
|
|
| 28 Mar 2015 10:21 AM |
@Crescent
I literally JUST put this here. |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|
|
| 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 |
|
|
|
| 28 Mar 2015 10:35 AM |
| Or use some kind of function library.. |
|
|
| Report Abuse |
|
|
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 |
|
|