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: attempt to index field 'Jump' (a boolean value)

Previous Thread :: Next Thread 
unroot is not online. unroot
Joined: 18 Sep 2009
Total Posts: 1114
07 Mar 2016 04:16 PM
^

I have no idea why it's returning this, I tried removing .Value on both of them and nothing seems to work.

Character.HumanHumanoid.Changed:connect(function()
if CanJump.Value == false and Character.HumanHumanoid.Jump.Value == true then
Character.HumanHumanoid.Jump = false
else
Character.HumanHumanoid.Jump = true

CanJump = false
wait(2)
CanJump = true
end
end)


#code print("yolo" .. string.rep("o", math.huge))
Report Abuse
Designitect is not online. Designitect
Joined: 24 Feb 2008
Total Posts: 26
07 Mar 2016 04:26 PM
bump
Report Abuse
ray_revenge is not online. ray_revenge
Joined: 18 Feb 2011
Total Posts: 453
07 Mar 2016 04:27 PM
if not CanJump.Value and Character.HumanHumanoid.Jump then


Recommended username: ActuallyRay_revenge


Report Abuse
unroot is not online. unroot
Joined: 18 Sep 2009
Total Posts: 1114
07 Mar 2016 04:31 PM
Still, the same error. :|


#code print("yolo" .. string.rep("o", math.huge))
Report Abuse
Tynezz is not online. Tynezz
Joined: 28 Apr 2014
Total Posts: 4945
07 Mar 2016 04:33 PM
Character.HumanHumanoid.Changed:connect(function()
if CanJump.Value == false and Character.HumanHumanoid.Jump.Value == true then
Character.HumanHumanoid.Jump.Value = false
else
Character.HumanHumanoid.Jump.Value = true

CanJump = false
wait(2)
CanJump = true
end
end)
Report Abuse
unroot is not online. unroot
Joined: 18 Sep 2009
Total Posts: 1114
07 Mar 2016 04:41 PM
@Tynezz

Thanks a ton! It at least progresses a little bit further, but then returns this error:
attempt to index field 'Jump' (a boolean value)

on this line:
Character.HumanHumanoid.Jump.Value = true


#code print("yolo" .. string.rep("o", math.huge))
Report Abuse
solvar is not online. solvar
Joined: 22 May 2011
Total Posts: 149
07 Mar 2016 04:47 PM
There is no value inside the jump in humanoid.

Also you have CanJump.Value, and if I'm reading this correctly, CanJump is a variable in your script, which means there should be no .value.
Report Abuse
unroot is not online. unroot
Joined: 18 Sep 2009
Total Posts: 1114
07 Mar 2016 04:50 PM
http://wiki.roblox.com/index.php?title=API:Class/Humanoid/Jump

Also, CanJump is a boolvalue stored in a folder. I did this because it has to be accessed from multiple scripts on the client.


#code print("yolo" .. string.rep("o", math.huge))
Report Abuse
solvar is not online. solvar
Joined: 22 May 2011
Total Posts: 149
07 Mar 2016 04:53 PM
Okay then you have to add the .Value to the other canjump

And I know my stuff don't worry, no.Value for the jump in the humanoid.
Report Abuse
unroot is not online. unroot
Joined: 18 Sep 2009
Total Posts: 1114
07 Mar 2016 04:54 PM
Even if I do that, I get the initial error I was stuck with.


#code print("yolo" .. string.rep("o", math.huge))
Report Abuse
Tynezz is not online. Tynezz
Joined: 28 Apr 2014
Total Posts: 4945
07 Mar 2016 04:57 PM
What is CanJump? A variable? Show
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
07 Mar 2016 04:58 PM
Wouldn't it be so much easier just to set the JumpPower to 0, then wait a certain amount of seconds, then set it back to original?
Report Abuse
ray_revenge is not online. ray_revenge
Joined: 18 Feb 2011
Total Posts: 453
07 Mar 2016 05:01 PM
Character.HumanHumanoid.Changed:connect(function()
if CanJump.Value == false then
Character.HumanHumanoid.Jump = false
else
Character.HumanHumanoid.Jump = true

CanJump.Value = false
wait(2)
CanJump.Value = true
end
end)



Recommended username: LearnedRay_revenge


Report Abuse
unroot is not online. unroot
Joined: 18 Sep 2009
Total Posts: 1114
07 Mar 2016 05:01 PM
@62

Ffs. I forgot JumpPower was a thing.
Kill me. Nevertheless, thanks a ton. Now I can sleep easy.


#code print("yolo" .. string.rep("o", math.huge))
Report Abuse
unroot is not online. unroot
Joined: 18 Sep 2009
Total Posts: 1114
07 Mar 2016 05:06 PM
Yep, that fixed it. There goes 30 minutes of my life that I'm never getting back. ;-;


#code print("yolo" .. string.rep("o", math.huge))
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
07 Mar 2016 05:58 PM
Np! :P
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