Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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

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

Log in to vote
0
Answered by 4 years ago
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)
0
The first *end* should have the brackets and the second *end* should be without the brackets. BlackButlerYT -5 — 4y
Ad

Answer this question