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: Tracking player

Previous Thread :: Next Thread 
Gamati is not online. Gamati
Joined: 14 May 2011
Total Posts: 83
23 Jul 2014 07:23 PM
Hi,

I've been trying to lock the camera onto the player so that they can move freely but the camera is constrained to a single line of motion. I've written this:

cam = workspace.CurrentCamera

function camerascene1()
print("tracking!")
cam.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
cam.CameraType = 3
end

However, whenever I call the function, it will print "tracking!" but not change the CameraType to track. What am I missing? Thanks!
Report Abuse
Gamati is not online. Gamati
Joined: 14 May 2011
Total Posts: 83
23 Jul 2014 10:06 PM
Anyone have info on this? It's a straightforward function, I don't understand what's going wrong.
Report Abuse
blockoo is not online. blockoo
Joined: 08 Nov 2007
Total Posts: 17202
23 Jul 2014 10:08 PM
cam.CameraType = "Track"

Try that
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