#is not a valid member, when it is

17 messages · Page 1 of 1 (latest)

nimble chasm
#

How do you know it doesn't work?

#

What isn't working exactly?

whole plover
#

Did u check while the game is running if the player have beamtarget on the tool

nimble chasm
#

"it" being?

#

I'm talking about WaitForChild

#

What about the tool fails to work when you use WaitForChild?

#

Are you experiencing an infinite yield warning when using WaitForChild?

#

Then the problem lies in your "holding down" code

whole plover
#

Try making a BeamTarget variable before your holding down button event

#

And see if it give you an error

#

Use WaitForChild

nimble chasm
#

If OP did not receive an "infinite yield" warning, the issue with BeamTarget's presence in the tool has long been resolved

#

OP's now dealing with a fault further into their script

nimble chasm
whole plover
#

target = tool:WaitForChild("BeamTarget")

you forgot about this one : raycastParams.FilterDescendantsInstances = {script.Parent.BeamTarget}

green ivyBOT
#

studio** You are now Level 8! **studio

whole plover
#

raycastParams.FilterDescendantsInstances = {script.Parent:WaitForChild("BeamTarget")} try this