How to disable friction for Character while on hiting into the ceiling VECTOR FORCE

  1. I want to acheive Anti-gravity effect, and therefore I want to acheive a effect like when character
    is already on the ceiling make him NOT going to the random direction, make him behiavor just like normal.

  2. HERE IS THE VIDEO OF ISSUE I GOT
    EDITED: forget to paste link, HERE IS LINK:
    2024-02-17 16-17-15

  3. I’ve tried decrease VectorForce intensity using RayCast. )

RunService:BindToRenderStep('RenderCharacter', Enum.RenderPriority.Character.Value, function()
	
	local Params = RaycastParams.new()
	Params.RespectCanCollide = true
	Params.FilterType = Enum.RaycastFilterType.Exclude
	local result = workspace:Raycast(Character.RootPart.Position, Vector3.new(0, 8, 0 ), Params)
	if   res then

Tried to change some PhysicalProperties

		for _, part : Part in character:GetDescendants() do
			if  part:IsA('BasePart') then
				local pp =  PhysicalProperties.new(0, 0, 1, 0, 0)
				part.CustomPhysicalProperties = pp
			end
		end

for character & for the part player collide with
image
I also tried changing Humanoid state type when raycast triggers, But it looks weird.

character:FindFirstChildWhichIsA('Humanoid'):ChangeState(Enum.HumanoidStateType.Running)

It’s probably all I tried.
Please, be free to respond! I’m very glad to read you’re replies!

you can set humanoidrootpart’s assembly linear velocity to 0 when the character touched anything and use align orientation

1 Like

Hi! Recieved your reply, I’m extremly grateful you, but what settings do you use for AllignOrientation? Cuz
effect got such huge changes but still seeing 2024-02-18 15-38-34.

I used AlignOrientation to prevent the weird behaviour that happens sometimes when character collides with something due to bodymovers, its not exactly necessary to achieve what you want to do, from the video you posted i think the issue is something else, i need more details on how you create that gravity effect but what i can guess right with that video is that the force x,z property of your body velocity are not 0 and thats causing the issue

If u really want to know the settings then, i used one mode attachment with rigidity enabled and entered my char’s currrent orientation in TargetOrientation CFrame property of AlignOrientation