what did i do i added an end but it still underlines elseif
local plrs = game.Players
local sss = game.ServerScriptService
local groupId = 7870490
local chatService = require(sss:WaitForChild('ChatServiceRunner'):WaitForChild('ChatService'))
local PassService = game:GetService("MarketplaceService")
chatService.SpeakerAdded:Connect(function(plr)
local speaker = chatService:GetSpeaker(plr)
if plrs[plr]:IsInGroup(groupId) then
speaker:SetExtraData('NameColor', Color3.fromRGB(0, 255, 178))
speaker:SetExtraData('Tags', {{TagText = plrs[plr]:GetRoleInGroup(groupId), TagColor = Color3.fromRGB(255, 37, 37)}})
game.Players.PlayerAdded:Connect(function(plrss)
elseif PassService:UserOwnsGamePassAsync(plrss.UserId,11925441) then
speaker:SetExtraData('NameColor', Color3.fromRGB(186, 106, 106))
speaker:SetExtraData('Tags', {{TagText = "VIP", TagColor = Color3.fromRGB(246, 255, 65))
end
end)
end)
end)

3 comments
Thats because you are continuing the if statement inside of another function.
wdym
on line 11, you are starting an if statement. and you never ended it until after you made a function on line 16. you then said elseif on line 17, continuing the if statement you made on line 11.