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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Chat test

Previous Thread :: Next Thread 
smarthimandrew is not online. smarthimandrew
Joined: 30 Jan 2010
Total Posts: 93
29 Mar 2012 08:15 PM
Does anyone know of a way to chat somthing while being able to see the print out of the scripts.

In other words tools-test-start player, but I just tried and you cant chat.
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
29 Mar 2012 08:17 PM
You'll have to unlock chat. I've made a plugin to do it. :D


local Active = false
local SG
local TB

PluginManager()
:CreatePlugin()
:CreateToolbar("Chat toolbar")
:CreateButton(
"Enable Chat",
"Click on this button to enable chat in studio.",
""
).Click:connect(function()
if not Active then
Active = true
CoreGui = game:GetService("CoreGui")
SG = Instance.new("ScreenGui",CoreGui)
SG.Name = "ChatterGui"
TB = Instance.new("TextBox",SG)
TB.BackgroundColor = BrickColor.new("Really black")
TB.BackgroundTransparency = 0.3
TB.TextColor3 = Color3.new(1,1,1)
TB.Size = UDim2.new(1,0,0,15)
TB.Position = UDim2.new(0,0,1,-15)
TB.BorderSizePixel = 0
TB.Name = "Chatbox"
TB.FontSize = "Size8"
TB.Text = [==[To chat click her or press the "/" key]==]
TB.TextXAlignment = "Left"
game:GetService("GuiService"):AddSpecialKey(Enum.SpecialKey.ChatHotkey)
game:GetService("GuiService").SpecialKeyPressed:connect(function(k)
if k.Name == "ChatHotkey" then
TB:CaptureFocus()
end
end)

TB.FocusLost:connect(function(EnterPressed)
if EnterPressed and TB.Text ~= "" then
TB.ClearTextOnFocus = true
NetworkServer = game:GetService("NetworkServer")
NetworkServer.archivable = false
coroutine.resume(coroutine.create(function() game:GetService("Players"):Chat(TB.Text) end))
else
TB.ClearTextOnFocus = false
end
TB.Text = [==[To chat click her or press the "/" key]==]
end)

else
SG:Destroy()
Active = false
end
end)
Report Abuse
BlueTaslem is not online. BlueTaslem
Joined: 11 May 2008
Total Posts: 11060
29 Mar 2012 08:18 PM
You can chat by using the :SetSuperSafeChat(true) on the player from the Command bar.
Or, on an online (actual) server, you can get output by reading the log files hidden in AppData/local/Roblox somewhere.

Next time, take these sorts of help questions to Scripting Helpers, because you'll get a better response there.
Report Abuse
smarthimandrew is not online. smarthimandrew
Joined: 30 Jan 2010
Total Posts: 93
29 Mar 2012 08:20 PM
Thanks
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