ENTMT
(ENTMT)
August 1, 2021, 9:23pm
#1
I know at first thought you would say just set jumppower to 0 which i did but when a player sits and you jump(w/jumppower at 0) it still unsits so like how do i do this
Im not sure what else to right, its a pretty straight forward question, just short
DaMajestick
(sawgduffelbagdabG)
August 1, 2021, 9:26pm
#2
I believe you can use Context Action Service to unbind the spacebar from jump
DaMajestick
(sawgduffelbagdabG)
August 1, 2021, 9:27pm
#3
CAS:UnbindAction(“jumpAction”)
ENTMT
(ENTMT)
August 1, 2021, 9:36pm
#4
do you happen to know where I can find all the ‘actionNames’ keys
It’s not in the object browser and I can’t seem to find it on the DevHub
DaMajestick
(sawgduffelbagdabG)
August 1, 2021, 9:37pm
#5
What do you mean by ‘actionNames’ they’re just named what they are. You can get them with CAS:GetAllBoundInfo()
NotAxIr
(axlr)
August 2, 2021, 1:49am
#6
Use the UserInputService or refer to this post.
I would personally use UserInputService.JumpRequest
https://developer.roblox.com/en-us/api-reference/event/UserInputService/JumpRequest
Just set the Humanoid’s State to Jumping true/false
UserInputService.JumpRequest:Connect(function()
if not CanJump then -- just random a variable I picked out
if character.Humanoid.FloorMaterial == Enum.Material.Air then return end -- Prevent mid air jumps
character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping) --Making the character jump
else
…