Mahdioh
|
  |
| Joined: 28 Jul 2012 |
| Total Posts: 56 |
|
|
| 06 Jan 2015 11:15 AM |
| Someone was causing some trouble in my game's chat. I was looking to ban him, but I think muting him should be enough to keep the peace. I've looked up several scripts that enable/disable supersafe chat, but none seem to work. Is this still possible to do or have recent updates made this feature unable to be toggled? |
|
|
| Report Abuse |
|
|
|
| 06 Jan 2015 11:19 AM |
| Unfortunately setting SuperSafeChat with the core ROBLOX Chat is locked and not allowed, you would have to make your own chat for that. I'm sure you can find a few that have mute features. |
|
|
| Report Abuse |
|
|
Mahdioh
|
  |
| Joined: 28 Jul 2012 |
| Total Posts: 56 |
|
|
| 06 Jan 2015 11:27 AM |
I see... Thanks for the answer!
In case I do have to ban him, is there a way to do this that would get rid of players before they have a chance to chat? |
|
|
| Report Abuse |
|
|
iondriver
|
  |
| Joined: 18 Nov 2012 |
| Total Posts: 757 |
|
|
| 06 Jan 2015 11:29 AM |
| use the onPlayerAdded event. |
|
|
| Report Abuse |
|
|
|
| 06 Jan 2015 11:37 AM |
There is no event called onPlayerAdded, as far as I know.
I think you are wanting PlayerAdded. |
|
|
| Report Abuse |
|
|
iondriver
|
  |
| Joined: 18 Nov 2012 |
| Total Posts: 757 |
|
| |
|
Mahdioh
|
  |
| Joined: 28 Jul 2012 |
| Total Posts: 56 |
|
|
| 06 Jan 2015 11:43 AM |
I actually found lots of scripts that use PlayerAdded and attempt to :Remove() the player, but nothing seems to happen. Even when I try banning my own name on an actual server, still nothing.
Sorry for my cluelessness. There's still lots of things I don't know about scripting yet. XD |
|
|
| Report Abuse |
|
|
iondriver
|
  |
| Joined: 18 Nov 2012 |
| Total Posts: 757 |
|
|
| 06 Jan 2015 11:48 AM |
Use :Kick()
http://wiki.roblox.com/index.php?title=Kick |
|
|
| Report Abuse |
|
|
Mahdioh
|
  |
| Joined: 28 Jul 2012 |
| Total Posts: 56 |
|
|
| 06 Jan 2015 12:05 PM |
Ah, Kick definitely looks like the thing I need. I found this script and replaced :Remove() with :Kick(). Nothing happened, so I probably did something wrong. Unless it is something that HAS to be voted on, but that doesn't seem like the case.
banned = {"Mahdioh"} function oE(player) if player.Name == banned then player:Kick() end end game.Players.PlayerAdded:connect(oE) |
|
|
| Report Abuse |
|
|
iondriver
|
  |
| Joined: 18 Nov 2012 |
| Total Posts: 757 |
|
|
| 06 Jan 2015 12:08 PM |
Your going to have to iterate through the table
banned = {"Mahdioh"} function oE(player)
for i = 1, #banned do
if player.Name == banned[i] then player:Kick() end end game.Players.PlayerAdded:connect(oE)
I know I didn't use pairs or Ipairs, but I just like the normal for loop.
|
|
|
| Report Abuse |
|
|
iondriver
|
  |
| Joined: 18 Nov 2012 |
| Total Posts: 757 |
|
|
| 06 Jan 2015 12:08 PM |
Wait I forgot an end
banned = {"Mahdioh"} function oE(player)
for i = 1, #banned do
if player.Name == banned[i] then player:Kick() end end end game.Players.PlayerAdded:connect(oE)
|
|
|
| Report Abuse |
|
|
Mahdioh
|
  |
| Joined: 28 Jul 2012 |
| Total Posts: 56 |
|
|
| 06 Jan 2015 12:12 PM |
| Excellent! Works great! Thanks everyone! |
|
|
| Report Abuse |
|
|
iondriver
|
  |
| Joined: 18 Nov 2012 |
| Total Posts: 757 |
|
| |
|