I keep receiving "lower is not a valid member of Player 'Players.ChirpPerson'" from the following script located in ServerScriptService:
local ServerScriptService = game:GetService("ServerScriptService") local ChatServiceRunner = ServerScriptService:WaitForChild("ChatServiceRunner") local ChatService = require(ChatServiceRunner.ChatService) local giveTag = game.ReplicatedStorage.GiveTag giveTag.OnServerEvent:Connect(function(player) local speaker = ChatService:GetSpeaker(player) local DefaultTags = { {TagText = "FirstTag", TagColor = Color3.new(0,0,1)}, {TagText = "SecondTag", TagColor = Color3.new(1,0,0)}, } if speaker and speaker:GetPlayer() then speaker:SetExtraData("Tags", DefaultTags) end end)
I don't know what could be wrong, any help is appreciated!
It was fixed courtesy of @Spjureeedd who suggested that the parameter for GetSpeaker should be a string by putting in "player.Name" instead of just "player." :)