I made a script that changes the text of something using a function, but when I use FilteringEnabled it doesn't work at all. I was wondering if anybody could teach me on how to transform the function to a FilteringEnabled friendly function. Thanks!
Text Script:
function playerNotification(changeText)
for i, v in pairs (game.Players:GetChildren()) do
local gameInterface = v.PlayerGui:FindFirstChild("GameInterface")
if gameInterface then
gameInterface.Frame.TextLabel.Text = changeText
end
end
end
Example:
function playerNotification(changeText)
for i, v in pairs (game.Players:GetChildren()) do
local gameInterface = v.PlayerGui:FindFirstChild("GameInterface")
if gameInterface then
gameInterface.Frame.TextLabel.Text = changeText
end
end
end
function roundEnded()
playerNotification('The round has ended!')
end
roundEnded()

1 comment
You need to use remote events and remote functions.