i want to do this but it wont work
TargetPoint = game.Players.LocalPlayer.Character.Humanoid.TargetPoint
Part.CFrame.lookVector = (Part.Position, TargetPoint)
Part.Velocity = Part.CFrame.lookVector*100
i want to do this but it wont work
TargetPoint = game.Players.LocalPlayer.Character.Humanoid.TargetPoint
Part.CFrame.lookVector = (Part.Position, TargetPoint)
Part.Velocity = Part.CFrame.lookVector*100
You'll want to construct a new CFrame (since the lookVector of an existing CFrame is read-only) using the constructor
CFrame.new(Vector3 position, Vector3 lookVector).
Using this, you can now set the lookVector.
Part.CFrame = CFrame.new(Part.Position, TargetPoint)
Here's the link. http://wiki.roblox.com/index.php?title=CFrame#CFrame.new
that didnt work
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
how is it done in rocket launchers
bump