wait(1)frame=script.Parent.Parent.Parent local B=script.Parent:GetChildren()local I=nil local f=false for Z=1,#B,1 do if B[Z].ClassName=="\083\116\114\105\110\103\086\097\108\117\101"then I=B[Z]else if B[Z].ClassName=="\073\110\116\086\097\108\117\101"then I=B[Z]f=true end end end print(I.Name)click=function()local B=frame.SmartboardObj.Value B.SurfaceGui.RemoteEvents.Post:FireServer(I.Name,I.Value)end script.Parent.MouseButton1Click:connect(click)


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)
