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
 

How do I get an output with chatted?

Previous Thread :: Next Thread 
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
01 Jul 2012 11:02 AM
XD help, please? :P.
Report Abuse
MikeAnIkes is not online. MikeAnIkes
Joined: 13 Mar 2010
Total Posts: 1581
01 Jul 2012 11:02 AM
You mean like a script builder?
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
01 Jul 2012 11:03 AM
No, I'm making a game that includes the .Chatted event, but something broke, so I need an output on why.
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
01 Jul 2012 11:08 AM
Here's the script if you need it...

talkt = false
game.Players.PlayerAdded:connect(function(plr)
plr.Chatted:connect(function(msg)
if talkt == false then talkt = true
x = math.random(1,6)
h = Instance.new("Hint",plr.PlayerGui)
if x == 1 or x == 3 or x == 5 then h.Text = "i know u r but wat am i?"
plr.PlayerGui.Troll.Trollfaic.Visible = true
wait(1.5)
plr.PlayerGui.Troll.Trollfaic.Visible = false
wait(0.5)
plr.PlayerGui.Troll.Background.Trolltalk = true
plr.PlayerGui.Troll.Background.Trolltext = true
wait(1.5)
plr.PlayerGui.Troll.Background.Trolltalk = false
plr.PlayerGui.Troll.Background.Trolltext = false
elseif x == 2 or x == 4 or x == 6 then h.Text = "no "..msg
plr.PlayerGui.Troll.Trollfaic.Visible = true
wait(1.5)
plr.PlayerGui.Troll.Trollfaic.Visible = false
wait(0.5)
plr.PlayerGui.Troll.Background.Trolltalk = true
plr.PlayerGui.Troll.Background.Trolltext = true
wait(1.5)
plr.PlayerGui.Troll.Background.Trolltalk = false
plr.PlayerGui.Troll.Background.Trolltext = false
end wait(2.5) h:Destroy() talkt = false end end) end)
Report Abuse
MikeAnIkes is not online. MikeAnIkes
Joined: 13 Mar 2010
Total Posts: 1581
01 Jul 2012 11:08 AM
Oh, and you have to be online to chat, so you don't have an output... Hmmm... I mean, you could use coroutines or pcall to create an output, but you'd have to ask someone else. Sorry. You could also simulate the chatting in single player by using
function onChatted(msg)
if msg == "" then
--stoof
end
end
onChatted(required msg)
Report Abuse
Undeserved is not online. Undeserved
Joined: 29 Jun 2012
Total Posts: 160
01 Jul 2012 11:26 AM
Ok, the trick to testing admin commands is to use Pseudo servers.

In the script, be sure to make "Player" an admin. Add a spawn, then:

Tools>Test>Start Server

In the new window:
Tools>Test>Start Player

In the Server window, the output then open command bar and type this:

game.Players.Player:SetSuperSafeChat(false)

Then in the player window, say the command, then look in the server window and check the output.
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
01 Jul 2012 11:36 AM
Thanks, but I fixed it, XD.
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