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

CameraSubject won't work?

Asked by 10 years ago
    local myCamera = game.Workspace.CurrentCamera
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
c = game.Workspace.Part
myCamera.CameraSubject=c
Mouse.KeyDown:connect(function(Key)
    if Key == "w" then
    local vector = Vector3.new(myCamera.CoordinateFrame.X,myCamera.CoordinateFrame.Y,myCamera.CoordinateFrame.Z)
    c.CFrame = CFrame.new(c.Position + (myCamera.CoordinateFrame.lookVector * 1), vector + (myCamera.CoordinateFrame.lookVector * 12))
end
end)

The CameraSubject won't really "follow" the part. Please help.

Answer this question