Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Another error in my script, line 11 or look where it says "where the error is" help?

Asked by 1 year ago
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)
0
What does the error say in the console? SharkRayMaster 265 — 1y
0
ServerScriptService.PinkPower2:11: Expected ')' (to close '(' at column 56), got ',' FallenAngel_ii 7 — 1y
0
Would you mind telling us what the code is suppose to do or what you are trying to do here?? theking66hayday 841 — 1y
0
im trying to make a projectile, and im putting in these "settings" for the script can detect collisions FallenAngel_ii 7 — 1y

1 answer

Log in to vote
0
Answered by
enes223 327 Moderation Voter
1 year ago
Edited 1 year ago

You need to use braces {} instead of parantheses () when you make a new table, like {workspace.ignored}.

Ad

Answer this question