Not entirely sure whats wrong here but,
local M = require(game.ReplicatedStorage.Talents)
local function onRayHit(Cast, result, velocity, bullet)
local hit = result.Instance
local character = hit:FindFirstAncestorWhichIsA("Model")
if character and character:FindFirstChild("Humanoid") then
M.Damage()
end
delay(0, function()
bulletCache:ReturnPart(bullet)
end)
end
Using a module script for the damage as i want to add talents that can alter how the gun works
local Talents = {}
Talents.Damage = function()
local T = game:GetService("ReplicatedStorage").Tals
require(T:FindFirstChild(T1).Yes)
end
return Talents
Heres the module, using it to find a module with the same name as the first talent, currently have the talent as B
local module = {}
module.Yes = function()
print("hi")
end
return module
and here’s the module “B”
But when i hit a someone i get the error
Any idea whats going wrong here?

