I was trying to use a event called InterpolationFinished but I got a error,how do I fix it,and what does it mean?
Output:
Workspace.Player1.Right Leg.LocalScript:9: attempt to call method 'InterpolationFinished' (a userdata value)
Script that gives the LocalScript:
local Part = script.Parent.Part
local Touched = false
--------------------------
Part.Touched:connect(function(Player)
Touched = true
if not Touched
then
Wait(5)
Touched = false
else
for _,Scripts in pairs (script:GetChildren()) do
Cloned = Scripts:Clone()
Cloned.Parent = Player
Cloned.Disabled = false
end
end
end)
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)

6 comments
How can I call it?
No, you shouldn't be calling it; the error says you attempted to but I don't see that expressed in this snippet
So is there a way to fix it?
Try adding a wait() after you call Interpolate. As long as the user's computer isn't lagging to he point of crashing, it will let the event connect before the interpolation finishes, although this error shouldn't be occurring in the first place.
Thanks it worked!
You should be using Color3 as of 2020's updates not Vector3