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?
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