|
| 09 Aug 2015 12:07 AM |
According to CrowClaws, I had to use a localscript:
UIS = game:GetService("UserInputService")
player = game.Players.LocalPlayer
UIS.InputBegan:connect(function(input) if input.UserInputType == Enum.UserInputType.Keyboard and input.UserInputState == Enum.UserInputState.Begin then if input.KeyCode == Enum.KeyCode.Space and player.Character.Humanoid.PlatformStand == true then player.Character.Humanoid.Jump = true end end end)
No errors, not working
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
| 09 Aug 2015 02:01 AM |
You can't jump when in platform stand. Set platformstand to false, and then set jump to true:
player.Character.Humanoid.PlatformStand = false player.Character.Humanoid.Jump = true |
|
|
| Report Abuse |
|
|
| |
|
Ultraw
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 6575 |
|
|
| 09 Aug 2015 02:47 AM |
| Print something between every line and see where it gets to |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2015 02:48 AM |
UIS = game:GetService("UserInputService")
player = game.Players.LocalPlayer
UIS.InputBegan:connect(function(input) print("in1") if input.UserInputType == Enum.UserInputType.Keyboard and input.UserInputState == Enum.UserInputState.Begin then print("in2") if input.KeyCode == Enum.KeyCode.Space and player.Character.Humanoid.PlatformStand == true then player.Character.Humanoid.PlatformStand = false print("in3") player.Character.Humanoid.Jump = true end end end)
I added prints and it doesn't even get inside the function, CrowClaws says I had to use a localscript so i did
|
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Aug 2015 06:41 AM |
check if script is disabled or is there anything else in script ??
add print to first line |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2015 06:42 AM |
| also btw local sript has to be in startergui or or staterpack or inside of players character |
|
|
| Report Abuse |
|
|