Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

RaycastParams.FilterDescendantsInstances = {player.Character} the code

1 comment

0

i believe you just have to remove the brackets

1 answer

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} 

2 comments

0

it no work

0

'new' is not a valid member of RaycastParams the error

This discussion is preserved as it was. New answers, comments, and votes are closed.