If you look close to the bottom, I'm trying to get the Cutscene Script to play. I can't seem to get it to work. Since this script is inside a part in the Workspace, I can't locate it.

debounce = false

script.Parent.Touched:connect(function(hit)
	if debounce == true then return end
	debounce = true
	if  hit.Parent:findFirstChild("Humanoid") then
		for i = 1,20 do
			script.Parent.CFrame = script.Parent.CFrame + Vector3.new(.5,0,0)
			wait()
			script.Parent.Parent.Parent.Wall1.CanCollide = false
			script.Parent.Parent.Parent["Welcome!"]:Play()
	end
	wait(2)
	for i = 1,20 do
		script.Parent.CFrame = script.Parent.CFrame + Vector3.new(-.5,0,0)
		wait()
		script.Parent.Parent.Parent.Wall1.CanCollide = true
		local cutscene = game.StarterGui.CutsceneScript
		cutscene.Disabled = false
	end
	end
	debounce = false
	end)

4 comments

0

local script?

0

No regular script.

0

The Cutscene Script is a local script

0

that's the problem, you need to access the player first then do, player.PlayerGui.CutsceneScript