Questionable LocalScript behavior

I am trying to get a ModuleScript I have from ReplicatedStorage.

image

In my LocalScript, I have the following line of code:

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local essenseReturner = require(ReplicatedStorage:WaitForChild("EssenseReturner"))

This outputs the following error:

However, when I use the following line of code:

local essenseReturner = require(game.ReplicatedStorage.EssenseReturner)

I don’t get any errors at all. Why is this happening?

Check your spelling, it shouldn’t yield if it exists.

1 Like

All the spelling in my code is correct.

The actual Script is called EssenceReturner, but the code is trying to find EssenseReturner.

2 Likes

Oh lol, my bad. I guess I’m blind.

You spelled “EssenceReturner” as "“EssensneReturner”

1 Like

I already pointed that out…

2 Likes

I was typing it for like 5 minutes sorry lol

Okay.

No it’s not.

3 Likes