--FasCast Setup--

local FastCast = require(script:WaitForChild("FastCastRedux"))

local Params = RaycastParams.new()
Params.FilterType = Enum.RaycastFilterType.Blacklist -- just the type of filter
Params.FilterDescendantsInstances = {workspace.Terrain,marine} -- you can add more things to this list btw

if workspace:FindFirstChild("IgnoreFolder") == nil then
	local IgnoreList = Instance.new("Folder",workspace)
	IgnoreList.Name = "IgnoreFolder"
end

local NewCaster = FastCast.new()
local Behaviour = FastCast.newBehavior()

Behaviour.Acceleration = bulletacceleration
Behaviour.RaycastParams = Params
Behaviour.AutoIgnoreFolder = false
Behaviour.CosmeticBulletContainer = workspace.IgnoreFolder
Behaviour.CosmeticBulletTemplate = game.ServerStorage:WaitForChild("Bullet")
Behaviour.MaxDistance = maxdistance
