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

RaycastParams.FilterDescendantsInstances = {player.Character} how do i fix this?

Asked by 3 years ago

Players.RareLoljosh21.Backpack.Tool.Server:4: Attempt to modify a readonly table -error

RaycastParams.FilterDescendantsInstances = {player.Character} the code

0
i believe you just have to remove the brackets preston1196 82 — 3y

1 answer

Log in to vote
0
Answered by
Necro_las 412 Moderation Voter
3 years ago

RaycastParams is not a variable for your raycastparam, but the name of the Class RaycastParams. The correct way to do this is:

Local Params = RaycastParams.new()
Params.FilterDescendantsInstances = {player.Character} 
0
it no work Rareloljosh21 0 — 3y
0
'new' is not a valid member of RaycastParams the error Rareloljosh21 0 — 3y
Ad

Answer this question