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: Enable supersafe chat for specific players?

Previous Thread :: Next Thread 
Mahdioh is not online. 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
lawfornoobs is not online. lawfornoobs
Joined: 09 Jul 2011
Total Posts: 5
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 is not online. 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 is not online. iondriver
Joined: 18 Nov 2012
Total Posts: 757
06 Jan 2015 11:29 AM
use the onPlayerAdded event.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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 is not online. iondriver
Joined: 18 Nov 2012
Total Posts: 757
06 Jan 2015 11:39 AM
Brainfart

Yup that is it.
Report Abuse
Mahdioh is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. Mahdioh
Joined: 28 Jul 2012
Total Posts: 56
06 Jan 2015 12:12 PM
Excellent! Works great! Thanks everyone!
Report Abuse
iondriver is not online. iondriver
Joined: 18 Nov 2012
Total Posts: 757
06 Jan 2015 12:15 PM
No Problem
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