|
| 29 Aug 2014 06:35 PM |
mouse = script.Parent.Parent mouse.keyDown:connect(function(key) if key == "+" then hat = script.Parent.Parent.Character.Hat:clone() hat.Parent = script.Parent.Parent.Character end end)
Why no work ^^^^^^ U normally drop hats when u press + so I tried to make it so that when u press + it duplicates the hat and places it on your head again :/ |
|
|
| Report Abuse |
|
|
Agarest
|
  |
| Joined: 15 Feb 2014 |
| Total Posts: 25 |
|
| |
|
| |
|
Xeleum
|
  |
| Joined: 24 Oct 2010 |
| Total Posts: 3507 |
|
|
| 29 Aug 2014 06:46 PM |
| Not +, you only press + when you hold shift as well. So it would be "=" instead. However, Im pretty sure the = button is rpresented in a different way |
|
|
| Report Abuse |
|
|
FatalWing
|
  |
| Joined: 25 Aug 2011 |
| Total Posts: 1913 |
|
| |
|
|
| 29 Aug 2014 06:47 PM |
| Even with = it doesn't work |
|
|
| Report Abuse |
|
|
Xeleum
|
  |
| Joined: 24 Oct 2010 |
| Total Posts: 3507 |
|
|
| 29 Aug 2014 06:47 PM |
Also,
mouse = script.Parent.Parent? What? |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2014 06:48 PM |
| It's a normal script in the Starterpack :/ |
|
|
| Report Abuse |
|
|
Xeleum
|
  |
| Joined: 24 Oct 2010 |
| Total Posts: 3507 |
|
|
| 29 Aug 2014 06:49 PM |
| Im pretty sure you would use GetMouse() |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2014 06:49 PM |
| mouse = script.Parent.Parent:GetMouse()* |
|
|
| Report Abuse |
|
|
Xeleum
|
  |
| Joined: 24 Oct 2010 |
| Total Posts: 3507 |
|
|
| 29 Aug 2014 06:50 PM |
game.Players.PlayerAdded:connect(function(player) mouse = player:GetMouse() mouse.keyDown:connect(function(key) if key == "+" then hat = script.Parent.Parent.Character.Hat:clone() hat.Parent = script.Parent.Parent.Character end end) end)
Try that. |
|
|
| Report Abuse |
|
|
Agarest
|
  |
| Joined: 15 Feb 2014 |
| Total Posts: 25 |
|
|
| 29 Aug 2014 06:51 PM |
| Lel I posted something random of the thread. I was suppose to add it to something somewhere. |
|
|
| Report Abuse |
|
|
| |
|
Xeleum
|
  |
| Joined: 24 Oct 2010 |
| Total Posts: 3507 |
|
|
| 29 Aug 2014 06:54 PM |
| Is the hat in the character called "Hat"? Normally, they're called BeautifulHair, ClockWorkHeadphones, etc. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
oatsssss
|
  |
| Joined: 31 Jul 2014 |
| Total Posts: 170 |
|
|
| 29 Aug 2014 07:07 PM |
| This script will run into an error if the character doesn't have a hat. |
|
|
| Report Abuse |
|
|
| |
|
oatsssss
|
  |
| Joined: 31 Jul 2014 |
| Total Posts: 170 |
|
|
| 29 Aug 2014 11:55 PM |
| Not all players will have hats tho, good programmers account for all possible cases. |
|
|
| Report Abuse |
|
|