of     1   

Vritix
#168696886Friday, July 24, 2015 10:38 PM GMT

local dis = game.Workspace.Screen.SurfaceGui.Frame:WaitForChild("test"):WaitForChild("TextButton") function main2() print "test" end dis.MouseButton1Down:connect(main2)
Vritix
#168697165Friday, July 24, 2015 10:41 PM GMT

bump
Vritix
#168697511Friday, July 24, 2015 10:45 PM GMT

bumpp
[rfa#hidefromsearch]
#168697661Friday, July 24, 2015 10:47 PM GMT

[rfa#hidefromsearch]
Vritix
#168698016Friday, July 24, 2015 10:51 PM GMT

yes
[rfa#hidefromsearch]
#168698274Friday, July 24, 2015 10:53 PM GMT

[rfa#hidefromsearch]
Vritix
#168698377Friday, July 24, 2015 10:55 PM GMT

Nothing in output.
Vritix
#168699836Friday, July 24, 2015 11:11 PM GMT

dfdg
TimeTicks
#168706819Saturday, July 25, 2015 12:28 AM GMT

You don't do it like that. The gui is already inside the player, its just addorned to the brick. Just access the gui from inside the player script.Parent.MouseButton1Click:connect(function() print("hi") end) "Talk is cheap. Show me the code." - Linus Torvalds
Vritix
#168707240Saturday, July 25, 2015 12:32 AM GMT

Well no, the script I have is, if you press a button a Instance of 1 frame, 2 TextBoxes, and 1 TextButton is created a put onto a surface gui. I also have a "X" button on one of that frames to dismiss it. So I can't put the script into the TextButton, because it just created with Instance.new
TimeTicks
#168707464Saturday, July 25, 2015 12:35 AM GMT

local button = Instance.new("TextButton",gui) local scriptClone = script:Clone() scriptClone.Parent = button scriptClone.Disabled = false "Talk is cheap. Show me the code." - Linus Torvalds
Vritix
#168707537Saturday, July 25, 2015 12:36 AM GMT

I was thinking about doing that, I'll let you know if it works.
Vritix
#168708405Saturday, July 25, 2015 12:46 AM GMT

Works perfect. I just put a script into ServerStorage, cloned it, etc...

    of     1