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

How do i make a gui button make a frame visible but also make a script in the frame enabled?

Asked by 2 years ago
Edited 2 years ago

i made a script for a gui button to make a frame visible but to also make a script in a the textlabel in the frame enabled but it wont work heres the LOCAL script:

local F = game.Players.LocalPlayer.PlayerGui.CreditsGui.Frame
local T = F.Text

script.Parent.MouseButton1Click:Connect(function()
    F.Visible = true
    T.Script.Disabled = false
end)

btw im not an anyway pateint!!

0
Is the code in a local script or in a normal one? Mafincho 43 — 2y
0
local script TheForgottenScript 4 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

you can reference the script that youre using and you can do

(The script name).Disabled = false

0
i did that TheForgottenScript 4 — 2y
0
it wont work TheForgottenScript 4 — 2y
0
i found out how to do it! TheForgottenScript 4 — 2y
Ad

Answer this question