Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

My cutscene won't load, what's the problem?

local gamepass = script.Parent.Parent.Parent.Parent.Gamepass
local set = script.Parent.Parent.Parent.Parent.Settings
local top = script.Parent.Parent.Parent.Parent.Topbar
local label = script.Parent
local frame2 = label.Parent.Parent.Play
local plr = game:GetService("Players").LocalPlayer
local gui = plr:WaitForChild("PlayerGui")
local cut = game.StarterGui.CutsceneScript

gui:SetTopbarTransparency(0)


label.Text = "Loading..."
wait(0.3)
label.Text = "Loading.."
wait(0.3)
label.Text = "Loading."
wait(0.3)
label.Text = "Loading..."
wait(0.3)
label.Text = "Loading.."
wait(0.3)
label.Text = "Loading."
wait(0.3)
label.Text = "Loading..."
wait(0.3)
label.Text = "Loading.."
wait(0.3)
label.Text = "Loading."
wait(0.3)
label.Text = "Loading..."
wait(0.3)
label.Text = "Loading.."
wait(0.3)
label.Text = "Loading."
wait(0.3)



cut.Disabled = false
cut.Parent.CutsceneScript.SkipCutsceneGui.Enabled = true



if cut.Disabled == true then
	frame2.Visible = true
end


label.Parent.Visible = false


frame2.TextButton.MouseButton1Click:Connect(function(player)
	gamepass.Enabled = true
	set.Enabled = true
	top.Enabled = true
	gui:SetTopbarTransparency(0.5)
end)

Why my script won't work?

4 comments

0

Can you please put your code between ~~~ ~~~

0

Yes

0

You probably made a cutscene before and deleted it.

0

Markusis, I did made a cutscene and deleted it. But I make a new one and I add the script again.

1 answer

✓ Accepted answer

I know the Probloem, I had it. To activate or deactivate a script you need to use an if Statment like this:

local Script = game.StarterGui.LocalScript

if 1+1 == 2 then --or something else--
Script.Disabled = false
end

but please you can make a screenshoot or at least write the script as I did it, otherwise it is hard to read thank you and I hope this advice has helped you

This discussion is preserved as it was. New answers, comments, and votes are closed.