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)
You need to use braces {}
instead of parantheses ()
when you make a new table, like {workspace.ignored}
.