--<Services>--
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerStorage = game:GetService("ServerStorage")
local Debris = game:GetService("Debris")
-- Server Contents
local ServerAssets = ServerStorage:WaitForChild("ServerAssets")
local Modules = ServerAssets:WaitForChild("Modules")
local MainModule_ = require(Modules:WaitForChild("MainModule"))
-- ReplicatedStorage Contents
local ClientAssets = ReplicatedStorage:WaitForChild("ClientAssets")
local Modules = ClientAssets:WaitForChild("Modules")
local Spells = ClientAssets:WaitForChild("SpellData")
local Remotes = ReplicatedStorage:WaitForChild("Remotes")
local CastSpell = Remotes:WaitForChild("CastSpell")
local Extra = Remotes:WaitForChild("Extra")
--<Tables>--
local Server = {}
Server.Functions = {}
Server.Types = {"Regular"}
--<Functions>--
Server.Functions.CastSpell = function(Deflecting, Wand, Start, End)
I think its cause it is constantly yielding the stack because mainModule doesnt exist. Atleast from the perspective. Perhaps MainModule is a descendant on where the client doesnt get replicated to the server or vis versa