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's wrong with this?

Previous Thread :: Next Thread 
MrVoxx is not online. MrVoxx
Joined: 24 Feb 2012
Total Posts: 37
06 Mar 2012 11:25 AM
local target = workspace.Part
local camera = workspace.CurrentCamera
camera.CameraSubject = target
local angle = 0

while game.StarterGui.Menu.MenuFrame.Play.Visible == true do
camera.CoordinateFrame = CFrame.new(target.Position)
* CFrame.Angles(0, angle, 0)
* CFrame.new(0, 50, -50)
angle = angle + math.rad(.3)
wait(.01)
end


I'm trying to get the camera to only rotate when a Gui is visible. It rotates but it doesn't stop when the Gui is invisible.
Report Abuse
MrVoxx is not online. MrVoxx
Joined: 24 Feb 2012
Total Posts: 37
06 Mar 2012 12:14 PM
Anybody? Haha.
Report Abuse
megaguy44 is not online. megaguy44
Joined: 28 Sep 2008
Total Posts: 1066
06 Mar 2012 02:23 PM
-FacePalm- The problem is that it checks the startergui and not the Gui in the PlayerGui. Thus, The startergui is always gonna be visible XD
--[NIN]--
Report Abuse
MrVoxx is not online. MrVoxx
Joined: 24 Feb 2012
Total Posts: 37
06 Mar 2012 04:38 PM

Lol. No. Everything that is in the StarterGui, copies over to PlayerGui. So if you set one value, you set the other value.

-Bump
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
06 Mar 2012 04:42 PM
No, Mega's right. That's not how it works. Everything in the StarterGui IS cloned into the players' PlayerGuis, but when you change something in a GUI in the StarterGui after everything's been cloned, it won't change the GUI's in the PlayerGui. The player will then have to go die. It's very rare you'll ever have to edit anything in the StarterGui via a script for online mode.

You now have +10 INT from this post. Oh, by the way, Like an __AWESOME__ boss-
Report Abuse
megaguy44 is not online. megaguy44
Joined: 28 Sep 2008
Total Posts: 1066
06 Mar 2012 05:26 PM
Nice to see you... Again Electric =P
Report Abuse
MrVoxx is not online. MrVoxx
Joined: 24 Feb 2012
Total Posts: 37
06 Mar 2012 06:41 PM
Oh. Woops. I'm stupid. Haha
Report Abuse
megaguy44 is not online. megaguy44
Joined: 28 Sep 2008
Total Posts: 1066
06 Mar 2012 07:36 PM
I believe an apology is in order. =3
Lol
--[NIN]--
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