Hello
I got this weird error and I have 0 idea why there is an error. If anybody can catch it, then please let me know what it is.
Server script:
local spawnCFrame = script.Parent.Handle.Attachment.WorldPosition
print(spawnCFrame)
print(hit)
spawnCFrame = spawnCFrame + (hit * 8)
local blacklist = tool.Parent:GetDescendants()
print(blacklist)
print(typeof(projectileModule.new))
local projectileInfo = projectileModule.new(1,blacklist,Vector3(0,0,0),8,0,0,projectile) --the error is on this line
projectileInfo:Cast(spawnCFrame,hit,10)
Module script:
local projectile = {}
function projectile.new(gravity,blacklist,alternateForce,despawnTime,maxBounces,decay,projectileType)
local newProjectile = {}
newProjectile.Gravity = gravity
newProjectile.AlternateForce = alternateForce
newProjectile.DespawnTime = despawnTime
newProjectile.MaxBounces = maxBounces
newProjectile.Decay = decay
local params = RaycastParams.new()
params.FilterType = Enum.RaycastFilterType.Exclude
params.FilterDescendantsInstances = blacklist
newProjectile.Params = params
Thanks for the help ![]()