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

How do I activate a script after I click a button?

Because I have this FPS game, with a Choose a class gui in it, and I want the FPS script to kick in AFTER they choose a class, How can I make that happen?

game.StarterGui.Class.Main.LocalScript.Disabled = true

function Disabled() if game.StarterGui.Class.Main.TextButton.onClicked == true then game.StarterGui.Class.Main.LocalScript.Disabled = false end end

Will this work?

2 answers

Did you try it first at least?

1 comment

0

Yeah, I tried to insert a script into the frame that doesn't activate the FPS until something is clicked, BUT THEN I came to a conclusion by Adding wait(7)

You could add a wait.

1 comment

0

Yeah, I did, read my comment above.

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