What do you want to achieve?
So i want to make the player jump using a script
What is the issue?
When using :ChangeState(Enum.HumanoidStateType.Jumping) the games shows that i am jumping but it reverts it immediately after and i don’t jump.
What solutions have you tried so far?
I have looked through so many posts and all say the same thing which is :ChangeState(Enum.HumanoidStateType.Jumping) the only problem is that it doesn’t. I have made sure that the charactor does exist and it still doesn’t work.
script.Parent.ClickDetector.MouseClick:Connect(function(plr)
local ch = plr.Character
if ch then -- If the character is here
local hum = ch.Humanoid
hum.Jump = true -- Make the player jump
end
end)
It is not really necessary to check if the character is there, it is always when the player loads and can click something, it might not load earlier when a screen gui is clicked.
it still doesn’t work. Here’s a video of it. robloxapp-20210212-1420241.wmv (161.6 KB)
EDIT: So it does work just not with the wallstick thing i’ve added. I will be making a new post since this was just why it didn’t work mostly and now i know why so i’ll be making one to ask how to make the player jump with the wallstick in place