How to boost/bump player upwards when they touched/bumped to a wall?

hii devforumm ! soo recently just started to mess around with the player’s character, slowly trying to make like a 3d platformer moveset lol

but ANYWAYS… i played some platformers 2day cuz comfort game and i rlly liked the movement cuz its so satisfying and relaxing, especially the upward boost when u hit a wall, that gives a lot of height to the player

so i tried to do something similar to it using my probably bad moveset, i just used the Humanoid.Jump property and I changed the JumpPower

…and… it works! but… i heard that its not really good bc of like character speed and stuff, also it flings my character so lol

here’s the code i modified (from egomoose’s dive & dbj)…

local ray = Ray.new(humanoidPart.Position, -humanoidPart.Velocity * 10);
		local hit, pos, normal, material = game.Workspace:FindPartOnRayWithWhitelist(ray, {touchingPart});

		if (material ~= Enum.Material.Water and material ~= Enum.Material.Air and normal:Dot(Vector3.new(0, 1, 0)) <= 0.5) then		
			Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, true)
			Humanoid.JumpPower = 74
			touch = true	
			Humanoid.Jump = true
			jumpCount = jumpCount + 1;
			LJanim:Stop();
			DBJanim:Stop()
			Diveanim:Stop();
			Bumpaanim:Play()
			wait(0.4)
			Humanoid.JumpPower = 60		
			Bumpaanim.Stopped:Wait()
			touch = false
		end

sooo…

how can u boost/bump the player upwards (without the use of Jump) when they touched a wall? or a better way to boost them upwards?

like dis video, or the ss (pls excuse the loud twice & kep1er music ty…);

image


– i don’t need the fx btw ! just the upward boost <3

tysm for any replies !! <3

nvm i fixed it YAYYYYYYYYYYY

stream doublast - kep1er yuh

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.