Module doesnt work correctly?

So I made this module where it makes a part on the position That I put. But it doesn’t make the part. This is the module:

local ShockWave = {}

function ShockWave.MakePart(position)
   local Sphere = Instance.new('Part')
   Sphere.Name = "ShockWave"
   Sphere.Shape = Enum.PartType.Ball
   Sphere.Parent = workspace
   Sphere.Position = position
end


return ShockWave

this is the script that runs the module:

ShockWave.MakePart(Vector3.new(humanoid.Parent.HumanoidRootPart.Position))

Is this on the client or server?

Also, why are you doing vector3.new()?

The script is a Normal script.

How are you getting the humanoid?

make this into this

ShockWave.MakePart(humanoid.Parent.HumanoidRootPart.Position)

Also can you show us how humanoid is defined?

local RaycastHitbox = require(game.ReplicatedStorage.Remotes.Modules.RaycastHitbox)

local ShockWave = require(game.ServerScriptService.Modules.Visualiser.Modules.ShockWave)

local Hitbox = RaycastHitbox:Initialize(script.Parent.Weapon)

Hitbox.OnHit:Connect(function(hit, humanoid)

I did and it still doesnt work