|
| 24 Jul 2013 03:10 PM |
I'm making a kick script and i were wondering if there's a way to make a public message appear, one that everyone can see. Doesn't matter if i have to put an idle gui in PlayerGui. |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2013 03:11 PM |
| Instance.new("Message",Workspace).Text = "TextHere" |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2013 03:44 PM |
| There's no message object in the insert menu... |
|
|
| Report Abuse |
|
|
Absurdism
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 2568 |
|
|
| 24 Jul 2013 03:48 PM |
| Highlight Workspace, then search the insert menu. |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2013 03:53 PM |
My bad, thanks. But i was looking for somthing like a small gui window with some text in it |
|
|
| Report Abuse |
|
|
Inviting
|
  |
| Joined: 05 Apr 2011 |
| Total Posts: 99 |
|
|
| 24 Jul 2013 03:54 PM |
| A message or a hint would be a whole lot easier. |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2013 03:55 PM |
| You'll have to make a Gui in each player's PlayerGui. |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2013 03:57 PM |
| Yeah that's not a problem, but how to i make all of them say the same thing at once? |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2013 04:04 PM |
local Gui = Game.Lighting["Message"] -- Change this to your Gui. Inside the Gui name the TextLabel you want as the 'message' to "Content".
function Message(String) for Index, Player in pairs(Game.Players:GetPlayers()) do coroutine.wrap(function() local Message = Gui:Clone() Message:FindFirstChild("Content", true).Text = String Message.Parent = Player.PlayerGui end)() end end
Message("Hi") |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2013 05:02 PM |
Is it possible to add a timer to this? So it shows up when someone gets kicked then goes invisible after a cuple of seconds |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2013 05:03 PM |
local Gui = Game.Lighting["Message"] -- Change this to your Gui. Inside the Gui name the TextLabel you want as the 'message' to "Content".
function Message(String, Time) for Index, Player in pairs(Game.Players:GetPlayers()) do coroutine.wrap(function() local Message = Gui:Clone() Message:FindFirstChild("Content", true).Text = String Message.Parent = Player.PlayerGui Game:GetService("Debris"):AddItem(Message, Time) end)() end end
Message("Hi", 4) |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2013 05:43 PM |
I keep messing this up.. Could you take a look at this script and tell me how to make it work properly? The output doesn't give me any errors.
local Gui = game.Lighting["Message"]
function Message(String) for Index, Player in pairs(Game.Players:GetPlayers()) do coroutine.wrap(function() local Message = Gui:Clone() Message:FindFirstChild("Content", true).Text = String Message.Parent = Player.PlayerGui Game:GetService("Debris"):AddItem(Message, Time) end)() end end
Message = usertokick .."Have been kicked because" .. script.Parent.KickUsername.Text function kick() local Gui = Game.Lighting["Message"]
if script.Parent.Parent.Username.Text == "" then else usertokick = script.Parent.Parent.Username.Text
ready = game.Players:FindFirstChild(usertokick):Remove() function Message(String, Time) for Index, Player in pairs(Game.Players:GetPlayers()) do coroutine.wrap(function() local Message = Gui:Clone() Message:FindFirstChild("Content", true).Text = String Message.Parent = Player.PlayerGui end)() end end Message(usertokick .."Have been kicked because" .. script.Parent.KickUsername.Text, 10) end end
script.Parent.MouseButton1Click:connect(kick)
|
|
|
| Report Abuse |
|
|
|
| 24 Jul 2013 05:48 PM |
local Gui = Game.Lighting["Message"]
if script.Parent.Parent.Username.Text == "" then else usertokick = script.Parent.Parent.Username.Text
ready = game.Players:FindFirstChild(usertokick):Remove() function Message(String, Time) for Index, Player in pairs(Game.Players:GetPlayers()) do coroutine.wrap(function() local Message = Gui:Clone() Message:FindFirstChild("Content", true).Text = String Message.Parent = Player.PlayerGui end)() end end Message(usertokick .."Have been kicked because" .. script.Parent.KickUsername.Text, 10) end
script.Parent.MouseButton1Click:connect(kick)
|
|
|
| Report Abuse |
|
|
| |
|
Ludici
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 640 |
|
|
| 24 Jul 2013 06:44 PM |
-_______________- Then if you want everyone to see it, then why put a gui in each player? Just place it in StaterGui
postCount=GetService("NetworkService"):findFirstChild("postCount") postCount = postCount+1 |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2013 06:55 PM |
| I have.. but it's got to change often... which i'm not sure how to do if i have to do it to every player at once. |
|
|
| Report Abuse |
|
|