ReplicatedStorage.Cutscenes.CutsceneModule:45: attempt to call a table value

  1. What do you want to achieve?
    Im trying to make a cutscene that move the part to other part with a tween

  2. What is the issue?
    12:54:30.310 ReplicatedStorage.Cutscenes.CutsceneModule:45: attempt to call a table value - Client - CutsceneModule:45
    12:54:30.310 Stack Begin - Studio
    12:54:30.310 Script ‘ReplicatedStorage.Cutscenes.CutsceneModule’, Line 45 - function moveCamera - Studio - CutsceneModule:45
    12:54:30.310 Script ‘Players.vipmejorV2.PlayerGui.Cutscene.Intro’, Line 7 - Studio - Intro:7
    12:54:30.310 Stack End - Studio

  3. What solutions have you tried so far?
    I tried looking for solutions in my browser by searching the error

Cutscene module:
function cutsceneModule.moveCamera(oldtween, tweenTime, target)
	local tween = TS:Create(oldtween, TweenInfo(tweenTime), {CFrame = target.CFrame})
	tween:Play()
	tween.Completed:Wait()
end

Cutscene intro localscript:
cutsceneModule.moveCamera(workspace.IslandCutscene.C1, 4, workspace.IslandCutscene.C2)

Try TweenInfo.new(TweenTime) If you look in dev forum you can also find other parameters for tweeninfo to make your tween cooler.

1 Like