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: What could be possibly wrong with this?

Previous Thread :: Next Thread 
BaconSoap is not online. BaconSoap
Joined: 12 Sep 2010
Total Posts: 1882
09 Jun 2014 08:18 PM
When I run it, it breaks the script.

local part = Instance.new("Part")

part.Anchored = true
part.Parent = Workspace

while wait(0.5) do
part.CFrame = part.CFrame * CFrame.Angles(0, math.rad(1), 0)
end
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
09 Jun 2014 08:22 PM
define "breaks"?

theres nothing rong with that, except maybe efficiency

p = Instance.new("Part",Workspace)
p.Anchored = true
game:GetService("RunService").RenderStepped:connect(function()
wait(0.5)
p.CFrame = p.CFrame*CFrame.Angles(0,math.rad(2),0)
end)
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
09 Jun 2014 08:24 PM
lol his was more efficient than yours.
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
09 Jun 2014 08:24 PM
meh, I just felt like using renderstpeed .-.
Report Abuse
BaconSoap is not online. BaconSoap
Joined: 12 Sep 2010
Total Posts: 1882
09 Jun 2014 08:25 PM
I know, nothing wrong with it, but it points an arrow at line 1, the script pops up, and the brick never appears.
Report Abuse
BaconSoap is not online. BaconSoap
Joined: 12 Sep 2010
Total Posts: 1882
09 Jun 2014 08:26 PM
Ah it was just a bug.. I deleted the script and pasted it again, it worked.
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
09 Jun 2014 08:28 PM
is there a circle next to line 1?
click it if there is, its telling the script to stop there
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
09 Jun 2014 08:31 PM
Why stick in that wait(0.5)? It's gonna go way faster than 0.5 if multiple threads run every 1/60.
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