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
|
  |
| Joined: 24 Feb 2012 |
| Total Posts: 37 |
|
| |
|
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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 28 Sep 2008 |
| Total Posts: 1066 |
|
|
| 06 Mar 2012 05:26 PM |
| Nice to see you... Again Electric =P |
|
|
| Report Abuse |
|
|
MrVoxx
|
  |
| Joined: 24 Feb 2012 |
| Total Posts: 37 |
|
|
| 06 Mar 2012 06:41 PM |
| Oh. Woops. I'm stupid. Haha |
|
|
| Report Abuse |
|
|
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 |
|
|