Samson918
|
  |
| Joined: 15 Apr 2012 |
| Total Posts: 174 |
|
|
| 10 Apr 2017 04:34 PM |
How can I make an object always point towards another? For example, an arrow that always points towards a players torso.
Thank you! |
|
|
| Report Abuse |
|
|
|
| 10 Apr 2017 04:38 PM |
--localscript
local player=game.Players.LocalPlayer
repeat wait() until player.Character repeat wait() until player.Character.HumanoidRootPart
local char=player.Character local hrp=char.HumanoidRootPart local part=workspace.Part
game:GetService("RunService").RenderStepped:Connect(function() part.CFrame=CFrame.new(part.Position, hrp.Position) end) |
|
|
| Report Abuse |
|
|
Samson918
|
  |
| Joined: 15 Apr 2012 |
| Total Posts: 174 |
|
| |
|
| |
|
Samson918
|
  |
| Joined: 15 Apr 2012 |
| Total Posts: 174 |
|
|
| 10 Apr 2017 04:59 PM |
nevermind I got it working.
ty |
|
|
| Report Abuse |
|
|