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

Function of a click of text button isn't working. why?

Asked by
hallmk7 50
5 years ago

hello everyone, i made a gui consisting of frames. in the following script(local script inside of the frame) i want a script in which a player when enters his name in textbox makes a gui tween, but the tween part doesn't work after i click the button for the same. here's the local script:-

01local player = game.Players.LocalPlayer
02local textBox = player.PlayerGui.OrderGui:WaitForChild("MainFrame").TextBox
03local MainFrame = player.PlayerGui.OrderGui.MainFrame
04local MainFrame2 = player.PlayerGui.OrderGui.MainFrame2
05local Players = game.Players:GetPlayers()
06local functionEnabler = false
07local EnterButton = player.PlayerGui.OrderGui.MainFrame.EnterButton
08local Players = game.Players:GetPlayers()
09 
10textBox:GetPropertyChangedSignal("Text"):Connect(function()
11 
12    EnterButton.MouseButton1Click:Connect(function()
13 
14    local NameEntered = textBox.Text
15 
View all 38 lines...

Answer this question