lupine
|
  |
| Joined: 24 Jun 2008 |
| Total Posts: 3561 |
|
|
| 02 Feb 2011 11:33 PM |
I have:
local player = game.Players.LocalPlayer local view = game.Workspace.Views local sight = workspace.CurrentCamera function Viewer() sight.CameraSubject = view.View1 player.PlayerGui.Viewer.Background.Visible = false player.PlayerGui.Viewer.NewCap.Visible = true wait() end script.Parent.MouseButton1Down(Viewer)
I have no idea where the problem is, (Yes, this is a GUI) and I have no output. Help? |
|
|
| Report Abuse |
|
|
|
| 03 Feb 2011 04:25 PM |
script.Parent.MouseButton1Down:connect(Viewer)
Forgot the :connect. |
|
|
| Report Abuse |
|
|
SDuke524
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
|
| 03 Feb 2011 04:26 PM |
| also with gui's it is MouseButton1Click not Down |
|
|
| Report Abuse |
|
|
|
| 03 Feb 2011 04:31 PM |
| MouseButton1Click and MouseButton1Down both work. |
|
|
| Report Abuse |
|
|
MXrcr20
|
  |
| Joined: 01 Oct 2008 |
| Total Posts: 2644 |
|
|
| 03 Feb 2011 04:32 PM |
| There used to be a wiki page about those functions, but I don't think it's still there. |
|
|
| Report Abuse |
|
|
lupine
|
  |
| Joined: 24 Jun 2008 |
| Total Posts: 3561 |
|
|
| 03 Feb 2011 07:45 PM |
| Ohhhh, wow. I forgot a :connect. Well.. Thanks. |
|
|
| Report Abuse |
|
|
Brad64
|
  |
| Joined: 17 Nov 2008 |
| Total Posts: 1772 |
|
|
| 03 Feb 2011 07:59 PM |
| Both work but i like MouseButton1Down better. :) |
|
|
| Report Abuse |
|
|
lupine
|
  |
| Joined: 24 Jun 2008 |
| Total Posts: 3561 |
|
|
| 03 Feb 2011 08:25 PM |
| Okay, now I can't change the Camera type, it's stuck on fixed I'm pretty sure and I'm not able to zoom in/out. I've tried changing the CameraType back to 5(Custom) |
|
|
| Report Abuse |
|
|
SDuke524
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
|
| 03 Feb 2011 09:23 PM |
| Have you tried removing the script? |
|
|
| Report Abuse |
|
|
lupine
|
  |
| Joined: 24 Jun 2008 |
| Total Posts: 3561 |
|
|
| 03 Feb 2011 09:25 PM |
| Removing & Repasting? No, I haven't.. But I've tried it with several more buttons, the same problem happens. |
|
|
| Report Abuse |
|
|
SDuke524
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
|
| 03 Feb 2011 09:32 PM |
local player = game.Players.LocalPlayer local view = game.Workspace.Views local sight = workspace.CurrentCamera local blab=true function Viewer() if blab then blab=false sight.CameraSubject = view.View1 player.PlayerGui.Viewer.Background.Visible = false player.PlayerGui.Viewer.NewCap.Visible = true wait() else sight:remove() player.PlayerGui.Viewer.Background.Visible = true player.PlayerGui.Viewer.NewCap.Visible = false end script.Parent.MouseButton1Down:connect(Viewer)
|
|
|
| Report Abuse |
|
|
lupine
|
  |
| Joined: 24 Jun 2008 |
| Total Posts: 3561 |
|
|
| 03 Feb 2011 09:45 PM |
| Same problem -- After pressing the button, I cannot zoom in/out, even when the view is focused back onto my character. |
|
|
| Report Abuse |
|
|
SDuke524
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
| |
|
lupine
|
  |
| Joined: 24 Jun 2008 |
| Total Posts: 3561 |
|
|
| 03 Feb 2011 11:48 PM |
| No. It's not that the camera feezes, you can swivel your view still, however you are not able to zoom in OR out. See for yourself, it's my second showcase titled ------ |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2011 12:42 AM |
What kind of script do you use?
Script or LocalScript? |
|
|
| Report Abuse |
|
|
lupine
|
  |
| Joined: 24 Jun 2008 |
| Total Posts: 3561 |
|
|
| 04 Feb 2011 08:36 AM |
| ... 'LocalPlayer', 'CurrentCamera'... LocalScript... |
|
|
| Report Abuse |
|
|
SDuke524
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
| |
|
lupine
|
  |
| Joined: 24 Jun 2008 |
| Total Posts: 3561 |
|
|
| 04 Feb 2011 10:32 PM |
| I'm going to try random things until this works, because I'm thiking you guys don't understand what the problem is... |
|
|
| Report Abuse |
|
|