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: Camera Help?

Previous Thread :: Next Thread 
AlternativeAcc is not online. AlternativeAcc
Joined: 29 Mar 2012
Total Posts: 1337
27 May 2013 10:05 AM
I have code to look at a part from a birds-eye view using the camera, and it works fine, except when the camera looks at the birds eye view, my character can't move.

Here is the current code:
x = workspace.Part -- the part to look at.
camera.CameraType = "Scriptable"
camera.CoordinateFrame = CFrame.new(x.Position+Vector3.new(0,70,0),x.Position)

I tried this:

camera.CameraType = "Scriptable"
camera.CoordinateFrame = CFrame.new(x.Position+Vector3.new(0,70,0))
camera.Focus = x (and x.Position).

But it kept looking the opposite direction. The first code works,except my character can't move. WHY??? Ive heard that birds eye views of your character makes your character not able to move, which makes NO sense to me WHATSOEVER XD.

Please help me get this to work while having your character move in a birds-eye view! Thanks!

-- cardgamechampion/AlternativeAcc

Report Abuse
AlternativeAcc is not online. AlternativeAcc
Joined: 29 Mar 2012
Total Posts: 1337
27 May 2013 04:26 PM
Please help guys Ive been stuck for a month about... XD.
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
27 May 2013 04:29 PM
Same happened to me, so I recreated walking with body velocity.
Report Abuse
AlternativeAcc is not online. AlternativeAcc
Joined: 29 Mar 2012
Total Posts: 1337
27 May 2013 04:45 PM
Could you show me or tell me how to recreate walking with BodyVelocity. Thanks.
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
27 May 2013 04:48 PM
Eh, well detect what keys are pressed, and apply velocity to mentioned direction.
Report Abuse
metr0idhunterx is not online. metr0idhunterx
Joined: 15 Feb 2011
Total Posts: 257
27 May 2013 04:49 PM
The second one kept looking in the other direction? ITS SO SIMPLE you have to set it to W for wumbo!

I know I'm smart no need to comment :3
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
27 May 2013 04:51 PM
Obtw 2. didn't work, because scriptable camera type doesn't use Focus property.
Report Abuse
metr0idhunterx is not online. metr0idhunterx
Joined: 15 Feb 2011
Total Posts: 257
27 May 2013 05:12 PM
What about a script that just makes the player completely zoomed out.

And also I noticed that First person camera script ONLY work on players not the owners/creators. That is why most of them have an admin command that toggles it for the owner, this could be the case.
Report Abuse
BJCarpenter is not online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
27 May 2013 05:30 PM
This is probably your problem

camera.CameraType = "Scriptable"

One seems to be able to move Player with any other setting.

Try "follow" or "Watch".

Experiement with ALL of the settings of ALL of the other Camera Properties also ,and u will neveragain have a problem with the Camera, will u?
Report Abuse
BJCarpenter is not online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
27 May 2013 05:36 PM
So r u telling me, when someone asks me how to Custom Jump or strafe Player, all I have to do is tell them to turn the Camera to Scriptable, and manipulate the Player all they want?

Is that an undocumented FEATURE?

Or is that just what "Scriptable" means, Camera AND Keys?
Report Abuse
BJCarpenter is not online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
27 May 2013 05:42 PM
If u still can't move Player then it has nothing to do with the Camera, and your bug is not in this bit of code..,... (It just happens at the same time: a common de-bugging mal-assumption.

"Check your Assumptions...." - Brian,
--Brian
Report Abuse
BJCarpenter is not online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
27 May 2013 06:25 PM
STOP randomly writing script. U will get nowhere.

Take code that u know works, and tweek it.
This is how u focus on a Dubject:

-- camera.CameraSubject = missile
-- camera.CameraType = "Follow"
-- camera.CoordinateFrame = camera.CoordinateFrame + Vector3.new(0, 1, -2)
Report Abuse
BJCarpenter is not online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
27 May 2013 06:27 PM
This is how u re-store Camera:

local camera = workspace.CurrentCamera
local subject = camera.CameraSubject -- save
local type = camera.CameraType --save
.
.
.

......... camera.CameraSubject = subject
......... camera.CameraType = type
Report Abuse
AlternativeAcc is not online. AlternativeAcc
Joined: 29 Mar 2012
Total Posts: 1337
28 May 2013 11:06 AM
@metr0idhunterx

I don't think you are smart for the wumbo thing :P. I've seen that episode of Spongebob, but I really need help with this code XD. Thanks for trying though

@bj

So changing the CameraType to Scriptable does not make the player unable to move?

I am not trying to zoom in to a part, I am trying to make a birds eye view of the player with a transparent roof on top of them, AND have them able to move.

Thanks for the help!
Report Abuse
AlternativeAcc is not online. AlternativeAcc
Joined: 29 Mar 2012
Total Posts: 1337
28 May 2013 11:07 AM
Oh, and the reason why I didn't change the other camera types is because then the player can move their camera view around with the right mouse button, I don't want that as well as above.
Report Abuse
metr0idhunterx is not online. metr0idhunterx
Joined: 15 Feb 2011
Total Posts: 257
28 May 2013 01:18 PM
By "Bird's eye" view, you mean completely zoomed out right? zooming out with the scroll button on your mouse/keypad (if you have one) or press i or o will zoom it out. You just have to make a script to lock it the way it is zoomed out.
Report Abuse
AlternativeAcc is not online. AlternativeAcc
Joined: 29 Mar 2012
Total Posts: 1337
28 May 2013 01:42 PM
I have no idea how you would make it so that you are stuck completely zoomed out, if that's what you mean. Idk how to do what you said, could you tell me how to do this? Thanks!
Report Abuse
metr0idhunterx is not online. metr0idhunterx
Joined: 15 Feb 2011
Total Posts: 257
28 May 2013 01:53 PM
I'm not the most expert scripter... or the greatest....or the goodest.... or any good at all... Maybe, make a GUI that requirs the players to zoom out, I know they do that for zoomed in but idk about zoomed out if it would work the same way... try reversing the code in a gui script for first person view.
Report Abuse
AlternativeAcc is not online. AlternativeAcc
Joined: 29 Mar 2012
Total Posts: 1337
29 May 2013 03:19 PM
By zoom out, do you mean that there is a way to force the mouse to zoom out all the way, or just to make the camera zoom out, because if its that, it would just be this code modified, but then I may be able to see what is going on with the script :P.

If its the mouse thing, please tell me how to do that because I have no idea lol. Thanks.

-- cardgamechampion/AlternativeAcc
Report Abuse
poopmannampoop is not online. poopmannampoop
Joined: 12 Oct 2010
Total Posts: 132
29 May 2013 03:20 PM
U TAKE CAMER AND SHOVE IT UP UR GOLF CLUB
Report Abuse
AlternativeAcc is not online. AlternativeAcc
Joined: 29 Mar 2012
Total Posts: 1337
29 May 2013 05:49 PM
Are you a 5 year old? I would guess so from your name. Your age doesn't matter, what matters is what you post. This post is totally not worth it... Please don't post on the forums unless it is an actually useful. Thanks.
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
29 May 2013 05:52 PM
Don't give what he expects. He has replies ready to deploy.
Report Abuse
AlternativeAcc is not online. AlternativeAcc
Joined: 29 Mar 2012
Total Posts: 1337
01 Jun 2013 03:27 PM
What? Lol.
Report Abuse
metr0idhunterx is not online. metr0idhunterx
Joined: 15 Feb 2011
Total Posts: 257
01 Jun 2013 08:06 PM
mah boi, just go play a game and constantly press the letter O on your keyboard and you'll see what I mean. Just need a script to lock like that.
Report Abuse
AlternativeAcc is not online. AlternativeAcc
Joined: 29 Mar 2012
Total Posts: 1337
03 Jun 2013 05:06 PM
I know exactly what you mean, I just don't know how to make a script script thatlocks like that zoomed out...
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