62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 20 Oct 2015 02:42 PM |
The below script is part of a script I have. It works, but right now it collides through other structures. The Y coordinate doesn't change. I like that. But I'm trying to get it to work so that if it hits a structure it just stops; it doesn't collide into it. Any help?? Thanks
function MoveStructure() wait() Action = true while _G.Moving == true do pcall(function() wait() targ.Parent:SetPrimaryPartCFrame(CFrame.new(Vector3.new(m.hit.p.X,2.9,m.hit.p.Z))) end) end return end |
|
|
| Report Abuse |
|
|
davisky2
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 4710 |
|
|
| 20 Oct 2015 02:51 PM |
Make another script detecting if it hits a structure and then disabling the script tht makes it move. Or try running multiple functions at once.
~davisky~ |
|
|
| Report Abuse |
|
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 20 Oct 2015 02:52 PM |
That's ineffective /:
buhmp plz |
|
|
| Report Abuse |
|
|
| |
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 20 Oct 2015 02:58 PM |
| I don't even know how to like, detect the structure being there. What method should I use? Or you know, examples? |
|
|
| Report Abuse |
|
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
| |
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
| |
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
| |
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
| |
|