-- params : ...


wait(1)
frame = script.Parent.Parent.Parent
local children = (script.Parent:GetChildren())
local call = nil
local picture = false
for i = 1, #children do
	if children[i].ClassName == "StringValue" then
		call = children[i]
	else
		if children[i].ClassName == "IntValue" then
			call = children[i]
			picture = true
		end
	end
end
print(call.Name)
click = function()
	
	local board = frame.SmartboardObj.Value
	board.SurfaceGui.RemoteEvents.Post:FireServer(call.Name, call.Value)
end

script.Parent.MouseButton1Click:connect(click)
