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
 

Animations in first person?

Previous Thread :: Next Thread 
daireb is not online. daireb
Joined: 16 Nov 2012
Total Posts: 726
06 Apr 2016 10:36 AM
Is there any way to make animations play properly in first person?
I need you to be able to see your body and for the camera to follow the head's position.
I've tried loads, and I have a semi-working design, but it's really clumsy and I want to see if there's any better way to do it.

To clarify:
- I can script it myself, I just need advice on what technique to use
- You need to be able to see your own body
- The camera has to follow the position of the head (eg: if my character bends down, I want the camera following that motion, and so getting lower)
- You need to be able to look around in a way that resembles what roblox currently has in FP

Any ideas???
Report Abuse
Protoduction is not online. Protoduction
Joined: 27 Jul 2012
Total Posts: 1054
06 Apr 2016 11:20 AM
When the character spawns clone all body parts and weld them to their original body parts? If you want clothes to show, clone them into a new model (this model cant be a child of the character) and insert clothes and humanoid.

In respects to camera position, I believe the camera does follow the head's position. If you wanted to make it follow the heads rotation you'd lose the ability to rotate like in normal 1st person ROBLOX. If the camera doesnt follow position, just do

camera.CoordinateFrame = CFrame.new(head.Position) * camera.Rotation

or something like that I can't really work it out now...
Report Abuse
daireb is not online. daireb
Joined: 16 Nov 2012
Total Posts: 726
06 Apr 2016 12:26 PM
I've tried that, although I used localparts to render the character (to stop Z-fighting for other players), and in regard to camera movement, it is locked to HumanoidRootPart, which can't be easily manipulated without ruining pretty much every feature of a humanoid.
My current method simulates normal roblox first person, using RenderStepped to update the CFrame of the camera every frame based on mouse movement. It's not a very elegant solution, and raises even more issues, which is why I'd like any other ideas as to what I could do :P
Report Abuse
daireb is not online. daireb
Joined: 16 Nov 2012
Total Posts: 726
06 Apr 2016 01:10 PM
bump
Report Abuse
daireb is not online. daireb
Joined: 16 Nov 2012
Total Posts: 726
06 Apr 2016 02:38 PM
bump 2
Report Abuse
daireb is not online. daireb
Joined: 16 Nov 2012
Total Posts: 726
07 Apr 2016 11:50 AM
bump 3
Report Abuse
22SniperZ22 is not online. 22SniperZ22
Joined: 29 Jan 2014
Total Posts: 23
07 Apr 2016 12:03 PM
Yep, use this script: https://www.roblox.com/For-daireb-item?id=395004018
Report Abuse
daireb is not online. daireb
Joined: 16 Nov 2012
Total Posts: 726
07 Apr 2016 12:48 PM
While that script is cool, it doesn't do exactly what I want ALTHOUGH it does contain the kind of function I want to use, and I can reverse engineer the stuff I need.
THANK YOU!
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