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 3 years ago
Edited 3 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 — 3y
0
local script TheForgottenScript 4 — 3y

1 answer

Log in to vote
0
Answered by 3 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 — 3y
0
it wont work TheForgottenScript 4 — 3y
0
i found out how to do it! TheForgottenScript 4 — 3y
Ad

Answer this question