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: I don't know why this cam script doesnt work

Previous Thread :: Next Thread 
Scaryadi is not online. Scaryadi
Joined: 31 May 2011
Total Posts: 34
18 May 2013 02:46 PM
This is my script:

------------------------------------------------------------------------------------------------------------------
local camera = workspace.CurrentCamera
camera.CamSubject = script.Parent.Torso
camera.CameraType = "Scriptable"
cam.CoordinateFrame = CFrame.new(53.5, 17.49, 16.5)
cam.Focus = script.Parent.Torso
--------------------------------------------------------------------------------------------------------------------
Yes I have made a script that adds this script into the player. Yes I want this to be like a 2d style camera that follows you, just tell me why it isnt working
Report Abuse
Geomaster is not online. Geomaster
Joined: 05 Jul 2008
Total Posts: 1480
18 May 2013 02:50 PM
Troubleshooting Flowchart

1: Is it a localscript?

Yes (Go to 2)
No (Make it a localscript.)

2. Is it in the backpack?
Yes (Go to 3)
No (Have it be in the backpack, not the player)

3. Is your coding correct?
Yes (End Step)
No (Below)

Try this:


player = game.Players.LocalPlayer -- Can be used if localscript
char = player.Character
local camera = workspace.CurrentCamera
camera.CamSubject = char.Torso
camera.CameraType = "Scriptable"
cam.CoordinateFrame = CFrame.new(53.5, 17.49, 16.5)
cam.Focus = char.Torso

Report Abuse
Scaryadi is not online. Scaryadi
Joined: 31 May 2011
Total Posts: 34
18 May 2013 03:09 PM
Nice Idea, but it still doesn't work...
Report Abuse
Geomaster is not online. Geomaster
Joined: 05 Jul 2008
Total Posts: 1480
18 May 2013 03:14 PM
Well, I think you have to make the type scriptable before anything else can be done.
Report Abuse
Scaryadi is not online. Scaryadi
Joined: 31 May 2011
Total Posts: 34
18 May 2013 03:43 PM
That's what I'm trying, but it doesn't seem to work.
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