generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Ugh this isn't working online

Previous Thread :: Next Thread 
McFrye is not online. 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 is not online. 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 is not online. 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 is not online. 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
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
13 Apr 2014 08:47 PM
Is this in a LocalScript?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image