of     1   

zeldafan8837
#40319261Tuesday, January 04, 2011 5:16 AM GMT

How are we supposed to make a script that ban everyone with their name started with what you want? Example: Ban "zelda" then people with their name started with zelda will get banned. Just wondering
Scriptoar
#40319283Tuesday, January 04, 2011 5:16 AM GMT

Use the PlayerAdded
Nightlizard
#40319335Tuesday, January 04, 2011 5:18 AM GMT

string.sub?
Nightlizard
#40319343Tuesday, January 04, 2011 5:19 AM GMT

also guest banning scripts are not allowed.
Scriptoar
#40319371Tuesday, January 04, 2011 5:20 AM GMT

@Night Wouldn't he use string.match()?
Nightlizard
#40319416Tuesday, January 04, 2011 5:21 AM GMT

string.match searches for the characters in a string string.sub will search the beggining, string.sub(1, 4) will search the first four letters.
Scriptoar
#40319438Tuesday, January 04, 2011 5:22 AM GMT

Oh, right. He wouldn't want to search for the whole name.
4camera
#40319478Tuesday, January 04, 2011 5:24 AM GMT

Reminder: Do not ban Guests with this script, or you will be banned... from Roblox. ban = string.lower("zelda") --ban phrase must be lowercase length = ban:len() function check(player) if player.Name == string.sub(ban, 1, length) then player:remove() end end game.Players.PlayerAdded:connect(check(player))
4camera
#40319509Tuesday, January 04, 2011 5:25 AM GMT

Dang, messed up. ban = string.lower("zelda") --ban phrase must be lowercase length = ban:len() function check(player) if string.sub(player.name, 1, length) == ban then player:remove() end end game.Players.PlayerAdded:connect(check(player))
blueymaddog
#40320612Tuesday, January 04, 2011 6:21 AM GMT

ban = "zelda" --ban phrase must be lowercase length = ban:len() function check(player) if string.lower(string.sub(player.name, 1, length)) == ban then player:remove() end end game.Players.PlayerAdded:connect(check(player))

    of     1