msg = object, expected string?
Asked by
8 years ago Edited 8 years ago
3 | local ReplicatedStorage = game:GetService 'ReplicatedStorage' |
5 | local Event = ReplicatedStorage.ChatEvent |
7 | Event.OnServerEvent:connect( function (ply,msg) |
8 | Event:FireAllClients(ply,msg) |
03 | local ReplicatedStorage = game:GetService 'ReplicatedStorage' |
05 | local ply = script.Parent.Parent or game.Players.LocalPlayer |
06 | local Event = ReplicatedStorage.ChatEvent |
07 | local Admins = { 'Vingam_Securis' , 'Player1' } |
09 | ply.Chatted:connect( function (msg) |
11 | Event:FireServer(ply,msg) |
16 | Event.OnClientEvent:connect( function (ply,msg) |
17 | for i,v in pairs (Admins) do |
19 | print (ply.Name.. ' is an Admin.' ) |
20 | local MO = script.Message_Owner:Clone() |
21 | MO.Parent = ply.PlayerGui.ChatGui.Frame |
22 | MO.Text = ply.Name.. '~A~: ' |
23 | local MSG = script.Message:Clone() |
24 | MSG.Parent = ply.PlayerGui.ChatGui.Frame |
26 | elseif ply.Name ~ = v then |
27 | print (ply.Name.. ' is not an Admin.' ) |
Players.Player1.PlayerScripts.ChattedScript:24: bad argument #3 to 'Text' (string expected, got Object)