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 » Scripting Helpers
Home Search
 

Re: Public message

Previous Thread :: Next Thread 
quickfrozen is not online. quickfrozen
Joined: 28 Dec 2009
Total Posts: 382
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
Iterations is not online. Iterations
Joined: 22 Jul 2013
Total Posts: 751
24 Jul 2013 03:11 PM
Instance.new("Message",Workspace).Text = "TextHere"
Report Abuse
quickfrozen is not online. quickfrozen
Joined: 28 Dec 2009
Total Posts: 382
24 Jul 2013 03:44 PM
There's no message object in the insert menu...
Report Abuse
Absurdism is not online. Absurdism
Joined: 18 Jul 2013
Total Posts: 2568
24 Jul 2013 03:48 PM
Highlight Workspace, then search the insert menu.
Report Abuse
quickfrozen is not online. quickfrozen
Joined: 28 Dec 2009
Total Posts: 382
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 is not online. 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
Iterations is not online. Iterations
Joined: 22 Jul 2013
Total Posts: 751
24 Jul 2013 03:55 PM
You'll have to make a Gui in each player's PlayerGui.
Report Abuse
quickfrozen is not online. quickfrozen
Joined: 28 Dec 2009
Total Posts: 382
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
Iterations is not online. Iterations
Joined: 22 Jul 2013
Total Posts: 751
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
quickfrozen is not online. quickfrozen
Joined: 28 Dec 2009
Total Posts: 382
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
Iterations is not online. Iterations
Joined: 22 Jul 2013
Total Posts: 751
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
quickfrozen is not online. quickfrozen
Joined: 28 Dec 2009
Total Posts: 382
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
quickfrozen is not online. quickfrozen
Joined: 28 Dec 2009
Total Posts: 382
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
quickfrozen is not online. quickfrozen
Joined: 28 Dec 2009
Total Posts: 382
24 Jul 2013 06:22 PM
^
Report Abuse
Ludici is not online. 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
quickfrozen is not online. quickfrozen
Joined: 28 Dec 2009
Total Posts: 382
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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