Problem with raycast

  1. What do you want to achieve? Keep it simple and clear!
    I want to print something when I hit something with my mouse.

  2. What is the issue? Include screenshots / videos if possible!
    It is my first time using raycast so I don’t really know much about it.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried searching for solutions but couldn’t find any.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

--// Fire - Semi
function Fire_Semi()
	local StatPOS = Tool:WaitForChild("Handle").FirePoint.Position
	local EndPOS = Mouse.Hit.p
	local Parameters =
	Parameters.FilterDescendantsInstances = {
	Parameters.FilterType = Enum.RaycastFilterType.Blacklist
	local Result = workspace:Raycast(StatPOS, EndPOS, Parameters)
	if Result then
		print("FOUND SOMETHING WHICH IS AT "..Result.Position)