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: Chat in Solo Mode - Plugin

Previous Thread :: Next Thread 
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
28 Dec 2011 02:42 PM
Finally. Kind of modified script. Added a few things. Enjoy.


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
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
28 Dec 2011 02:43 PM
You.
Are.
My.
Hero.
Report Abuse
Aaaboy97 is not online. Aaaboy97
Joined: 05 Apr 2009
Total Posts: 6612
28 Dec 2011 02:43 PM
game.Players.Player:SetSuperSafeChat(false) ?
Report Abuse
Aaaboy97 is not online. Aaaboy97
Joined: 05 Apr 2009
Total Posts: 6612
28 Dec 2011 02:44 PM
oh wait, I'm thinking of Start Server ​> Start Player
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
28 Dec 2011 02:44 PM
TB.Text = [==[To chat click her or press the "/" key]==]

> To chat click her
> her
> rofl
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
28 Dec 2011 02:45 PM
Whoops. I'm sorry. But it works. I should give credit to Corecii for the original idea. I've refined it though. :P
Report Abuse
Vitouliss14 is not online. Vitouliss14
Joined: 18 Mar 2009
Total Posts: 7918
28 Dec 2011 02:56 PM
Nice Quenty!
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
29 Dec 2011 01:41 PM
Thought I'd bump this for everyone else to be able to use it.
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
29 Dec 2011 02:00 PM
Someone ask Sorcus to pin this.
Report Abuse
NVI is not online. NVI
Joined: 11 Jan 2009
Total Posts: 4744
29 Dec 2011 03:13 PM
I might actually make something that uses chat, now. Nice work.
Report Abuse
jango464 is not online. jango464
Joined: 30 Jul 2009
Total Posts: 4913
29 Dec 2011 04:32 PM
Let's see if this works for me.
Report Abuse
Megamatrixdude is not online. Megamatrixdude
Joined: 06 Dec 2009
Total Posts: 10939
29 Dec 2011 04:56 PM
*Is looking for the part that sends the chat*

*Is still looking*

*Can't find*


D:

But anyway, that looks really good! You've made life considerably easier for testing chat commands!

[Co creator of the Siggy Automator] [Now son, don't touch that cactus!]
Report Abuse
jango464 is not online. jango464
Joined: 30 Jul 2009
Total Posts: 4913
29 Dec 2011 04:56 PM
Epic.
Report Abuse
378 is not online. 378
Joined: 21 Nov 2009
Total Posts: 15
29 Jul 2013 11:35 AM
It doesn't seem to let me enter the chat I typed in.
Report Abuse
EliteJynx is not online. EliteJynx
Joined: 13 Apr 2011
Total Posts: 272
29 Jul 2013 11:50 AM
Doesn't let me chat ether.

Pressing "/" - nothing
Pressing "Enter" - nothing
Pressing anything - nothing

Doesn't work.

- EJ, k? -
Report Abuse
Maelstronomer is not online. Maelstronomer
Joined: 07 Jun 2008
Total Posts: 7649
29 Jul 2013 12:04 PM
Someone necrobumped this thread but it's relevant again now that it's hard to get chat in studio again. OP PLS RESPOND
Report Abuse
EliteJynx is not online. EliteJynx
Joined: 13 Apr 2011
Total Posts: 272
29 Jul 2013 02:11 PM
^

- EJ, k? -
Report Abuse
Maradar is not online. Maradar
Joined: 06 Mar 2012
Total Posts: 4478
29 Jul 2013 02:14 PM
i'd download it for admin cmd testing
but then you'd realize your
/foreveralone.png
so no :c
good work though

~Tanner L. Ghosen~
Report Abuse
khanglegos is not online. khanglegos
Joined: 21 Dec 2010
Total Posts: 156
09 Feb 2014 05:12 PM
When I click on the Enable Chat button, the console says Disconnected event due to exception! and it won't go in when I hit enter because of that :(
Report Abuse
cool12309 is not online. cool12309
Joined: 21 Sep 2008
Total Posts: 1442
09 Feb 2014 05:50 PM
Nice necro.. it's most likely erroring because the AddSpecialKey method is protected. I'm assuming. I don't feel like debugging it.
Report Abuse
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
09 Feb 2014 06:30 PM
Fixed it!

But I dont know if it will active any chat events.
Report Abuse
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
09 Feb 2014 08:01 PM
Forgot to post the link..


http://www.roblox.com/Chat-in-stuido-1-0-0-item?id=145662523
Report Abuse
oseday is not online. oseday
Joined: 27 Aug 2008
Total Posts: 1308
10 Feb 2014 11:54 AM
For anyone who is wondering how it chats people, it is this thing:

game:GetService("Players"):Chat(TB.Text)
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