Lookvector roblox studio. Sign up it. Local cf cframenew0 5 0 cframeanglesmathrad45 0 0. Well to put it simply lookvector is a unit vector of the direction of a cframe. Local lookvector1 brickcframelookvector or local lookvector2 cframenew0 5 0 cframeangles0 mathrad90 0lookvector or local lookvector3 cframevaluevaluelookvector.
Fixed roblox studio gun script. You get the lookvector by added lookvector to the end of a cframe value like so. A guest mar 26th 2020 1452 never not a member of pastebin yet. Cframe short for coordinate frame is a data type that describes a 3d position and orientationit is made up of a positional component and a rotational component.
It doesnt make much sense to me for a mouse to have a lookvector since its not a part. Scriptparentcframe scriptparentcframe scriptparentcframelookvector. Connect function hit if hit.