Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to manipulate the camera?

Asked by
gdunn2 54
7 years ago

**I have made this script

game.Workspace.CurrentCamera.CFrame = CFrame.new(-14.3748913, 9.57704926, 4.89017248, 0.999780655, 0.00510292919, -0.0203151722, -4.65661343e-010, 0.969870865, 0.243619949, 0.020946268, -0.243566513, 0.969658017)

it is in a local script. Ive tried putting it in playergui and backpack but neither work. It works in studio test mode but not in game. here is the game https://www.roblox.com/games/697339037/Warhorse#!/about

2
Make sure the Camera is set to scriptable when you are changing its CFrame like that. It would also be helpful to both you and us if you told us what effect you are trying to achieve. WingedHorizen201 124 — 7y
0
Sorry i should have included more information. I do have the camera set to scriptable and i am trying to make it so the player's character gets deleted, which is done, and make their camera go to that position, which works in studio but not in game. Thanks for your response. gdunn2 54 — 7y
0
You should never write out a full CFrame. cabbler 1942 — 7y

Answer this question