How would i come with scripting ghost/spirit system? (Like in Blood Samurai 2)

  1. What do you want to achieve? Keep it simple and clear!
    I want to make an special ability in which player upon pressing button (for example Q) on his keyboard will go into spirit mode, where he can fly, go through objects… etc.
    (Example From Blood Samurai 2:)
  1. What is the issue?
    I can script pretty much everything by myself, except the main thing - the spirit mode itself. I have absolute no experience in such things as i’ve never done it before. So how can i make it fully controllable by player, and how do i make it able to fly? I would like to hear what should i use in such abilities, and what is most efficient. (Important: i want it to be client sided, as no player shall see it except the caster of an ability.)

  2. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I have tried searching on this topic for some period of time, however i haven’t found anything useful yet… or i am just very bad at searching various stuff on dev forum.

Try disabling the default context actions for Roblox movement, and re-binding them to functions that would move your custom character. Also, you can set the Camera's CameraSubject.

try this:

  1. Set the player velocity and jumo height to 0.
  2. change the camera subject to the sipirit’s humanoid.
  3. there are a lot of simple flying tutorials on youtube, just adjust them to the spirit and not the character.

Hope this helps.

That’s a great advice, i actually didn’t know about context actions but now i can see how to use it, thanks!

Hm, that may work out, thanks to both of you for helping me out.

solution my reply if it works for you please.

Thanks