| |
|
|
| 01 Jul 2012 11:02 AM |
| You mean like a script builder? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 01 Jul 2012 11:36 AM |
| Thanks, but I fixed it, XD. |
|
|
| Report Abuse |
|
|