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: CameraSubject problem..

Previous Thread :: Next Thread 
lupine is not online. 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
badguy116p is not online. badguy116p
Joined: 02 May 2009
Total Posts: 201
03 Feb 2011 04:25 PM
script.Parent.MouseButton1Down:connect(Viewer)

Forgot the :connect.
Report Abuse
SDuke524 is not online. 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
badguy116p is not online. badguy116p
Joined: 02 May 2009
Total Posts: 201
03 Feb 2011 04:31 PM
MouseButton1Click and MouseButton1Down both work.
Report Abuse
MXrcr20 is not online. 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 is not online. 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 is not online. Brad64
Joined: 17 Nov 2008
Total Posts: 1772
03 Feb 2011 07:59 PM
Both work but i like MouseButton1Down better. :)
Report Abuse
lupine is not online. 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 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
03 Feb 2011 09:23 PM
Have you tried removing the script?
Report Abuse
lupine is not online. 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 is not online. 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 is not online. 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 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
03 Feb 2011 11:05 PM
did you click twice?
Report Abuse
lupine is not online. 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
izzatnasruna is not online. izzatnasruna
Joined: 09 Jun 2009
Total Posts: 1927
04 Feb 2011 12:42 AM
What kind of script do you use?

Script or LocalScript?
Report Abuse
lupine is not online. lupine
Joined: 24 Jun 2008
Total Posts: 3561
04 Feb 2011 08:36 AM
... 'LocalPlayer', 'CurrentCamera'... LocalScript...
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
04 Feb 2011 12:44 PM
sight.CameraType="Attach"
Report Abuse
lupine is not online. 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
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