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

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

Asked by 5 years ago
Edited by DeceptiveCaster 5 years ago
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?

0
Can you please put your code between ~~~ ~~~ mixgingengerina10 223 — 5y
0
Yes Eternalove_fan32 188 — 5y
0
You probably made a cutscene before and deleted it. MarkusIsCoolForever -2 — 5y
0
Markusis, I did made a cutscene and deleted it. But I make a new one and I add the script again. Gabe_PlayzRoblox 2 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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

Ad

Answer this question