script.Parent.Fire.OnServerEvent:Connect(function(plr, mousePos) local firepart = plr.Character:FindFirstChild('SpellFirePoint')

if firepart ~= nil then
	local bv = Instance.new('BodyVelocity')
	bv.MaxForce = Vector3.new(30000,30000,30000)
	bv.Velocity = firepart.CFrame.lookVector * boogerSpeed
	
	local boogerClone = booger:Clone()
	boogerClone.Parent = workspace
	boogerClone.CFrame = firepart.CFrame
	boogerClone.CFrame = CFrame.new(boogerClone.Position, mousePos)
	bv.Parent = boogerClone
	
	game.Debris:AddItem(boogerClone, boogerLifetime)
	
	boogerClone.Touched:Connect(function(hit)
		if hit.Parent.Name == plr.Name then return end
		
		if hit.Parent:FindFirstChild('Humanoid') then
			hit.Parent.Humanoid.Health -= boogerDamage
			boogerClone:Destroy()
		end
			
		
	end)
end

end)

Any help would be appreciated. Thanks!

2 comments

0

booger speed

0

i understand your fear