32luigi
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 83 |
|
|
| 20 Jul 2016 08:22 PM |
Im making a char creation and I want the character to sort of have movement in place I also want to have the camera effects focused on the player. Problem is I dont know how to do this so do any of you have scripts for reference or could help me. I know the second one is called camera manipulation but idk what the first one is. Help!!
|
|
|
| Report Abuse |
|
|
32luigi
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 83 |
|
| |
|
|
| 20 Jul 2016 10:38 PM |
Use animations for the first. (ex: local animId=180426354 local plr=game.Players.LocalPlayer local chr=workspace:WaitForChild(plr.Name) local anim=Instance.new('Animation',chr.Humanoid) anim.AnimationId='rbxassetid://'..animId chr.Humanoid:LoadAnimation(anim):Play())
Make sure no other animations are playing if you only want that one though.
For the second you can set the CFrame property of the camera to be in a certain place and use lookvector to change where the camera is pointing. (ex: local pos=Vector3.new(0,0,0) local lookv=Vector3.new(1,1,1) workspace.CurrentCamera.CFrame=CFrame.new(pos,lookv)) |
|
|
| Report Abuse |
|
|
32luigi
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 83 |
|
|
| 20 Jul 2016 10:58 PM |
So when I tested the animation script in play solo nothing worked
I just copied and pasted the script. How can I fix?
|
|
|
| Report Abuse |
|
|
|
| 20 Jul 2016 11:02 PM |
| Are you sure the default animation script didn't play any animations? By default theres a localscript in a player's character called 'Animate'. Try removing it or disabling it, then run the animation script. |
|
|
| Report Abuse |
|
|
32luigi
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 83 |
|
| |
|