Nozek
|
  |
| Joined: 06 Apr 2013 |
| Total Posts: 10109 |
|
|
| 05 Oct 2014 01:00 PM |
| make a block chase somebody? |
|
|
| Report Abuse |
|
|
|
| 05 Oct 2014 01:01 PM |
yes but idk how
ɢʜᴏsᴅᴇᴇʀɪ ɪs ʟᴏᴠᴇ, ɢʜᴏsᴅᴇᴇʀɪ ɪs ʟɪғᴇ~ Ʀ$ 34,508/31,000 |
|
|
| Report Abuse |
|
|
L2000
|
  |
| Joined: 03 Apr 2008 |
| Total Posts: 77448 |
|
|
| 05 Oct 2014 01:01 PM |
Put a BodyPosition into the block, then change that position to wherever the player is every 0.05 seconds (or however fast you want it to respond - min is 0.04ish)
WOOHOO. https://www.youtube.com/watch?v=cBVeNQ-mtcY |
|
|
| Report Abuse |
|
|
Nozek
|
  |
| Joined: 06 Apr 2013 |
| Total Posts: 10109 |
|
|
| 05 Oct 2014 01:01 PM |
| if anyone does can they tell me how |
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Oct 2014 01:02 PM |
| raycasting**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** |
|
|
| Report Abuse |
|
|
Nozek
|
  |
| Joined: 06 Apr 2013 |
| Total Posts: 10109 |
|
| |
|
Nozek
|
  |
| Joined: 06 Apr 2013 |
| Total Posts: 10109 |
|
| |
|
Nozek
|
  |
| Joined: 06 Apr 2013 |
| Total Posts: 10109 |
|
| |
|
L2000
|
  |
| Joined: 03 Apr 2008 |
| Total Posts: 77448 |
|
|
| 05 Oct 2014 01:08 PM |
This is what I use in my game for it
function chase(p) while p do local cat = script.Parent local dir = (p.Position - cat.Position).unit local sp = cat.Position local pos = sp + dir if not bg or not bp then return end bg.cframe = CFrame.new(pos, pos + dir) bp.position = p.Position wait(0.5) end end
bg is a BodyGyro, so it actually points to where its chasing; bp is the BodyPosition so it knows where to go; p is the object it chases (So player's torso); It has to be in the block; And the block has to be unanchored.
WOOHOO. https://www.youtube.com/watch?v=cBVeNQ-mtcY |
|
|
| Report Abuse |
|
|
Temprist
|
  |
| Joined: 28 Aug 2010 |
| Total Posts: 10060 |
|
|
| 05 Oct 2014 01:10 PM |
theres a certain part in this model that does it:
http://www.roblox.com/Wall-e-That-follows-you-item?id=36113025 |
|
|
| Report Abuse |
|
|