miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 28 Dec 2011 07:36 PM |
I'm new to tools :D
Why won't this work?
wait() script.Parent.Equipped:connect(function(mouse) mouse.KeyDown:connect(function(key) if key:lower() == "j" then game.Players.LocalPlayer.Character.Humanoid.Seated:connect(function(sit) end) end end) end)
If Player types "j" they sit. Help? |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2011 07:43 PM |
script.Parent.Equipped:connect(function(mouse) mouse.KeyButton1Down:connect(function(key) key:lower() if key == "j" then script.Parent.Parent.Humanoid.Sit = true end end) end) |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2011 07:43 PM |
| Game.Players.LocalPlayer.Character.Humanoid.Sit = true |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2011 07:44 PM |
| Beat you to it, RATE. XD =3. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 28 Dec 2011 07:45 PM |
| Worked but if that's how you do it what's the point of the seated event? |
|
|
| Report Abuse |
|
|
pauljkl
|
  |
| Joined: 23 Oct 2008 |
| Total Posts: 9364 |
|
|
| 28 Dec 2011 07:47 PM |
| Seated event fires when a player sits |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 28 Dec 2011 09:04 PM |
| Yeah, I sit...Once again, why? |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2011 09:08 PM |
| Events are for when something HAPPENS. Methods are to DO something. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
| |
|