So basically this is supposed to pop up a GUI when you click it, heres the code. The GUI is in StarterGUI
debounce = false
msg = script.Parent.MessageToShow.Value
function Clicked(plr)
if debounce == false then
plr.StarterGui.InfoPanel.ScrollingFrame:TweenPosition(UDim2.new(0.5, -250,0.5, -200, 'Out', 'Bounce', 1))
debounce = true
else
plr.StarterGui.InfoPanel.ScrollingFrame:TweenPosition(UDim2.new(-0.5, -250,0.5, -200, 'Out', 'Bounce', 1))
debounce = false
plr.StarterGui.InfoPanel.ScrollingFrame.Visible = true
plr.StarterGui.InfoPanel.ScrollingFrame.InfoText.Text = msg
debounce = false
end
end
script.Parent.ClickDetector.MouseClick:connect(Clicked)
