Cutscene is not working, yet no typo

Yellou, so I got this cutscene script, and it was working for a while. Shortly after, it just randomly stopped. Is there any way to fix this and how? Btw, there is no output, everything seems to be fine.




I’m not sure. make sure there is no other part in the workspace named “Touch” and it should be fine. try this out too

--Client Script to begin cutscene
local TweenService = game:GetService('TweenService')
local camera = game.Workspace.CurrentCamera
local remote:RemoteEvent = game:GetService('ReplicatedStorage').Cutscene
local cutsceneTime = 3

local function tween(part1,part2)
	camera.CameraType = Enum.CameraType.Scriptable
	camera.CFrame = part1.CFrame
	
	local tween:Tween = TweenService:Create(camera, TweenInfo.new(cutsceneTime, Enum.EasingStyle.Sine, Enum.EasingDirection.Out) {CFrame = part2.CFrame}):Play()
	
	tween.Completed:Connect(function()
		camera.CameraType = Enum.CameraType.Custom
	end)
end

remote.OnClientEvent:Connect(function()
	tween(workspace.Cut1, workspace.Cut2)
end)

--Touched event to fire to the client
workspace.Touch.Touched:Connect(function(hit)
	if hit.Parent:FindFirstChildWhichIsA('Humanoid') and game.Players:FindFirstChild(hit.Parent) then
		local Character = hit.Parent
		local Player = game.Players:GetPlayerFromCharacter(Character)
		game.ReplicatedStorage.Cutscene:FireClient(Player)
	end
end)

Fix your tweenInfo variable. It’s throwing an error you can see it in the editor, try joining the parameters within the parenthesis ‘(’

1 Like

Didn’t work, same result. The error is gone but, yeah

I tried changing the names and the script, but same result