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: can you force a player to wear a hat?

Previous Thread :: Next Thread 
Festivereinhard2 is online. Festivereinhard2
Joined: 08 Dec 2015
Total Posts: 587
20 May 2016 06:07 PM
what i mean is that is there a way to force a hat to stay on a players head, even when he presses =.
Report Abuse
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
20 May 2016 06:08 PM
Yes, aggressively type, like so:

YOU WILL WEAR THE HAT OR YOU WILL BE EXILED FROM MY GAME, YOU INCOMPETENT IMBECILE!!!
Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
20 May 2016 06:10 PM
I prefer the Hit and Hat method, developed by Harry and Henry in Hertfordshire, Holland.





Private Drive - Residents Only
Report Abuse
Festivereinhard2 is online. Festivereinhard2
Joined: 08 Dec 2015
Total Posts: 587
20 May 2016 06:21 PM
so im guessing thats a no
Report Abuse
KeiRoMultiverse is not online. KeiRoMultiverse
Joined: 16 Aug 2013
Total Posts: 1896
20 May 2016 06:22 PM
Well my game already had a function that puts a specific hat on players, so I just simply bound UIS = to the same function.
Report Abuse
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
20 May 2016 06:26 PM
--server script--
workspace.ChildAdded:connect(function(thing)
if thing:IsA'WhateverTheNewClassNameForHatsIs'then
thing:Destroy()
end
end)
------

--local script--
game:GetService("UserInputService").InputBegan:connect(function(iO,gPE)
if not gPE then
if iO.KeyCode == Enum.KeyCode.Equal? then -- not sure if it's called equal or not
--add hat
end
end
end)
-----
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
20 May 2016 06:29 PM
http://wiki.roblox.com/index.php?title=Prevent_hat_dropping


Report Abuse
GetTheJobDone is not online. GetTheJobDone
Joined: 20 Apr 2016
Total Posts: 3008
20 May 2016 06:35 PM
I mean that works I guess. I'm lazy so I'd just use ChildAdded and re-parent it to the player's character.


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