How to make raycast reach a little bit further

Hey i’m DevFoll and i’m wondering how i can make my raycast bullet reach a bit further so the touched event can work better. I tried Vector 3’s but still don’t work.
I’m making a shotgun btw

script.Parent.RemoteEvent.OnServerEvent:Connect(function(Player, MousePos)
	local Params = RaycastParams.new()
	Params.FilterDescendantsInstances = {Player.Character}
	Params.FilterType = Enum.RaycastFilterType.Blacklist
	local Raycast = game.Workspace:Raycast(script.Parent.Part.Position,( MousePos - script.Parent.Part.Position)*300, Params)
	if Raycast then
		script.Parent.Part.PointLight.Enabled = true
		script.Parent.Ammo.Value -= 1
		script.Parent.Handle.fire:Play()
		local Bullet = game.ReplicatedStorage.Bullet:Clone()
		Bullet.Parent = game.Workspace
		Bullet.Position = MousePos
		print(MousePos)
		wait(0.2)
				script.Parent.Part.PointLight.Enabled = false
		Bullet.Touched:Connect(function(hit)
			if hit.Parent:FindFirstChild("Humanoid") then
				hit.Parent.Humanoid.Health -= 70
				Bullet:Destroy()
				
			end
		end)
	end
end)
(MousePos - script.Parent.Part.Position) * 300

This will multiply all the components of the Vector3 (X, Y and Z) by 300. You instead want to extend the unit vector rather than the raw result of this. This will allow you to keep the direction of the vector but instead extend the “length” in which its casting over.

(MousePos - script.Parent.Part.Position).Unit * 300

It’s alr i figured it out. Thanks for helping

Could you reply with what exactly you figured out and then mark that post as the solution then, in case anyone else has the same question and finds your thread? It’d help to leave someone with an answer.

I just removed the bullet and just used the raycasting, i will proboly add bullets since the guy i commissioned want some bullet effects