Lookvector Roblox Studio
It includes essential arithmetic operations for working with 3d data on roblox a canonical method of creating a cframe at a certain position and euler rotation xyz.
Lookvector roblox studio. Additem bullet 15 bullet. Local cf cframenew0 5 0 cframeanglesmathrad45 0 0. Scriptparentcframe scriptparentcframe scriptparentcframelookvector. Local lookvector1 brickcframelookvector or local lookvector2 cframenew0 5 0 cframeangles0 mathrad90 0lookvector or local lookvector3 cframevaluevaluelookvector.
It doesnt make much sense to me for a mouse to have a lookvector since its not a part. Connect function hit if hit. Sign up it. Fixed roblox studio gun script.
I want to make a part that flies around the map and when i make it rotates it will fly in the rotated direction but when i do. I understand that the lookvector the a unit vector pointing where the object is looking but how does a mouse have a lookvector. Well to put it simply lookvector is a unit vector of the direction of a cframe.