Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

My Chat Copy Player Doesn't Work For My Game?

When I try to use the script in my game, the output says: ')' expected (to close '(' at line 7) near

Can someone fix this? Here is my script:

local you = game.Players.LocalPlayer

playerthatgetscopiedchatfrom = "playerhere"
vplr = game.Players:FindFirstChild(playerthatgetscopiedchatfrom)

if vplr then
vplr.Chatted:connect(function(msg) 
game.Players:Chat(msg) end)

1 answer

local you = game.Players.LocalPlayer

playerthatgetscopiedchatfrom = "playerhere"
vplr = game.Players:FindFirstChild(playerthatgetscopiedchatfrom)

if vplr then
vplr.Chatted:connect(function(msg)
game.Players:Chat(msg) 
end
end)

1 comment

0

The first end should have the brackets and the second end should be without the brackets.

This discussion is preserved as it was. New answers, comments, and votes are closed.