game.Players.PlayerAdded:Connect(function(player) local messageService = game:GetService("MessagingService") wait(5) messageService:SubscribeAsync("ClanSystem", function(message) messageService:SubscribeAsync("ClanSystem1", function(message1) if player.Name == message.Data and player:WaitForChild("ClanSystem"):WaitForChild("ClanInvites").Value < 5 then print("You have been invited to the "..message1.Data.." Clan") end if player.Name == message.Data and player:WaitForChild("ClanSystem"):WaitForChild("ClanInvites").Value < 5 then player:WaitForChild("ClanSystem"):WaitForChild("ClanInvites").Value += 1 end end) end) end)
The value first increases by 1 then increases by 2 and etc