Im making a horror game and i’m trying to make a npc that climbs upside down and (if possible) alternate between upside down, wall, and floor movement. But i mainly just want upside down movement.
Should I be using Velocity, CFrame, or what?
Im making a horror game and i’m trying to make a npc that climbs upside down and (if possible) alternate between upside down, wall, and floor movement. But i mainly just want upside down movement.
Should I be using Velocity, CFrame, or what?
here’s a conceptual approach:
CFrame Manipulation:
Movement Logic:
State Management:
Gravity and Physics Considerations:
Animation and Visual Feedback:
Trigger Events:
thanks ChatGPT
bruh, are there any human reccomendations for what i should be doing?
i’ve never made npcs that stick to walls, maybe u should look into that gravity controller made by egomoose(?)
that works pretty well but i want to make my own script for it thats customized for my game, i just want to know what i should be using to make something like that, and i just don’t really feel like downloading files n stuff.
You would probably need to inspect the Roblox player modules to see how it moves the character around to even get the basic npc going.
Since gravity is just a force applied on the NPC, Theoretically, all you need to do is to apply a VectorForce double the gravitational force (workspace,gravity * the NPC’s assembly mass) but in the +y direction. That should give the npc “upside-down” movement provided you account for and handle its rotation too.
edit: In practice, just double the gravitational force might not be enough as humanoids don’t like leaving the ground, try 15-20k to cancel out gravity and then increase it to your preferred one from there.