Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Help with lookVector and Interpolation?

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.

1 comment

0

Just put a newline in your code somewhere that it doesn't matter so that it wraps onto the next line!

2 answers

✓ Accepted answer

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

1 comment

0

How would I mess around with it?(I'm new with scriptable cameras)

This discussion is preserved as it was. New answers, comments, and votes are closed.