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

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

Asked by 9 years ago

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

Log in to vote
1
Answered by 9 years ago

Did you try it first at least?

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) 789zaya 0 — 9y
Ad
Log in to vote
0
Answered by 9 years ago

You could add a wait.

0
Yeah, I did, read my comment above. 789zaya 0 — 9y

Answer this question