Remote events help

Basically I’ve made a radio system and when i type something it’s meant to clone a frame with what I typed however how would i make everyone able to see the frame with the text I typed by using remotes?

Heres my script:


	local textbox = script.Parent.Parent.textboxenter.TextBox
	local textboxc = script.Parent.Parent.textboxenter.done
	local callsignframe = script.Parent.Parent.Callsign.TextBox

	
textboxc.MouseButton1Click:Connect(function()
	local frame = game:GetService("ReplicatedStorage").REPLICATION:clone()
	frame.Parent = script.Parent.Parent.ScrollingFrame
	frame.MESSAGE.Text = textbox.Text
	frame.CALLSIGN.Text = callsignframe.Text

end)
1 Like

Instead of this part, do this -


local Replicated = game:GetService("ReplicatedStorage")
local remote = Replicated:WaitForChild("YourRemote")
local textbox = script.Parent.Parent.textboxenter.TextBox
local textboxc = script.Parent.Parent.textboxenter.done
local callsignframe = script.Parent.Parent.Callsign.TextBox


textboxc.MouseButton1Click:Connect(function()
    remote:FireServer(textbox.Text,callsignframe.Text)
end)

And then, on the server, clone the UI for everyone[with the frame inside].

game.ReplicatedStorage.YourRemote.OnServerEvent:Connect(function(Player,Message,CallSign)
  local UI = script.YourGui -- I recommend putting a clone of your UI inside that script, rather than in replicatedstorage.

  for _,plr in pairs(game.Players:GetPlayers()) do
     if not plr.PlayerGui:FindFirstChild(UI) then
     local clone = UI:Clone()
     clone.Parent = plr.PlayerGui
     clone.Frame.MESSAGE.Text= Message
     clone.CALLSIGN.Text = CallSign
    end
  end 
end)