I kinda forgot how to use mouse.Hit (btw, mousehit is defined as mouse.Hit in the local script)
game:GetService("Debris")
script.Parent.SandFlightEvent.OnServerEvent:Connect(function(player, mousehit)
local char = player.Character
local bv = Instance.new("BodyVelocity")
game.Debris:AddItem(bv, 5)
bv.Parent = char.HumanoidRootPart
bv.MaxForce = Vector3.new(1e8,1e8,1e8)
while true do
wait()
bv.Velocity = Vector3.new(player.mousehit.lookVector) * 75
end
end)

1 comment
Sorry if i explained it a bit wrong, but I'm trying to make the character fly, using bodyvelocity, and I want them to fly where the mouse is pointing. It's not like a projectile or anything.