local replicatedstorage = game:GetService("ReplicatedStorage")
local runservice = game:GetService("RunService")
local debris = game:GetService("Debris")
replicatedstorage.Events.pinkPower2.OnServerEvent:Connect(function(player, mousePos)
local character = player.Character
local pinkpower21OverLapParams = OverlapParams.new()
pinkpower21OverLapParams.FilterType = Enum.RaycastFilterType.Blacklist
pinkpower21OverLapParams.FilterDescendantsInstances = (workspace.ignored,character) <- where the error is
local pinkpower21 = game.ReplicatedStorage.Effects.PinkPower21:Clone()
pinkpower21.Parent = workspace.ignored
pinkpower21.Position = character.LeftHand.position
local connection
local startTime = os.clock()
connection = runservice.Heartbeat:Connect(function(dt)
local hitparts = workspace:GetPartsInPart(pinkpower21,pinkpower21OverLapParams)
if os.clock() >= startTime+4 then
connection:Disconnect()
for i,v in pinkpower21.Attachment:GetChildren() do
v.Enabled = false
end
debris:AddItem(pinkpower21,3)
return
end
pinkpower21.CFrame = CFrame.new(pinkpower21.Position) + mousePos.LookVector * dt * 60
end)
end)
✓ ANSWER ACCEPTED
Another error in my script, line 11 or look where it says "where the error is" help?
1 answer
✓ Accepted answer
You need to use braces {} instead of parantheses () when you make a new table, like {workspace.ignored}.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
What does the error say in the console?
ServerScriptService.PinkPower2:11: Expected ')' (to close '(' at column 56), got ','
Would you mind telling us what the code is suppose to do or what you are trying to do here??
im trying to make a projectile, and im putting in these "settings" for the script can detect collisions