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

Help with lookVector and Interpolation?

Asked by 9 years ago

So I just found a cool new way to move a camera using lookvector and Interpolation,but every time I use it doesn't face the right part instead it faces the baseplate,why?

How it is at first and how it turns out in the end.

LocalScript:

local Player = game.Players.LocalPlayer
local Character = Player.Character
local Camera = game.Workspace.CurrentCamera
local Part = game.workspace.Part
local Frame = script.Parent
---------------------------
print(Part.CFrame.lookVector)
    Camera.CameraType = "Scriptable"
    Camera:Interpolate(CFrame.new(Part.CFrame.lookVector),CFrame.new(Character.Head.Position),1)
    ---------------------------
        Frame.Visible = true
            Frame:TweenPosition(UDim2.new(0, 0,0.592, 0),"Out","Back",0.7)

For some reason it won't show all of line 08.Try to click the view source.

0
Just put a newline in your code somewhere that it doesn't matter so that it wraps onto the next line! BlueTaslem 18071 — 9y

2 answers

Log in to vote
1
Answered by 9 years ago

Well, To my experience Scriptable CameraTypes are very odd in the way they work compared to another CameraType. So you will need to mess around with it until you get what you want

0
How would I mess around with it?(I'm new with scriptable cameras) kevinnight45 550 — 9y
Ad
Log in to vote
0
Answered by 9 years ago

Guess it resets.

0
wut kevinnight45 550 — 9y

Answer this question