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 » Scripting Helpers
Home Search
 

Re: Force sit?

Previous Thread :: Next Thread 
Flosky is not online. 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
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
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 is not online. 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 is not online. 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 is not online. Flosky
Joined: 15 May 2011
Total Posts: 1815
03 Apr 2013 03:13 PM
Will that make it impossible to jump?
Report Abuse
Flosky is not online. 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
EchoReaper is online. EchoReaper
Joined: 14 Oct 2008
Total Posts: 4323
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 is not online. 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
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
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 is not online. 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 is not online. 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
EchoReaper is online. EchoReaper
Joined: 14 Oct 2008
Total Posts: 4323
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
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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