local script in the gui:
script.Parent.Parent.Frame.f.MouseButton1Click:Connect(function()
game.ReplicatedStorage.Update:FireServer(script.Parent.Parent.Frame.Boothed.Text,script.Parent.Parent.Frame.Main.Text,script.Parent.Parent.Frame.Sub.Text)
end)
script.Parent.Parent.Frame.Leave.MouseButton1Click:Connect(function()
game.ReplicatedStorage.Leave:FireServer()
end)
script inside the event:
script.Parent.OnServerEvent:Connect(function(plr,Txt,Main,Sub)
local booth = workspace:FindFirstChild(plr.Name.." Booth")
booth.Message.SurfaceGui.Letters.Text = Txt
if Main == nil or "" or " " then
else
booth.MainImage.Decal.Texture = ("http://www.roblox.com/asset/?id="..Main)
end
if Sub == nil or "" or " " then
else
booth.Sub.Decal.Texture = ("http://www.roblox.com/asset/?id="..Sub)
end
end)