Help me resolve the problem.
The script isn’t working and I don’t know why the script isn’t working.
We tried serval times to test it and nothing is working.
local Text = workspace.MicrophoneBoard.SurfaceGui.TextLabel.Text
local GetPlayer = workspace.GetPlayer
game.Players.PlayerAdded:Connect(function(plrs)
GetPlayer.Touched:Connect(function()
plrs.Chatted:Connect(function(msg)
function Touched(hit)
local human = hit.GetPlayer:findFirstChild("Humanoid")
if human.Touched.GetPlayer then
if msg then
Text = msg
end
end
end
end)
end)
end)
GetPlayer.Touched:connect(Touched)
Output: ![]()