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: Whats wrong with this?

Previous Thread :: Next Thread 
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
08 Oct 2012 04:42 PM
Its supposed to spin:

b = Instance.new("Part",Workspace)
b.Size = Vector3.new(5,12,5)
b.BrickColor = BrickColor.new("Lime green")
b.Position = Vector3.new(20,0,0)
b.TopSurface = "Smooth"
b.BottomSurface = "Smooth"
b.Name = "brick"

bodyG = Instance.new("BodyGyro",b)
bodyG.D = 500
bodyG.P = 3000
bodyG.maxTorque = Vector3.new(4000, 10000, 4000)

Workspace.brick.BodyGyro.cframe = CFrame.Angles(0,5,0)


But its not, why?
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
08 Oct 2012 04:46 PM
No events?
Is this full script?
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
08 Oct 2012 04:47 PM
Its the full, nothing else.
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
08 Oct 2012 04:48 PM
Try this:


while wait() do
b = Instance.new("Part",Workspace)
b.Size = Vector3.new(5,12,5)
b.BrickColor = BrickColor.new("Lime green")
b.Position = Vector3.new(20,0,0)
b.TopSurface = "Smooth"
b.BottomSurface = "Smooth"
b.Name = "brick"

bodyG = Instance.new("BodyGyro",b)
bodyG.D = 500
bodyG.P = 3000
bodyG.maxTorque = Vector3.new(4000, 10000, 4000)

Workspace.brick.BodyGyro.cframe = CFrame.Angles(0,5,0)
script.Disabled = true
end
Report Abuse
eJorge is not online. eJorge
Joined: 09 Jun 2011
Total Posts: 5966
08 Oct 2012 04:49 PM
Because you must loop it:

while wait(.1) do
Workspace.brick.BodyGyro.cframe = Workspace.brick.BodyGyro.cframe * CFrame.Angles(0,5,0)
end
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
08 Oct 2012 04:57 PM
Didnt work, and i dont want a loop, i want a quick spin then its over, and its not spinning at ALL
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
08 Oct 2012 05:05 PM
A BodyAngularVelocity spins bricks. I don't know about a BodyGyro.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
08 Oct 2012 05:09 PM
KK, I JUST WANTA SPINNING THING, IM TIRED OF DOING ALL THIS SH-1T NOW WRITE ME ONE!
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
08 Oct 2012 05:10 PM
1. Is a request.
2. Anger Issues.


So, no.
Report Abuse
IHateMittRomney is not online. IHateMittRomney
Joined: 05 Oct 2012
Total Posts: 69
08 Oct 2012 05:10 PM
No, that's much too commanding

~xXTheRobotXx,Machination
Report Abuse
TehChikenHater is not online. TehChikenHater
Joined: 11 Jun 2012
Total Posts: 497
08 Oct 2012 05:10 PM
BodyGyro will spin it if you do it right. Also remember, 2(pi)=360 pi=180 pi/2=90
You might want to do math.rad(45) for a 45 deg turn.
Report Abuse
TehChikenHater is not online. TehChikenHater
Joined: 11 Jun 2012
Total Posts: 497
08 Oct 2012 05:11 PM
Spinning thing? Got it angry kid!

while true do
script.Parent.CFrame=script.Parent.CFrame*CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
end
Report Abuse
TehChikenHater is not online. TehChikenHater
Joined: 11 Jun 2012
Total Posts: 497
08 Oct 2012 05:12 PM
*Sigh*

Again, I told you to put maxTorque to Vector3.new(math.huge,math.huge,math.huge)
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
08 Oct 2012 05:13 PM
@Blackboy reported for spam on my forum.I MENT TURN MY SCRIPT INTO SPINNING, LIKE FIX IT
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
08 Oct 2012 05:13 PM
Lol. Nice. No more help for you from me. kthxbai.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
08 Oct 2012 05:14 PM
You never helped, so i wouldnt make a difference, kkthxbai
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
08 Oct 2012 05:14 PM
It's not like this is the ONLY time you will need help. :3
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
08 Oct 2012 05:17 PM
Wow ur hepful making the report abuse on the posts, hey thanks :D
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
08 Oct 2012 05:19 PM
Np. :3
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
08 Oct 2012 05:45 PM
"KK, I JUST WANTA SPINNING THING, IM TIRED OF DOING ALL THIS [explicit] NOW WRITE ME ONE!"

"Don't ask others to debug your broken code without giving a hint what sort of problem they should be searching for. Posting a few hundred lines of code, saying "it doesn't work", will get you ignored. Posting a dozen lines of code, saying "after line 7 I was expecting to see (something), but (something else) happened instead" is much more likely to get you a reply."
-DoomBringer
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