So I am trying it to update the textbox for everyone in the game with the gui, here is the code and the gif.
script.Parent.Equipped:Connect(function(player)
playewr = script.Parent.Parent
player = game.Players:FindFirstChild(playewr.Name)
player.Chatted:Connect(function(msg, reci)
print('hi')
--print(msg, player.Name)
local sf = player.PlayerGui:WaitForChild("WalkieTalkieGui").ScrollingFrame
for i,v in pairs(game.Players:GetChildren())do
local clone = player.PlayerGui:WaitForChild("WalkieTalkieGui").TextButton:Clone()
text = player.Name..": "..msg
clone.Text = text
clone.Visible = true
clone.Parent = sf
clone.TextColor = player.TeamColor
end
end)
script.Parent.Unequipped:Connect(function()
end)
end)