McFrye
|
  |
| Joined: 23 Apr 2011 |
| Total Posts: 235 |
|
|
| 13 Apr 2014 08:26 PM |
s = script['Parent'] pp = workspace['Part'] b = script['Parent']['Parent']['BV'] bp = script['Parent']['Parent']['BP'] cr = coroutine['resume'] cw = coroutine['wrap']
s['MouseClick']:connect(function() if true then cw(function() while wait() do bp['position'] = (game['Players']['LocalPlayer']['Character']['Torso']['CFrame'] * CFrame['new'](0, 10, -10)).p -- Here is the problem bp['maxForce'] = Vector3['new'](20000,20000,20000) bp['P'] = 10000 bp['D'] = 1250 b['angularvelocity'] = Vector3['new'](10,10,0) b['maxTorque'] = Vector3['new'](4000,4000,4000) b['P'] = 1250 end end)() end end)
--works offline just fine. Added 'wait(2)' to it and it still doesn't work online. If you need more context, i'll post |
|
|
| Report Abuse |
|
|
McFrye
|
  |
| Joined: 23 Apr 2011 |
| Total Posts: 235 |
|
|
| 13 Apr 2014 08:27 PM |
| Disregard the line that says '--here is the problem' |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 13 Apr 2014 08:31 PM |
Add a repeat wait() until game.Players.LocalPlayer at the top.
Script runs before player loads. |
|
|
| Report Abuse |
|
|
McFrye
|
  |
| Joined: 23 Apr 2011 |
| Total Posts: 235 |
|
|
| 13 Apr 2014 08:35 PM |
| wait(2) does the same thing, and your thing did't work either. |
|
|
| Report Abuse |
|
|
| |
|