the script is supposed to makes 5 clones of itself through a loop but all 5 hit each other. I’ve tried by using other sorts of rays for example ignoring the part but it won’t work. The ray here also doesn’t seem to work
local Charcacter = Player.Character
local Humanoid = Charcacter:WaitForChild("Humanoid")
local Humrp = Charcacter:WaitForChild("HumanoidRootPart")
local effectsFold = Instance.new("Folder",workspace)
effectsFold.Name = Player.Name.." Effects"
Debris:AddItem(effectsFold,2)
local dvm3ball = Meshes:WaitForChild("DWm3ball"):Clone()
dvm3ball.CFrame = Humrp.CFrame * CFrame.new(0, 0, -3)
dvm3ball.Parent = effectsFold
local dvm3frame1 = Meshes:WaitForChild("DWm3frame1"):Clone()
dvm3frame1.CFrame = dvm3ball.CFrame
dvm3frame1.Parent = effectsFold
local dvm3frame2 = Meshes:WaitForChild("DWm3frame2"):Clone()
dvm3frame2.CFrame = dvm3ball.CFrame
dvm3frame2.Orientation = Vector3.new(0, -90, 0)
dvm3frame2.Parent = effectsFold
local tbtable = {dvm3ball,dvm3frame2,dvm3frame1}
local tbrayparams = RaycastParams.new()
tbrayparams.FilterType = Enum.RaycastFilterType.Blacklist
tbrayparams.FilterDescendantsInstances = tbtable
local tbrayresult = workspace:Raycast(dvm3ball.Position, dvm3ball.CFrame.LookVector * speed, tbrayparams)