How to recreate Forsaken's Noli Hallucination Effect!

Hi there! I haven’t posted a ton of resources let alone an actual Tutorial so please bear with me :sweat_smile:

Anyways! As the title suggests this is how to recreate the Noli Hallucination effect from Forsaken! The effect in itself is fairly simple to achieve but considering I have not seen a tutorial (or may have missed them) on this I thought it would be a fun little project!

Here are some of the things you’re going to need before we get started:

  1. An Image Editing Software
  2. Audio Editing Software
  3. And finally Moon Animator (Not required but highly recommended)

Alrighty! So lets get started! First you’re going to need an animated gif of some sort. Whether you animate a character laughing or whatever in Clip Studio or any animating software (or you simply steal one) just make sure it is a GIF. Here is an example of Forsaken’s Noli hallucination:
noli-forsaken

Now we need to convert this into a sprite sheet. Personally I would use this website to convert gif’s to Sprite Sheet’s as it tends to format them in the perfect way for our program we are going to write later on: Here is the link

Now after doing everything correctly we should have our sprite sheet:

Next thing we’re going to do is clean this image up just a bit. For whatever reason I noticed this website tends to place a white background for every sprite sheet which can be annoying especially in our case. So you’re going to want to open up Photoshop or any Image editing software you may have. In this example I am going to use Photopea as it is essentially a free version of Photoshop.

Once in Photopea, You want to open up your sprite sheet and select the Magic Wand Tool:
image
Next you just have to simply select the background and press delete. And continue to do that until the entire background is gone.

And this should be our final product:


Now you just want to simply upload the decal to Roblox and we can start with the fun part.

Once in studio we are going to create a part. For this example my part’s size is going to be (3, 3, 1).
We’re going to name this part “FacePart” and set its transparency to 0. After that we are going to add a SurfaceGUI to both the Front and Back sides of the part since Noli’s Hallucination is Double sided. Inside Simply create a frame and scale it to (1, 0, 1, 0,) set the background transparency to 0, and make sure to turn on ClipDescendants (This part is Crucial). Now put an image inside the frame and name it “Hallucination” and set the image to your SpriteSheet you uploaded and make sure the background transparency is also 0. It should look something like this:


Now it is time to animate everything!

Before we get to any scripting, we must make the actual Hallucination move. So We are going to rig it. Now before anyone says anything. I know this probably is not the most Optimized or the Smartest way to go about this. But to be honest I just want to get this tutorial out as fast as possible… So rig the face part however you’d like! As long as it is animatable with an AnimationController or with a Humanoid it should work just fine! Here is how I have my rig set up:


The Main part acts as a HRP and as a positioning tool for later when we position the Hallucination to the camera.

So, I had recommended Moon Animator prior for one simple reason. It makes it easier to keep the camera in place so we can easily animate the Hallucination to how we are actually going to see it. So once in moon animator we are going to make sure we add the Camera as an Object. And wherever your camera is positioned should not matter just make sure to add a keyframe for the camera so you can easily go back to that camera position. And make sure to set the Model’s Position and Orientation to the Camera’s Position and Orientation and add a keyframe!:


Now a little tip. Noli’s Animation flys in from the left side of the screen to the right and does a little bounce back and forth while tilting back and forth towards the camera until then Jumping up a bit to Twirl twice and fly downwards off screen. Here is my attempt at trying to recreate this animation:
NoliHallAnim-ezgif.com-crop
Once we have our animation we’re going to export it and create an Animation Object inside our rig and name it “LaughAnim”. Then paste in your animation ID with the one you made:

Now it is time for some scr- Oh wait. Before we do that. This is not mandatory but tbh it makes the Hallucination look better in general. Go into the Image settings and resize it to (2,0,2,0). Now depending on how many rows and columns you have in your Sprite sheet the size may vary. For this example we have 4 frames in total which is 2 rows and 2 columns so this size should fit for us:

Now we can start with some scripting. FINALLY.
First things first. Create a LocalScript in either StarterPlayerScripts or StarterGUI. And lets define some of our Variables first. Now keep in mind for testing purposes I created a GUI with a little button that will allow me to play test this animation whenever I need. (You can do the same if you want) Anyway! Here’s our Variables:

local ReplicatedStroage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")

local Player = Players.LocalPlayer
local Camera = workspace.CurrentCamera
local Laugh = ReplicatedStroage.NoliLaugh
local Play = script.Parent.Play


local Framerate = 10
local lastFrame = 1
local frames = 4
local rows = 2
local columns = 2

local Face1 = Laugh.FacePart.Front.Frame.Hallucination
local Face2 = Laugh.FacePart.Back.Frame.Hallucination

Make sure to change the rows and columns to fir your sprite sheet!

Now we are going to set the Image’s sizes just in case!

Face1.Size = UDim2.new(columns, 0, rows, 0)
Face2.Size = UDim2.new(columns, 0, rows, 0)

Next we are going to create a function to update our sprite sheet position and play the animation properly:

local t = tick()

function update()
	if tick() - t >= 1/Framerate then
		lastFrame += 1
		if lastFrame > frames then lastFrame = 1 end
		local CurrentColumn = lastFrame
		local CurrentRow = 1
		repeat
			if CurrentColumn > columns then
				CurrentColumn = CurrentColumn - columns
				CurrentRow = CurrentRow + 1
			end
		until not (CurrentColumn > 2) 
		Face1.Position = UDim2.new(-(CurrentColumn-1), 0, -(CurrentRow-1), 0)
		Face2.Position = UDim2.new(-(CurrentColumn-1), 0, -(CurrentRow-1), 0)
		t = tick()
	end
end

Essentially all this does is play the sprite sheet animation on both images. Also do keep in mind the higher the framerate the faster the animation will play! I have found 10 seems to be a reasonable setting. Do keep in mind if you have more sprites in your sprite sheet the higher you would want your framerate to be so it can cycle through all sprites properly.

Next I’m just going to create a simple function that plays the Physical Laugh animation we created for the part:

function playLaugh()
	Play.Visible = false
	local LaughAnim = Laugh.LaughAnim
	local AnimPlay = Laugh.Humanoid.Animator:LoadAnimation(LaughAnim)
	Laugh.Parent = workspace
	AnimPlay.Looped = false
	AnimPlay:Play()
	AnimPlay.Ended:Connect(function()
		Play.Visible = true
		Laugh.Parent = ReplicatedStroage
	end)
end

And finally some last touch ups to our script:

Play.Activated:Connect(function()
	playLaugh()
end)

RunService.RenderStepped:Connect(function()
	Laugh.PrimaryPart.CFrame = Camera.CFrame
	update()
end)

Our RenderStepped function ensures the Hallucination Model is constantly positioned at the Player’s camera and the update() function allows the Animation to be played infinitely:
NolLaugh-ezgif.com-crop

Now some final touch ups! To avoid any collisions simply set the parts in the model to CanCollide False and if you’re worried about the image clipping through Objects you can simply turn on AlwaysOntop in the SurfaceGUI’s properties. I’m going to leave it off as Forsaken’s Hallucination does clip through objects (Not sure if by design or if it was overlooked).

Now for audio! This part is totally skipable although it may help some people hence why I am choosing to include it.

So for this section you’re going to need an Audio Editor like Fl Studio or Audacity. Now Personally, I am kinda dumb and do not know how to use Audacity fully, and while I do have FL that is a paid software. SO! I have a fairly good solution! Soundtrap, It is a fully free, Web based DAW(Digital Audio Workstation). You can create music in here but most importantly edit audio in general!(Wow who wouldve guessed.)

Now you’re going to want to just find any sort of meme or laugh audio to import into soundtrap. You can even layer different Audio’s to create the Chaotic Glitchiness of Noli’s Laugh.
On top of recreating that glitch effect Noli has here are some tips:

To recreate the skipping/replaying audio simply cut parts of whatever Audio you are using and copy and paste whatever segment you had cut a few times before returning to the rest of the audio. You can do this multiple times for an authentic skipping effect.


Another thing you can do to make the Audio sound more distorted is using a BitCrusher. This will make the audio sound more 8-bit/ Low quality which really fit’s Noli as a whole. This can be found by expanding the track and going into the effects panel:

Make sure to keep the Crush at 8 bit and change the Down Sampling to anything from 2 to 8 as these values tend to create the perfect distortion Noli’s lines tend to have.

Now you can feel free to add whatever other effects you’d like onto your audio tracks! But personally I think mine sounds decent as is so I am going to go ahead and export it. This can be done by simply going to file and Exporting the Audio. Do keep in mind exporting may take a minute depending on the size of your audio!
Here is my audio (feel completely free to use it as your own if you want I do not care :sob: ):

Now we are going to upload the sound and place it inside our Hallucination model:


And finally we’re going to update our playLaugh function:

function playLaugh()
	Play.Visible = false
	local LaughAnim = Laugh.LaughAnim
	local LaughSound = Laugh.Laugh
	local AnimPlay = Laugh.Humanoid.Animator:LoadAnimation(LaughAnim)
	Laugh.Parent = workspace
	AnimPlay.Looped = false
	LaughSound.Looped = false
	LaughSound:Play()
	AnimPlay:Play()
	AnimPlay.Ended:Connect(function()
		Play.Visible = true
		Laugh.Parent = ReplicatedStroage
	end)
end

And we are done!

You can easily customize this however you like as well as add custom sprites of your own! (Obviously.)

Anyway! I thank you to anyone who has read to the end for sticking through my yap-fest :sob: If you have any questions or issues please by all means feel free to contact me or leave a comment! My name is Frosty, and have a good day or night depending on when you are reading this!

Edit: Here is the rbxl file for anyone wanting to mess around with the project!
Noli Laugh.rbxl (82.0 KB)

20 Likes

Hi,
Great tutorial! Can you add a .rbxl so we can play around with it?

thanks

Yes! Sorry about that I did not think to include the rbxl due to it being a tutorial after all. :sweat_smile:

This looks like a great tutorial, but couldn’t the spritesheet part be simplified quite a bit by using a ParticleEmitter with the new flipbook system?
I suppose it depends how you want the spritesheet to look, since you can’t disable the blending between frames, to be fair

1 Like

Hi there! So the reason I did not go for the Flipbook particle approach is primarily because Particle emitters tend to be very iffy especially when close to the Camera and tend to clip out. Also Particles naturally rotate to the Viewport’s look direction which causes some issues especially if you want to create the 3D look to the hallucination. The frame blending works perfectly fine with Roblox’s Particle Emitters although personally programming it gives you wayy more freedom to edit the system later and possibly add in your own frame blending options that Roblox does not natively have.

Here is a little example of how the Hallucination would look like using particle emitters.

2 Likes