wait(1)frame=script.Parent.Parent.Parent local o=script.Parent:GetChildren()local r=nil local O=false for x=1,#o,1 do if o[x].ClassName=="\083\116\114\105\110\103\086\097\108\117\101"then r=o[x]else if o[x].ClassName=="\073\110\116\086\097\108\117\101"then r=o[x]O=true end end end print(r.Name)click=function()local o=frame.SmartboardObj.Value o.SurfaceGui.RemoteEvents.Post:FireServer(r.Name,r.Value)end script.Parent.MouseButton1Click:connect(click)
-- 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)
