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
 

Cant rotate or zoom when in spectating mode, help?

Previous Thread :: Next Thread 
PlaceRebuilder is not online. PlaceRebuilder
Joined: 29 Apr 2008
Total Posts: 1056
21 Aug 2014 03:50 PM
My function for viewing a person:

function watch(player)
if (player ~= nil) then
local cam = game.Workspace.CurrentCamera
cam.CameraSubject = player.Character.Humanoid
cam.CameraType = Enum.CameraType.Custom
cam.FieldOfView = 70
script.Parent.Spectator.Controls.Nametag.Text = player.Name
end
end

Thing is, you can't rotate around the person or zoom in and out.
How does people do this?
Report Abuse
PlaceRebuilder is not online. PlaceRebuilder
Joined: 29 Apr 2008
Total Posts: 1056
21 Aug 2014 04:02 PM
Is there seriously NOBODY who knows this basic fundamental stuff?!
Everyone has it, share if u care!
Report Abuse
DrunkerScripter is not online. DrunkerScripter
Joined: 22 Jun 2013
Total Posts: 275
21 Aug 2014 04:53 PM
I cannot see any overwhelming errors, possibly set the Camera Mode to Custom before setting the CameraSubject. Thats the only thing I can think of?
Report Abuse
PlaceRebuilder is not online. PlaceRebuilder
Joined: 29 Apr 2008
Total Posts: 1056
21 Aug 2014 05:55 PM
Thanks, but it didn't work either..
Do I have to do some "release" mousebutton hack or something incase they die with mousebutton down?
Report Abuse
TrainingToTroll is not online. TrainingToTroll
Joined: 27 Oct 2012
Total Posts: 1757
21 Aug 2014 06:02 PM
I would say different camera types but ehh who knows. There is like 6 I think they all do something different.
Report Abuse
TrainingToTroll is not online. TrainingToTroll
Joined: 27 Oct 2012
Total Posts: 1757
21 Aug 2014 06:04 PM
Well, I forgot to say if you zoom in while in one of those changed cameras... Your screwed. (stuck)
Report Abuse
PlaceRebuilder is not online. PlaceRebuilder
Joined: 29 Apr 2008
Total Posts: 1056
22 Aug 2014 05:40 PM
Its wierd because I tried a localscript in a hopperbin that only changed the camera subject and it worked. But when I use mine in a screengui it gets stuck and cant rotate nor zoom (altho it does change subject)..
:/
Report Abuse
PlaceRebuilder is not online. PlaceRebuilder
Joined: 29 Apr 2008
Total Posts: 1056
24 Aug 2014 04:42 PM
AH! I think Ik what the issue is.
I don't have a character! When in spectate your character is nil..
Report Abuse
DrunkerScripter is not online. DrunkerScripter
Joined: 22 Jun 2013
Total Posts: 275
24 Aug 2014 04:45 PM
(facepalm)
Report Abuse
lillil is not online. lillil
Joined: 02 Aug 2006
Total Posts: 2168
24 Aug 2014 04:49 PM
It might just be you. My spectating gui works fine.
Report Abuse
TrainingToTroll is not online. TrainingToTroll
Joined: 27 Oct 2012
Total Posts: 1757
24 Aug 2014 06:02 PM
(Facepalm)
Report Abuse
PlaceRebuilder is not online. PlaceRebuilder
Joined: 29 Apr 2008
Total Posts: 1056
25 Aug 2014 09:47 AM
Aw comeon guys, one would not think the camera was dependent on having a character
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