Hello.
I am looking for an effective way to limit the range of travel for bullets in my game.
Here is my current code: (Any help would be appreciated)
local Ignore = {workspace.Ignored, Player.Character}
local Cast = Ray.new(Tool.Handle.Position, Mouse - Tool.Handle.Position)
local Part, Position = workspace:FindPartOnRayWithIgnoreList(Cast, Ignore)