Geomaster
|
  |
| Joined: 05 Jul 2008 |
| Total Posts: 1480 |
|
|
| 17 Sep 2013 09:39 PM |
For this, I was attempting to merely set the CFrame of the missile to go a few studs torward its lookVector every second or so..I can't seem to figure it out. Anyone know what I should do here? (Assume 'b' is the tag for the missile.)
coroutine.resume(coroutine.create(function() local t, s = game:Service("RunService").Stepped:wait() local d = t + 10.0 - s local pos = b.Position while t < d do local dir = b.CFrame.lookVector local vec = pos + direction * 10 b.CFrame = cfn(vec) t = game:Service("RunService").Stepped:wait() end b:remove() end)) |
|
|
| Report Abuse |
|
|
Geomaster
|
  |
| Joined: 05 Jul 2008 |
| Total Posts: 1480 |
|
|
| 17 Sep 2013 09:39 PM |
| Note: 'cfn' is CFrame.new (I tagged it earlier in the script) |
|
|
| Report Abuse |
|
|
Geomaster
|
  |
| Joined: 05 Jul 2008 |
| Total Posts: 1480 |
|
| |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 17 Sep 2013 10:10 PM |
| you use dir in 1 line, and direction in a diff line... |
|
|
| Report Abuse |
|
|
Geomaster
|
  |
| Joined: 05 Jul 2008 |
| Total Posts: 1480 |
|
| |
|