Raycast not working?

so i have two scripts, prints perfectly but theres no ray being shown…
client side:

-

server side:

-

im not sure what gone wrong so please enlighten me.

Have you tried setting the LaserBeams parent to workspace like this: LaserBeam.Parent = workspace?

local LaserBeam = Instance.new("Part", game.Workspace)

isn’t this the same thing? ill try it out anyway

hmm nope, no changes or errors

Thats odd, the script seems to work for me.
Have you checked if the Tip part is welded to the handle?

its an attachment in the tool, is that the problem?

You would have to use the WorldCFrame property for the attachment as the CFrame represents the offset of the Attachment.

3 Likes