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: Problem with preventing people from jumping

Previous Thread :: Next Thread 
TheBreadlnspector is not online. TheBreadlnspector
Joined: 30 Apr 2012
Total Posts: 2102
17 Jul 2015 09:12 AM
So I've tried renaming the weld, as well as changing sit to true and jump to false, and both work in test mode, but not in-game. When the weld name is changed in-game, the character can't jump from the seat, but when the character does jump, the entire object they are sitting in will jump with the character. Any ideas?

for _,v in pairs(script.Parent:GetChildren()) do
v.ChildAdded:connect(function(SeatWeld)
if SeatWeld.Name=="SeatWeld" then
SeatWeld.Name="AntiJump"
end
end)
end


TBI
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
17 Jul 2015 09:13 AM
I use this

http://wiki.roblox.com/index.php?title=Controlling_a_Player%27s_Character

In combination with RemoteEvents
Report Abuse
gooey333 is not online. gooey333
Joined: 24 Mar 2013
Total Posts: 1208
17 Jul 2015 09:19 AM
Or you could...

local Plr = GetThePlrWithSomething

Plr.Character.Humanoid.Changed:connect(function(Val)
if Val == "Jump" then
Plr.Character.Humanoid.Jump = false
end
end)
Report Abuse
TheBreadlnspector is not online. TheBreadlnspector
Joined: 30 Apr 2012
Total Posts: 2102
17 Jul 2015 09:22 AM
As I said, that way doesn't work...


TBI
Report Abuse
TheBreadlnspector is not online. TheBreadlnspector
Joined: 30 Apr 2012
Total Posts: 2102
17 Jul 2015 11:32 AM
bump


TBI
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
17 Jul 2015 12:46 PM
Ehm, the link I posted is everything you need?
Report Abuse
TheBreadlnspector is not online. TheBreadlnspector
Joined: 30 Apr 2012
Total Posts: 2102
18 Jul 2015 12:17 PM
It's complicated but I'll try.


TBI
Report Abuse
QuintinityZero is not online. QuintinityZero
Joined: 01 Oct 2008
Total Posts: 10618
18 Jul 2015 12:22 PM
Setting Humanoid.Jump to false when it changes to true _does_ work online. You must have done it wrong.
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