-
What do you want to achieve?
I want to create jumping where when you land the camera bobs down a little. -
What is the issue?
https://i.gyazo.com/544ab4ee561e428d277560f72f889b8f.mp4 -
What solutions have you tried so far?
I’ve checked on the devforum but couldn’t find anything to help me on making this.
3 Likes
If you were not to change the jumppower then you could count or guess the time you are in the air when jumping and time it with when you land again. It could look something like this in a local script:
local player = game.Players.LocalPlayer
local camera = workspace.CurrentCamera
player.Character:FindFirstChildOfClass("Humanoid"):GetPropertyChangedSignal("Jump"):Connect(function()
wait(0.1) --idk how long the player is in the air
--and the camera works
end)
This would not be sufficient especially when the player can jump from different heights. He should use HumanoidStateType.Landed instead.
eg:
Humanoid.StateChanged:Connect(function(oldState, newState)
if newState == Enum.HumanoidStateType.Landed then
end
end)
2 Likes
Thanks alot, it worked ingame.
No problem, if you have any more questions, feel free to ask.