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 » Scripting Helpers
Home Search
 

Re: Script that checks for hats?

Previous Thread :: Next Thread 
ryanxm is not online. ryanxm
Joined: 02 May 2009
Total Posts: 691
13 Aug 2012 03:40 PM
Do any of you know what I would use to find if a player had a specific hat on? Thanks for the help.
Report Abuse
Jayskull900 is not online. Jayskull900
Joined: 26 Nov 2006
Total Posts: 590
13 Aug 2012 03:43 PM
Is it supposed to check when they enter the game?
Report Abuse
ryanxm is not online. ryanxm
Joined: 02 May 2009
Total Posts: 691
13 Aug 2012 03:44 PM
No
Report Abuse
Jayskull900 is not online. Jayskull900
Joined: 26 Nov 2006
Total Posts: 590
13 Aug 2012 03:46 PM
Alright, yes theres a way to do this and i'll help, but when is it supposed to check?
Report Abuse
ryanxm is not online. ryanxm
Joined: 02 May 2009
Total Posts: 691
13 Aug 2012 03:46 PM
When the player touches a brick
Report Abuse
Jayskull900 is not online. Jayskull900
Joined: 26 Nov 2006
Total Posts: 590
13 Aug 2012 03:50 PM
script.Parent.Touched:connect(function(hit)
if not hit.Parent:findFirstChild("Hat") then return end
h = hit.Parent:findFirstChild("Hat")
if h.Name == "Hat name here" then
--do stuff
end
end)
Report Abuse
ryanxm is not online. ryanxm
Joined: 02 May 2009
Total Posts: 691
13 Aug 2012 03:50 PM
Thank you, good sir
Report Abuse
Jayskull900 is not online. Jayskull900
Joined: 26 Nov 2006
Total Posts: 590
13 Aug 2012 03:52 PM
No problem
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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