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: How do you force a player to put on a hat when they enter?

Previous Thread :: Next Thread 
DashaTheGhost is online. DashaTheGhost
Joined: 21 Mar 2015
Total Posts: 2806
21 Oct 2017 04:21 PM
I'm making an archeologist game, and I have a headlamp hat. Is there a way to force the players that join to wear the hat? Yes, it is in hat form.


"Wait, a minute.. This isn't a bathtub! YOU'RE MARINATING ME!!"
Report Abuse
pidgey is not online. pidgey
Joined: 16 Jan 2008
Total Posts: 2739
21 Oct 2017 04:22 PM
http://wiki.roblox.com/index.php?title=API:Class/Humanoid/AddAccessory
Report Abuse
DashaTheGhost is online. DashaTheGhost
Joined: 21 Mar 2015
Total Posts: 2806
21 Oct 2017 04:24 PM
I am quite new to scripting, could you explain a little bit? Sorry.


"Wait, a minute.. This isn't a bathtub! YOU'RE MARINATING ME!!"
Report Abuse
DashaTheGhost is online. DashaTheGhost
Joined: 21 Mar 2015
Total Posts: 2806
21 Oct 2017 04:28 PM
bump


"Wait, a minute.. This isn't a bathtub! YOU'RE MARINATING ME!!"
Report Abuse
DashaTheGhost is online. DashaTheGhost
Joined: 21 Mar 2015
Total Posts: 2806
21 Oct 2017 04:32 PM
bump2


"Wait, a minute.. This isn't a bathtub! YOU'RE MARINATING ME!!"
Report Abuse
DashaTheGhost is online. DashaTheGhost
Joined: 21 Mar 2015
Total Posts: 2806
21 Oct 2017 04:35 PM
*sigh
bump3


"Wait, a minute.. This isn't a bathtub! YOU'RE MARINATING ME!!"
Report Abuse
1000knives is online. 1000knives
Joined: 29 Sep 2012
Total Posts: 341
21 Oct 2017 04:35 PM
local accessory = blah.blah:Clone()
local humanoid = blah.blah

humanoid:AddAccessory(accessory)


Report Abuse
DashaTheGhost is online. DashaTheGhost
Joined: 21 Mar 2015
Total Posts: 2806
21 Oct 2017 04:39 PM
Where would be a suitable place to put the script and hat?


"Wait, a minute.. This isn't a bathtub! YOU'RE MARINATING ME!!"
Report Abuse
1000knives is online. 1000knives
Joined: 29 Sep 2012
Total Posts: 341
21 Oct 2017 04:42 PM
game.Players.PlayerAdded:connect(function(player)
local accessory = game.ReplicatedStorage.MyHat:Clone()
local humanoid = player.Character.Humanoid

humanoid:AddAccessory(accessory)
end)

-- i think this can be a script in workspace watwat
--yer hats in replicated storage froob


Report Abuse
DashaTheGhost is online. DashaTheGhost
Joined: 21 Mar 2015
Total Posts: 2806
21 Oct 2017 04:45 PM
thx u
yes i am very much a fr00b at scripting


"Wait, a minute.. This isn't a bathtub! YOU'RE MARINATING ME!!"
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