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

What do I add to end this Cut Scene Script?

Asked by
hdababo -5
3 years ago

Hi all, So im making a cutscene and I am stuck on something. So I already made the script to START the cutscene except I dont know what to add to end it and get back to your own screen, here is the script:

local cameraInterpolateEvent = game.ReplicatedStorage.Remotes.cameraInterpolateEvent local cameraToPlayerEvent = game.ReplicatedStorage.Remotes.cameraToPlayerEvent

local function move_npc(npc,cp) local maxWaitTime = 15 local walkController = npc.Humanoid:LoadAnimation(walkAnim) walkController:Play() npc.Humanoid:MoveTo(cp.Position) repeat wait(1) maxWaitTime = maxWaitTime - 1 until (npc.HumanoidRootPart.Position - cp.Position).magnitude < 2.5 or maxWaitTime <= 0 walkController:Stop() end

wait(5)

cameraInterpolateEvent:FireAllClients(game.Workspace.CameraGroup.CameraPart.CFrame, game.Workspace.CameraGroup.TargetPart.CFrame, 1)

Answer this question