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 » Scripters
Home Search
 

Re: Camera help

Previous Thread :: Next Thread 
IceFromSpace is not online. IceFromSpace
Joined: 12 Dec 2015
Total Posts: 710
14 Dec 2015 02:37 PM
Why won't this work? The camera doesn't change at all..


repeat
index = index + 1
print(index)
cam.CameraSubject = workspace.Part
cam.CoordinateFrame = CFrame.new(workspace.Part.Position + Vector3.new(index,index, index))
print(cam.CoordinateFrame)
wait(.5)
until v == true
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
14 Dec 2015 02:43 PM
Did you declare index at the top?
Report Abuse
IceFromSpace is not online. IceFromSpace
Joined: 12 Dec 2015
Total Posts: 710
14 Dec 2015 02:43 PM
yes

local index = 0
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
14 Dec 2015 02:44 PM
Does it ever print anything?
Report Abuse
IceFromSpace is not online. IceFromSpace
Joined: 12 Dec 2015
Total Posts: 710
14 Dec 2015 06:41 PM
Yes it does
Report Abuse
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
14 Dec 2015 06:58 PM
Here is my exact local script inside of the player:

index = 0
local player = game.Players.LocalPlayer
local cam = game.Workspace.CurrentCamera
v = false
repeat
index = index + 1
print(index)
cam.CameraSubject = workspace.Part
cam.CoordinateFrame = CFrame.new(workspace.Part.Position + Vector3.new(index,index, index))
print(cam.CoordinateFrame)
wait(.5)
until v == true

The wait(.5) makes it ugly, but it works
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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