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

`

2 comments

0

Is this the whole script?

0

Nope.