I am Trying To Make Chat Tag and Color Only For Owner and Some Other Peoples
System Is Working Perfect Buts Its Giving Chat Tag To Everyone I Want To Give Only some peoples
Code:-
local Players = game:GetService('Players')
local ServerScriptService = game:GetService('ServerScriptService')
local ChatS = require(ServerScriptService:WaitForChild('ChatServiceRunner'):WaitForChild('ChatService'))
ChatS.SpeakerAdded:Connect(function(PlayerName)
local Sp = ChatS:GetSpeaker(PlayerName)
if PlayerName == "t4wkggw" or "fy4y43y" then
Sp:SetExtraData('NameColor', Color3.fromRGB(math.random(0,255), math.random(0,255),math.random(0,255)))
Sp:SetExtraData('ChatColor', Color3.fromRGB(math.random(0,255), math.random(0,255),math.random(0,255)))
Sp:SetExtraData('Tags', {{TagText = "Youtuber", TagColor = Color3.fromRGB(255, 0, 0)}})
elseif PlayerName == "gujjubhai94" then
Sp:SetExtraData('NameColor', Color3.fromRGB(math.random(0,255), math.random(0,255),math.random(0,255)))
Sp:SetExtraData('ChatColor', Color3.fromRGB(math.random(0,255), math.random(0,255),math.random(0,255)))
Sp:SetExtraData('Tags', {{TagText = "Owner", TagColor = Color3.fromRGB(255, 179, 0)}})
end
end)
its now working perfectly its giving chat color and tag to everyone and also its not printing any error
if I add my name:-
if I not add my name:-
if you know what is problem with script pls tell me