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

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

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

2 comments

0

Is the code in a local script or in a normal one?

0

local script

1 answer

✓ Accepted answer

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

(The script name).Disabled = false

3 comments

0

i did that

0

it wont work

0

i found out how to do it!

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