Flosky
|
  |
| Joined: 15 May 2011 |
| Total Posts: 1815 |
|
|
| 01 Apr 2013 12:20 PM |
| I need a pad that makes you sit, and you can't jump again until you touch another pad. Can someone help me? Idk how to write a script that forces you to do that.. |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2013 12:29 PM |
while wait() do player.Character.Humanoid.Sit = true end
--I think that's how you make a character sit, I'm not sure. |
|
|
| Report Abuse |
|
|
Flosky
|
  |
| Joined: 15 May 2011 |
| Total Posts: 1815 |
|
|
| 03 Apr 2013 03:02 PM |
| But that won't make them stay sitting until they hit the other pad. That's what I need, |
|
|
| Report Abuse |
|
|
dekkonot
|
  |
| Joined: 22 Dec 2010 |
| Total Posts: 6685 |
|
|
| 03 Apr 2013 03:03 PM |
Ummm...
local sitting = true
while wait() do if sitting then player.Character.Humanoid.Sit = true end end
|
|
|
| Report Abuse |
|
|
Flosky
|
  |
| Joined: 15 May 2011 |
| Total Posts: 1815 |
|
|
| 03 Apr 2013 03:13 PM |
| Will that make it impossible to jump? |
|
|
| Report Abuse |
|
|
Flosky
|
  |
| Joined: 15 May 2011 |
| Total Posts: 1815 |
|
|
| 03 Apr 2013 03:17 PM |
| I tested that and it doesn't even make you sit.. |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2013 03:54 PM |
"But that won't make them stay sitting until they hit the other pad. That's what I need,"
Are you having a pad system that transports you across a gap or something that you don't want them to be able to move off of? If you don't require them to sit, you could use Humanoid.WalkSpeed = 0 |
|
|
| Report Abuse |
|
|
Flosky
|
  |
| Joined: 15 May 2011 |
| Total Posts: 1815 |
|
|
| 03 Apr 2013 06:29 PM |
| Well I got a button that makes you jump so that part is good, I just need a button that'll make you sit, and not be able to jump. When you touch the jump button it'll MAKE you jump, therefore cancelling the script that makes you sit. |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2013 06:36 PM |
| There is no such thing that will make you sit and not be able to jump. |
|
|
| Report Abuse |
|
|
3rdblox
|
  |
| Joined: 09 Dec 2012 |
| Total Posts: 4741 |
|
|
| 03 Apr 2013 08:11 PM |
@dog I think there may be... It may require multiple scripts though. I don't know much scripting, the buttondown event is quite out of reach for me, so I'll give my english description.
When a player touches this "Sitpad", the game will insert a script that means whenever the player who touched the pad presses their space bar, they will have their jumping property set to false. When the player touches the "Unsitpad", the script will be removed. |
|
|
| Report Abuse |
|
|
3rdblox
|
  |
| Joined: 09 Dec 2012 |
| Total Posts: 4741 |
|
|
| 03 Apr 2013 08:14 PM |
| Oh, and of course, hitting the sit pad makes your sit property true, hitting the space bar also makes it true (To remove any possible bugs) and hitting the unsit makes sit false. |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2013 08:24 PM |
"When you touch the jump button it'll MAKE you jump"
You can't control where you move when you're sitting. Can you explain more so I can give you a final answer? |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2013 08:51 PM |
| The only way to make you not be able to jump is either re-parenting the controller service to lighting or destroying it |
|
|
| Report Abuse |
|
|