Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make an arrow travel better than in this way?

Asked by
aiuis 85
6 years ago
Edited 6 years ago

Argument is game.Players.LocalPlayer:GetMouse() variable from a local script that calls this function (FE stuff)...

local Arrow=Instance.new'Part'
Arrow.Size=Vector3.new(.1,.1,1)
Arrow.CanCollide=false
Arrow.BrickColor=BrickColor.new'Brown'
Arrow.CFrame=Player.Character.RightHand.CFrame
local BodyForce=Instance.new'BodyForce'
BodyForce.Force=Argument.Origin.lookVector
BodyForce.Parent=Arrow
Arrow.Parent=workspace

This works but the Roblox's gravity makes the arrow go down too hard. There must be a better way of doing this. Any ideas, please?

0
I dont understand why some people just dont use PathFindingService for things like this; of course PathFindingService would only be of use if there were no buildings in the way from point A to point B. movsb 242 — 6y
0
Arrows aren't propelled mid-flight, so it makes no sense to apply a force in the direction it's launched. Instead, set its velocity. If you want it to fall slower, apply a force upwards. XAXA 1569 — 6y
0
Okay, thanks aiuis 85 — 6y

Answer this question