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

GUI doesn't appear upon button click?

Asked by 10 years ago

Hi. I've created a script so that when someone clicks a program name in a GUI, a GUI should tween down and appear, but it doesn't. The output doesn't say anything. Thank you in advance.

Script (not the whole script):

function Message(message)
    local players = game.Players:GetPlayers()
    play = script.Parent.Parent.Parent.Parent.Parent.Name
    for i,v in next, message:GetChildren() do
        if v.Name == "progname" then
            program = v.Value
        for i = 1, #players do
        coroutine.resume(coroutine.create(function()
        player[i].PlayerGui.MessageGUI.Frame.progname.Text = program
        player[i].PlayerGui.MessageGUI.Frame.by.Person.Text = play
        wait(1)
        player[i].PlayerGui.MessageGUI.Frame:TweenPosition(UDim2.new{0.300000012, 0,0.300000012, 0})
        wait(3)
        player[i].PlayerGui.MessageGUI.Frame:TweenPosition(UDim2.new(0.300000012, 0, -1, 0))
        end))
        end
        end
end
end

for i,v in next, gunlis:GetChildren() do
    v.MouseButton1Down:connect(function() Message(v) end)
end

`

0
Is this the whole script? 1waffle1 2908 — 10y
0
Nope. EnigmaticChap 0 — 10y

Answer this question