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: More Camera help...

Previous Thread :: Next Thread 
xXfurheadXx is not online. xXfurheadXx
Joined: 22 Oct 2012
Total Posts: 409
14 Jun 2014 10:15 PM
Okay so... I have my camera positioned where I want it, and it's focus is on a model. How do I get it to move from side to side??? I tried CFrame + Vector3.new but... it didn't move at all, plus if it did, it's focus would still be on the model. I'll show you what I have...

local cam = game.Workspace.CurrentCamera
cam.CameraType = "Scriptable"
cam.CoordinateFrame = CFrame.new(Vector3.new(-5,18,18), game.Workspace.FollowMe:GetModelCFrame().p)

function lala()
cam.CoordinateFrame=CFrame + CFrame.new(.2,0,0)
wati(.1)
end
while wait() do
lala()
end
Report Abuse
DiamondBladee is not online. DiamondBladee
Joined: 24 Feb 2013
Total Posts: 3527
14 Jun 2014 10:17 PM
Line 4.

Wassup with the unclosed )?
Report Abuse
xXfurheadXx is not online. xXfurheadXx
Joined: 22 Oct 2012
Total Posts: 409
14 Jun 2014 10:20 PM
Oh, line 4 is actually a continuation of line 3... didn't fit on forum page
Report Abuse
DiamondBladee is not online. DiamondBladee
Joined: 24 Feb 2013
Total Posts: 3527
14 Jun 2014 10:20 PM
Then I dont think that's a valid CFrame value.
Report Abuse
xXfurheadXx is not online. xXfurheadXx
Joined: 22 Oct 2012
Total Posts: 409
14 Jun 2014 10:21 PM
Well, it does work. It sets the initial Look Vector to the model, but I can't get it to move
Report Abuse
Fragility is online. Fragility
Joined: 12 Mar 2011
Total Posts: 483
14 Jun 2014 10:23 PM
You can't add cframe, try CFrame * CFrame.new(.2,0,0)
Report Abuse
xXfurheadXx is not online. xXfurheadXx
Joined: 22 Oct 2012
Total Posts: 409
14 Jun 2014 10:25 PM
Nope, but would Vector3 work? Idk cuz the wiki said it can't, and it didn't but maybe i wrote it wrong
Report Abuse
Fragility is online. Fragility
Joined: 12 Mar 2011
Total Posts: 483
14 Jun 2014 10:29 PM
You also misspelled wait on line 8
Report Abuse
xXfurheadXx is not online. xXfurheadXx
Joined: 22 Oct 2012
Total Posts: 409
14 Jun 2014 10:32 PM
i iz bd spller dnt blaim me
Report Abuse
DiamondBladee is not online. DiamondBladee
Joined: 24 Feb 2013
Total Posts: 3527
14 Jun 2014 10:34 PM
Bad spellers of the world, untie!
Report Abuse
xXfurheadXx is not online. xXfurheadXx
Joined: 22 Oct 2012
Total Posts: 409
14 Jun 2014 10:41 PM
zdil dnt wrk doe, sum help plz
Report Abuse
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
14 Jun 2014 10:45 PM
Lol xD
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
14 Jun 2014 10:48 PM
local cam = game.Workspace.CurrentCamera
cam.CameraType = "Scriptable"
cam.CoordinateFrame = CFrame.new(Vector3.new(-5,18,18), game.Workspace.FollowMe:GetModelCFrame().p)

while wait() do
cam.CoordinateFrame=CFrame + Vector3.new(.2,0,0)
wait(.1)
end

Like this? If you want it to move relative to the rotation, do * CFrame.new(.2, 0, 0)
Report Abuse
xXfurheadXx is not online. xXfurheadXx
Joined: 22 Oct 2012
Total Posts: 409
14 Jun 2014 10:59 PM
still doesn't work :| I do appreciate the help though
lolz i fourgt eye wuz bad spelar
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
14 Jun 2014 11:51 PM
hmmm


local cam = game.Workspace.CurrentCamera
cam.CameraType = "Scriptable"
cam.CoordinateFrame = CFrame.new(Vector3.new(-5,18,18), game.Workspace.FollowMe:GetModelCFrame().p)

while wait() do
cam.CoordinateFrame= cam.CoordinateFrame + Vector3.new(.2,0,0)
wait(.1)
end
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
15 Jun 2014 01:58 AM
^ Woops, yeah. Forgot the cam.CoordinateFrame. Idk why I put CFrame
Report Abuse
xXfurheadXx is not online. xXfurheadXx
Joined: 22 Oct 2012
Total Posts: 409
15 Jun 2014 11:10 AM
It's always a rookie mistake for me...
Report Abuse
xXfurheadXx is not online. xXfurheadXx
Joined: 22 Oct 2012
Total Posts: 409
15 Jun 2014 11:14 AM
Well, thx everyone for the contribution. It's good to know that people in this community are trying to help the best they can. :3
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