peIicans
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 1148 |
|
|
| 22 Jan 2017 12:51 PM |
plr = game.Players.LocalPlayer
plr.Humanoid.Jumping:connect(function() print("sdfgfdsas") end)
|
|
|
| Report Abuse |
|
|
|
| 22 Jan 2017 12:52 PM |
uhhhh no
jumping isnt an event |
|
|
| Report Abuse |
|
|
qqtt991
|
  |
| Joined: 14 Dec 2007 |
| Total Posts: 1387 |
|
|
| 22 Jan 2017 12:54 PM |
| Use the wiki. It's not that hard. |
|
|
| Report Abuse |
|
|
peIicans
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 1148 |
|
|
| 22 Jan 2017 01:00 PM |
why doesnt this work
plr = game.Players.LocalPlayer
while wait() do jumped() end
function jumped() if plr.Humanoid.Jump == true then print("blah") end end
|
|
|
| Report Abuse |
|
|
Wrathsong
|
  |
| Joined: 05 Jul 2012 |
| Total Posts: 22393 |
|
|
| 22 Jan 2017 01:07 PM |
http://wiki.roblox.com/index.php?title=API:Class/Humanoid/Jumping
It is, as is UserInputService.JumpRequest
Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx |
|
|
| Report Abuse |
|
|
Wrathsong
|
  |
| Joined: 05 Jul 2012 |
| Total Posts: 22393 |
|
|
| 22 Jan 2017 01:07 PM |
@pelicans; define the function BEFORE the loop..
Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx |
|
|
| Report Abuse |
|
|
peIicans
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 1148 |
|
|
| 22 Jan 2017 01:10 PM |
it dont matter if the loop is b4 it
|
|
|
| Report Abuse |
|
|
Wrathsong
|
  |
| Joined: 05 Jul 2012 |
| Total Posts: 22393 |
|
|
| 22 Jan 2017 01:12 PM |
ok then have fun debugging
Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx |
|
|
| Report Abuse |
|
|
Wrathsong
|
  |
| Joined: 05 Jul 2012 |
| Total Posts: 22393 |
|
|
| 22 Jan 2017 01:14 PM |
and Humanoid isn't a property of player, it's a property of player.Character
Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx |
|
|
| Report Abuse |
|
|
qqtt991
|
  |
| Joined: 14 Dec 2007 |
| Total Posts: 1387 |
|
|
| 23 Jan 2017 12:14 AM |
Humanoid isn't a property... It's an instance...
|
|
|
| Report Abuse |
|
|
tbnj123
|
  |
| Joined: 29 Oct 2010 |
| Total Posts: 443 |
|
| |
|
|
| 23 Jan 2017 02:57 AM |
local Player = game.Players.LocalPlayer local Character; repeat wait(); Character = Player.Character; until Character; local hum = Character:WaitForChild('Humanoid')
http://wiki.roblox.com/index.php?title=API:Enum/HumanoidStateType http://wiki.roblox.com/index.php?title=API:Class/Humanoid/Jumping http://wiki.roblox.com/index.php?title=API:Class/Instance/Changed |
|
|
| Report Abuse |
|
|
Wrathsong
|
  |
| Joined: 05 Jul 2012 |
| Total Posts: 22393 |
|
|
| 23 Jan 2017 05:24 AM |
yes, child, my bad - the point is it's not in the player like he tried to get with his code
Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx |
|
|
| Report Abuse |
|
|
|
| 23 Jan 2017 06:44 AM |
gosh this forum can be rude. Jumping is an actual event inside Humanoid your only problem is that the Humanoid is in the Character, not the Player
http://wiki.roblox.com/index.php?title=API:Class/Humanoid/Jumping
plr = game.Players.LocalPlayer plr.Character.Humanoid.Jumping:connect(function() print("sdfgfdsas") end)
|
|
|
| Report Abuse |
|
|