Mob climbing issue

I have a script that moves a mob:


while true do	
	local body = script.Parent
	local origin = body.Position
	local targetPos = game.ReplicatedStorage.values.torso.Value
	local distance = (script.Parent.Position - targetPos).Magnitude
	local effect = body.propel
	if distance > 30 then
		effect.Enabled = true
		body.CFrame = CFrame.new(origin,targetPos)
		body.Orientation = Vector3.new(0,body.Orientation.Y,0)
		body.Position = Vector3.new((origin - (origin-targetPos).Unit*0.5).X,origin.Y,(origin - (origin-targetPos).Unit*0.5).Z) 
	else
		effect.Enabled = false
		body.CFrame = CFrame.new(origin,targetPos)
	end
	wait()
	print()
end	

the mob has to move and climb but climbing just would not work
vid:

as you see, the mob just gets stuck and falls
PS. no humanoid and it cannot jump
pps i am a beggeiner

I am unsure if this would work but, if it has a humanoid, try change the mob’s MaxSlopeAngle

https://developer.roblox.com/en-us/api-reference/property/Humanoid/MaxSlopeAngle

i cant tell cus of the quality but if their just blocks running around try making them actual characters except their transparent and only the block is visible

if that doesnt work create a wedge that only collides for them with collision groups that is scaled towards the top of the mountain or whatever it is

What’s the problem with just making them jump?

no humanoid but i made a custom health system

i am really bad at art but it is a mountain

i use cframe movements to move as u see in script

honestly, all i want is to make it not slide down

i am a beggeiner idk how to use humanoid

dude, im using cframe and .position

humanoids have a built in climbing ability… just use them…

Everyone please read the post before offering humanoid solutions lol.

ye sorry i didnt realize

he should use a humanoid though because it has a much better and smarter ai

i told u im a starter and idk how

So a good practice for when you are starting something, is download a free model of it from the studio toolbox… an NPC for example, and open up all the elements in them and study them, to try to understand it.

Roblox has many articles and tutorials on scripting humanoid NPCs, and you can then change them to mimic mob behavior.

Once you have your humanoids moving how you want, you can control their Jump property and tweak them to your liking. Hope this helps.

First of all we are here helping YOU…so have some manners and be gracious instead of yelling.

Second i understood you perfectly when you said you know nothing about humanoids, so i provided you with an easy tutorial to LEARN about humanoids.

We arent going to write your scripts and games for you, we are here to help you along but you have to learn about the elements… and everyone is telling you to use humanoids to solve your problem and you are refusing.

I tried to help you but my efforts end here… best of luck.

sorry about that “yelling” ,but i figured it out. thanks for your effort.