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

Help with InterpolateFinished event?

Asked by 10 years ago

How do I use it? I tried using it but I got a error.

Error: Workspace.Player1.Right Leg.LocalScript:9: attempt to call method 'InterpolationFinished' (a userdata value)

LocalScript:

local Player = game.Players.LocalPlayer
local Character = Player.Character
local Camera = game.Workspace.CurrentCamera
local Part = game.Workspace.Model.Part
local Part1 = game.Workspace.Model.Part1
-------------------------------------------
    Camera.CameraType = "Scriptable"
    Camera:Interpolate(CFrame.new(Part.CFrame.lookVector), CFrame.new(Part.CFrame.p),1)
    Camera.InterpolationFinished:connect(function()
    Camera.CameraSubject = Part
    Camera.CameraType = "Attach"
    end)

Answer this question