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: Ban people with certain hairs?

Previous Thread :: Next Thread 
CocoKitten127 is not online. CocoKitten127
Joined: 25 Jun 2012
Total Posts: 137
07 Jul 2012 10:57 PM
Is it possible, and if it is I will pay 250 robux for a WORKING script.
Report Abuse
noobertuber is not online. noobertuber
Joined: 16 Jan 2007
Total Posts: 2321
07 Jul 2012 11:18 PM
No one here will give you the script (barring highly unusual circumstances). The only response you are likely to get is flames.

Yes, it is possible. It involves comparing the MeshId of hat meshes to a table. Go to scripting helpers for more.


-God Bless-
Report Abuse
ZackZak is not online. ZackZak
Joined: 26 Jul 2009
Total Posts: 2811
07 Jul 2012 11:52 PM
flames.
Report Abuse
lombardo2 is not online. lombardo2
Joined: 30 Nov 2008
Total Posts: 1604
08 Jul 2012 12:35 AM
I'm a highly unusual circumstance:

bannedhats = {"http://www.roblox.com/asset/?id=19999424"} --We all hate shag

game.Players.PlayerAdded:connect(function(ply)
char = ply.CharacterAdded:wait()
for k,v in pairs(char:GetChildren()) do
if v:IsA("Hat") then
local mesh = v:FindFirstChild("Mesh",true)
for a,b in pairs(bannedhats) do
if mesh.MeshId == b then
ply:Destroy()
end
end
end
end
end)

Maybe some errors you know
Report Abuse
Combrad is not online. Combrad
Joined: 18 Jul 2009
Total Posts: 11025
08 Jul 2012 03:21 AM
@Lombard, why not ban them by there in-game names.
#1 She'll find it easier to get the names, rather than assets.
#2 It requires a shorter script.
Report Abuse
Ozzypig is not online. Ozzypig
Joined: 27 Mar 2008
Total Posts: 4906
08 Jul 2012 03:59 AM
Lombardo won the game. I hate that shirt. It's typical 13-yr-old boy hair who is too awkward to get a nice haircut.
Report Abuse
Ozzypig is not online. Ozzypig
Joined: 27 Mar 2008
Total Posts: 4906
08 Jul 2012 04:00 AM
Did I say shirt? I meant hat.
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
08 Jul 2012 04:01 AM
@Ozzypig

:O

I was about to correct you, when I went to look at the link and when I went back to the thread, I noticed you had corrected yourself...

:(
Report Abuse
iCookieNL is not online. iCookieNL
Joined: 24 May 2009
Total Posts: 1103
08 Jul 2012 04:01 AM
@ozzy

Did you mean 'Hat' instead of 'Shirt' ?
Report Abuse
Avolition is not online. Avolition
Joined: 20 Apr 2011
Total Posts: 708
08 Jul 2012 05:59 AM
@Ozzy

Why'd you say shirt? You mean hat..?
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
08 Jul 2012 06:07 AM
Ad everybody leaps on ozzy for a mistake.
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
08 Jul 2012 06:32 AM
y did u do that lawmbordey!!!1

she's just using it to ban boys from her game...look at her profile.
Report Abuse
EMAN381 is not online. EMAN381
Joined: 27 Nov 2007
Total Posts: 4300
08 Jul 2012 07:10 AM
@lombard

:FindFirstChild(Object,true)?!!!!!!!!!!

Oh my god, I have just learned something really useful today.
Report Abuse
wizardspell is not online. wizardspell
Joined: 12 Aug 2011
Total Posts: 10168
08 Jul 2012 07:12 AM
:o
Report Abuse
nightname is not online. nightname
Joined: 10 Jun 2008
Total Posts: 8960
08 Jul 2012 07:18 AM
Banning boys? Haha! This is absolutely hilarious. Well, I guess you can expect this from prepubescent girls.
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
08 Jul 2012 07:39 AM
@eman

only now you knew that existed? ¬_¬
Report Abuse
EMAN381 is not online. EMAN381
Joined: 27 Nov 2007
Total Posts: 4300
08 Jul 2012 08:00 AM
@trapping

Yes..? I've never saw anybody use it ever until this day, July 8th, 2012.
Report Abuse
1waffle1 is not online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
08 Jul 2012 08:34 AM
.. Too long. Edit:

    workspace.DescendantAdded:connect(function(d)
        local m = d:FindFirstChild("Mesh", true)
        local p = game.Players:playerFromCharacter(d) or game.Players:PlayerFromCharacter(d.Parent)
        if p then
            for _, v in ipairs(bannedhats) do
                p.Parent = (p.Parent and m ~= v or nil)
            end
        end
    end)
Report Abuse
1waffle1 is not online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
08 Jul 2012 08:35 AM
    workspace.ChildAdded:connect(function(d)
        local m = d:FindFirstChild("Mesh", true)
        local p = game.Players:playerFromCharacter(d)
        if p then
            for _, v in ipairs(bannedhats) do
                p.Parent = (p.Parent and m ~= v or nil)
            end
        end
    end)

what was I thinking.
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