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 |
|
|
| |
|
|
| 07 Mar 2016 04:27 PM |
if not CanJump.Value and Character.HumanHumanoid.Jump then
Recommended username: ActuallyRay_revenge
|
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
|
| 07 Mar 2016 04:57 PM |
| What is CanJump? A variable? Show |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
| |
|