Attempt to index nil with 'CFrame'

I’m trying to create a hitbox for a Power up and i trying to get a variable from a module script but it keeps giving me an error
ServerScriptService.Spin_Server:33: attempt to index nil with ‘CFrame’

local RepStorage = game:GetService('ReplicatedStorage')
local spin = RepStorage:WaitForChild('Spin')
local VfxHandeler = game.StarterPack.Vfx_Handler.Vfx_Handler_Client
local SpinVfx = require(VfxHandeler.Spin_Vfx)
local Meshes = game.StarterPack.Vfx_Handler.Vfx_Handler_Client.Spin_Vfx.Meshes
local TweenService = game:GetService('TweenService')

local SpinModule = require(script.Spin_Module)

spin.OnServerEvent:Connect(function(plr)
	local char = plr.Character
	local hum = char:WaitForChild('Humanoid')
	local humrp = char:WaitForChild('HumanoidRootPart')
	
	local folder = Instance.new('Folder')
	folder.Name = plr.Name..' Spin Move'
	folder.Parent = workspace
	game.Debris:AddItem(folder,5)
	

	spawn(function()
		SpinModule.create(plr,char,humrp,folder)
	end)

	delay(5, function()
		spin:FireClient(plr)
	end)
	wait(folder:GetChildren())
	
	local Sphere = SpinVfx.Sphere
	
	local Hitbox = script:WaitForChild('Hitbox'):Clone()
	Hitbox.CFrame = Sphere.CFrame
	Hitbox.Size = Vector3.new(1.5,1.5,1.5)
	Hitbox.Transparency = 0.8
	Hitbox.Parent = folder
	
	
	TweenService:Create(Hitbox, TweenInfo.new(.5),{Size = Vector3.new(23, 15, 23)}):Play()

	Hitbox.Touched:Connect(function(hit)
		if hit:IsA('BasePart') then
			if not hit:IsDescendantOf(char) then
				local enemyHumanoid = hit.Parent:FindFirstChild('Humanoid')
				local enemyHPR = hit.Parent:FindFirstChild('HumanoidRootPart')
				if enemyHumanoid and enemyHPR then
					spawn(function()
						SpinModule.Damage(char,humrp,2)
					end)
				end
			end
		end

	end)
end)

I’ve tried printing sphere and it printed nil.

That just means that whatever you are returning has no value called “Sphere”, the problem lies within the module.

So how do i fix it do i send you the module script?

You would need to see what you are defining as “Sphere” when you return things from the module.

here is the module script.

local RunService = game:GetService('RunService')
local TweenService = game:GetService('TweenService')
local Debris = game:GetService('Debris')

local RP = game:GetService('ReplicatedStorage')
local Vfx = RP:WaitForChild('Vfx')

local SpinModule = {}

function SpinModule.create(plr,char,humrp,Folder)
	spawn(function()
		for _, Player in pairs(game.Players:GetChildren()) do
			Vfx:FireClient(Player,'Spin_Vfx','rotate',Folder,humrp)
		end
		end)
		
	spawn(function()
	    for _, Player in pairs(game.Players:GetChildren()) do
			Vfx:FireClient(Player,'Spin_Vfx','Rocks',Folder,humrp)
		end
	end)
end


function SpinModule.Damage(Character,humrp,DamageValue)
	local Entities = workspace.Entities
	local dis = 16
	local Bool = true
	delay(4, function()
		Bool = false
	end)
	
	while true do
		if Bool == false then
			break
		end
		
		for _, plr in pairs(Entities:GetChildren()) do
			if plr ~= Character then
				local EnemyHum = plr:FindFirstChild('Humanoid')
				local EnemyRp = plr:FindFirstChild('HumanoidRootPart')
				local curdis = (humrp.CFrame.p - EnemyRp.CFrame.p).Magnitude
				if curdis <= dis then
					if EnemyHum and EnemyHum.Health > 0 then
						EnemyHum:TakeDamage(DamageValue)
						wait(.3)
					end
				end
			end
		end
		
		
	   task.wait(.1)
	end
	
end
return SpinModule

Sorry for the long wait i was on vacation.